From 7065a66503b6aea909f5bea91eb61cacd3a4aa7c Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Tue, 7 Sep 2010 00:32:22 +0200 Subject: [PATCH] Document passing a Regexp to :text --- lib/capybara/node/finders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/node/finders.rb b/lib/capybara/node/finders.rb index b3de9f0f..b549d64c 100644 --- a/lib/capybara/node/finders.rb +++ b/lib/capybara/node/finders.rb @@ -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 #