Nerodia 0.13.0
Functionally equivalent to Watir 6.15.0
Updates to make selectors easier to use due to differences between Python and Ruby
- A
dict
may now be passed as an argument to a container. Ifkwargs
are also provided, they will be updated with the givendict
.- Frex:
div({'foo': 'bar'}, spam=ham)
would result in a selector of{'foo': 'bar', 'spam': 'ham'}
- Frex:
- Regex can now be passed in via string instead of requiring compiling ahead of time. The string must be surrounded by
/
.- Frex:
div({'foo': '/bar/'})
would result in a selector of{'foo': re.compile('bar')}
- Frex:
- Custom attributes with underscores are now supported by using two underscores
- Frex: To select a
div
with a attributecustom_attribute
with valuefoo
, the syntax would bediv(custom__attribute='foo')
- Frex: To select a