I'm using selenium with webtest. I was expecting this to work:
doc.get('input', name='email')
After a while, I found out, it didn't because of the webpage was
XHTML. So, including namespace 'x' works:
doc.xpath('x:input[@name="email"]')
It would be nice if there was a way for me to set the prefix just
once and forget about it.
This would also allow me to use the helper functions like:
doc.input(name="email")
kvdb:
URL: https://bitbucket.org/ianb/webtest/issue/34/namespace-in-xhtml