regular expression is not working in $ie.text.include?.i am getting
error message "`include?': can't convert Regexp into String
(TypeError)" for the following code.any idea please.?
def verify_field(check,result)
if $ie.text.include?(Regexp.new(check))
$dt.WriteData("#{result}","Sheet1", "Pass")
else
$dt.WriteData("#{result}","Sheet1", "Fail")
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