+1 for treating it as an application bug rather then a problem with Watir. It's likely the reason that browser.alert.exist? isn't working is that the browser isn't responsive. The developers should look at fixing whatever's causing that popup to show up. You might have some luck using a different browser in the meantime (if that's an option.)
________________________________ From: Joe Fleck <[email protected]> To: "watir-general@googlegroups com" <[email protected]> Sent: Friday, May 23, 2014 4:41 AM Subject: Re: [wtr-general] How to handle unknown browser popup with text "Stop running this script?" Hi, I have seen this particular error in our application when we try and load large lists. I can not remember what the resolution was but it is something that needs attention by dev team. Thank you, Joe On May 23, 2014 3:10 AM, "v b baba kanchustambham" <[email protected]> wrote: Hi, > >We are facing a challenge with an unknown browser popup with text "Stop >running this script?" while running watir-webdriver script on IE8, Win7 >machine. >This popup is appearing after running the script for some time. >browser.alert.exist? method is not working in this case. we have declared >require 'watir-webdriver/extensions/alerts' in library file. Please find the >attached screenshot for reference. >Webdriver version we are using is 0.6.2 > >Can anyone help us on resolving this issue. > >Regards, >Veera. > > > -- >-- >Before posting, please read http://watir.com/support. In short: search before >you ask, be nice. > >[email protected] >http://groups.google.com/group/watir-general >[email protected] > >--- >You received this message because you are subscribed to the Google Groups >"Watir General" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to [email protected]. >For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
