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 inCapybara::Node::Element#set
as defaultoptions
hash [Champier Cyril] execute_script
andevaluate_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 acceptXPath::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]