vendor/gems/gems/firewatir-1.2.1/htmlelements.rb
#
# Description:
#   Checks if the provided text matches with the contents of text field. Text can be a string or regular expression.
#
# Input:
#   - containsThis - Text to verify. 
#
# Output:
#   True if provided text matches with the contents of text field, false otherwise.
#

Checks if the provided text matches with the contents of text field. Text can be a string or regular expression.

Text to verify.

True if provided text matches with the contents of text field, false otherwise.
Checks if the provided text matches with the contents of text field . Text can be a string or regular expression . Text to verify . True if provided text matches with the contents of text field false otherwise .
def verify_contains( containsThis )
        assert_exists            
        if containsThis.kind_of? String
            return true if self.value == containsThis
        elsif containsThis.kind_of? Regexp
            return true if self.value.match(containsThis) != nil
        end
        return false
    end
def verify_contains ( containsThis ) assert_exists if containsThis . kind_of? String return true if self . value == containsThis elsif containsThis . kind_of? Regexp return true if self . value . match ( containsThis ) != nil end return false end
Description:
Checks if the provided text matches with the contents of text field.
Description : Checks if the provided text matches with the contents of text field .
containsThis
<not_specific>