Capybara v3.2.0 Release Notes

  • ๐Ÿš€ Release date: 2018-06-01

    ๐Ÿ”„ Changed

    • ๐Ÿ’Ž Ruby 2.3.0+ is now required
    • ElementNotFound errors raised in selector filters are interpreted as non-matches

    โž• Added

    • New global configuration default_set_options used in Capybara::Node::Element#set as default options hash [Champier Cyril]
    • execute_script and evaluate_script can now be called on elements to run the JS in the context of the element [Thomas Walpole]
    • ๐Ÿ‘ Filters in custom selectors now support a matcher Regexp to handle multiple filter options [Thomas Walpole]
    • :element selector type which will match on any attribute (other than the reserved names) passed as a filter option [Thomas Walpole]
    • ๐Ÿ‘ :class filter option now supports preceding class names with ! to indicate not having that class [Thomas Walpole]
    • :class and :id filter options now accept XPath::Expression objects to allow for more flexibility in matching [Thomas Walpole]
    • Capybara.disable_animation setting which triggers loading of a middleware that attempts to disable animations in pages. This is very much a beta feature and may change/disappear in the future. [Thomas Walpole]