At 06:27 PM 11/9/2005, Dara Lillis wrote:
>assert(ie.contains_text("abcd"))

This is correct.

>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"

This is how it is supposed to work. Assert means to fail and stop running. 
In Ruby, nil counts as false, so that is not a problem at all.

What did you want it to do?

_____________________
  Bret Pettichord
  www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to