On 4/11/07, watir-user watir-user <[EMAIL PROTECTED]> wrote:

Is there any other way which executes all the steps defined in the method
even any of the step fails and also should show the message why it has
failed?



Of course. Read "Exceptions, Catch, and Throw" chapter from "Programming
Ruby" (http://phrogz.net/ProgrammingRuby/tut_exceptions.html).

This is sample code.

begin
 raise
rescue
 puts $!
end

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

Reply via email to