Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
335 stars 108 forks source link

Namespace in XHTML #4

Closed domenkozar closed 11 years ago

domenkozar commented 11 years ago

kvdb:

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")

URL: https://bitbucket.org/ianb/webtest/issue/34/namespace-in-xhtml

gawel commented 11 years ago

Moved to https://github.com/gawel/webtest-selenium/issues/4