>From the Watir user guide: Popup Windows
----------------------------------%<-------------------------------------- JavaScript generated popups such as Alert boxes, Windows Security popups, and other popups that are not contained in a web browser are not accessible the same way HTML pages are. There has been some experimental code packaged with Watir to deal with popups with limited success. A good popup handling solution is being worked on and will be included in a future Watir release. In the mean time, AutoIT is installed with Watir. Look at "jscript_test.rb" in the unittests directory, and search the mail list archives for more information. Watch for a Watir solution in a future release. ----------------------------------%<-------------------------------------- For standard IE windows try using e.g. ie2 = Watir::IE.attach(:url, 'http://mytestsite') ie3 = Watir::IE.attach(:title, 'Test New Window') Cheers, Daniel. On 07/04/06, Guru Subramanyam <[EMAIL PROTECTED]> wrote: > Hi, > > I have using Watir for the last 2 weeks and it is > proving to be very useful. Thanks to one and all for > this incredible tool > > I just wanted to know if there is a way to handle > exceptions (JS pop-up's when mandatory fields are not > entered on a form, unexpected error windows) in Watir? > > Thanks in advance > > Regards > Guru > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
