assert($ie.contains_text("Please try again"))
puts "TEST PASSED. Found test string: 'Please try again.' "
Bret
On 2/7/06, Paul Carvalho <[EMAIL PROTECTED]> wrote:
if ! assert($ie.contains_text("Please try again"))
puts "TEST PASSED. Found test string: 'Please try again.' "
end
So now my script will output "Test Passed" if the assertion passes (i.e. = "nil"). The "else" doesn't work, but then it's kind of redundant to print "Test Failed" anyway since the failure info appears at the end of the run (as expected).
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
