Thank you, Jlolis and Nathan.  Your answers were really very helpful.  Now, we 
are able to trap exception messages using your suggestion but is there any way 
to capture the line number of the code that made Watir throw an exception as it 
would be really helpful to see an exception note like the following:

"A 'so and so' exception has occured in 'so and so' line"

Also can the name of the function in which the exception was thrown, be 
captured? Ex. if we have written a small function called 'add_an_inventor'.  
If, within that function, an exception occurs, can we capture the name of the 
user-defined function so that our exception note would be still more elaborate 
as it would say,

"A 'so and so' exception has occured within the 'add_an_inventor' function in 
the 'so and so" line "

Finally, can we make the script go to a particular line once it encounters an 
exception.  Is there a "goto" statement in Ruby?


Thanks, in Advance,
Vijay
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5886&messageID=16516#16516
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to