vendor/gems/gems/firewatir-1.2.1/MozillaBaseElement.rb
#
#
# Description:
#   Matches the given text with the current text shown in the browser for that particular element.
#
# Input:
#   target - Text to match. Can be a string or regex
#
# Output:
#   Returns the index if the specified text was found.
#   Returns matchdata object if the specified regexp was found.
#

Matches the given text with the current text shown in the browser for that particular element.

Text to match. Can be a string or regex

Returns the index if the specified text was found.
Returns matchdata object if the specified regexp was found.
Matches the given text with the current text shown in the browser for that particular element . Text to match . Can be a string or regex Returns the index if the specified text was found . Returns matchdata object if the specified regexp was found .
def contains_text(target)
            if target.kind_of? Regexp
                self.text.match(target)
            elsif target.kind_of? String
                self.text.index(target)
            else
                raise ArgumentError, "Argument #{target} should be a string or regexp."
            end
        end
def contains_text ( target ) if target . kind_of? Regexp self . text . match ( target ) elsif target . kind_of? String self . text . index ( target ) else raise ArgumentError , "Argument #{target} should be a string or regexp." end end
Description:
Matches the given text with the current text shown in the browser for that particular element.
Description : Matches the given text with the current text shown in the browser for that particular element .
#puts "Text to match is : #{match_text}"
 #puts "Html is : #{self.text}"

target
<not_specific>