Document passing a Regexp to :text

This commit is contained in:
Jonas Nicklas 2010-09-07 00:32:22 +02:00
parent fed2c5ba94
commit 7065a66503
1 changed files with 1 additions and 1 deletions

View File

@ -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
#