[Wtr-general] <nil> is not true with assert(ie.contains_text)

Adrian Rutter Adrian.Rutter at tnt.com
Mon Jun 12 10:45:32 EDT 2006


Zeljko Filipin wrote
>Try to change
>if assert(ie.contains_text("Watir"))
>to
>if ie.contains_text("Watir")

That certainly works, but I want to use unit test assertions so I can
produce a report summary.

It is described in the user-guide as thus:
if assert(ie.contains_text("Test verification point."))    puts("TEST
PASSED. Found test string: 'Test verification point.' ")
else    puts("TEST FAILED.")
end

Cheers

Aidy



---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------



More information about the Wtr-general mailing list