[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread karim rayani
You can use begin rescue ensure statement for exception handling, this is the exception handling syntax for ruby begin code rescue e . write to file the description of failure ensure ... close the database connection end On Mon, May 4, 2009 at 2:36 PM, sHiVa krapa.ph...@gmail.com

[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread sHiVa
I am able to handle known and unknown exceptions. The main problem is, if some unexpected popup alert is appeared in the application how can i handle it? With out click the alert popup, my script will never move on. My Idea of handling unknown popup alert is handling with threads. One thread