Hi,
I'm relatively new to Watir and am having some problems with asserts on IE.contains_text, hoping for some enlightenment.
Basically, my problem is as follows; I have some code that says (essentially):
assert(ie.contains_text("abcd"))
This seems to work ok when "abcd" is present, but fails (and causes my test to stop running) when "abcd" is not present. The reason for the failure seems to be that ie.contains_text returns <nil> rather than "false"
In attempting to find out what is going on I've been outputting the result of ie.contains_text to the console and notice that when "abcd" is present (and the assert passes) the returned value of contains_text is "522" when I was expecting "true"
I'm finding this all a bit confusing. Can someone explain it to me?
Thanks,
-Dara
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
