Skip to content

Nerodia 0.13.0

Compare
Choose a tag to compare
@lmtierney lmtierney released this 28 Nov 19:02
· 95 commits to master since this release

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. If kwargs are also provided, they will be updated with the given dict.
    • Frex: div({'foo': 'bar'}, spam=ham) would result in a selector of {'foo': 'bar', 'spam': 'ham'}
  • 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')}
  • Custom attributes with underscores are now supported by using two underscores
    • Frex: To select a div with a attribute custom_attribute with value foo, the syntax would be div(custom__attribute='foo')