regular expression is not woking in text.include? and i am getting the
error message "`include?': can't convert Regexp into String
(TypeError)". any mistake in below code.?



def verify_field(check,result)
      aa=Regexp.new  check
    if ($ie.text.include?(aa))
        $dt.WriteData("#{result}","Sheet1", "Pass")
    end
end

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to