Document passing a Regexp to :text
This commit is contained in:
parent
fed2c5ba94
commit
7065a66503
|
@ -115,7 +115,7 @@ module Capybara
|
|||
# @param [:css, :xpath, String] kind_or_locator Either the kind of selector or the selector itself
|
||||
# @param [String] locator The selector
|
||||
# @param [Hash{Symbol => Object}] options Additional options
|
||||
# @option options [String] text Only find elements which contain this text
|
||||
# @option options [String, Regexp] text Only find elements which contain this text or match this regexp
|
||||
# @option options [Boolean] visible Only find elements that are visible on the page
|
||||
# @return [Capybara::Element] The found elements
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue