lib/capybara/node/finders.rb in capybara-3.12.0 vs lib/capybara/node/finders.rb in capybara-3.13.0
- old
+ new
@@ -34,9 +34,10 @@
# @option options [String, Regexp] id Only find elements with an id that matches the value passed
# @option options [String, Array<String>, Regexp] class Only find elements with matching class/classes.
# + Absence of a class can be checked by prefixing the class name with !
# + If you need to check for existence of a class name that starts with ! then prefix with !!
# + ```class:['a', '!b', '!!!c'] # limit to elements with class 'a' and '!c' but not class 'b'```
+ # @option options [String, Regexp, Hash] style Only find elements with matching style. String and Regexp will be checked against text of the elements `style` attribute, while a Hash will be compared against the elements full style
# @option options [Boolean] exact Control whether `is` expressions in the given XPath match exactly or partially
# @option options [Symbol] match The matching strategy to use.
#
# @return [Capybara::Node::Element] The found element
# @raise [Capybara::ElementNotFound] If the element can't be found before time expires