Jump to content

Unable to click on Continue button of firefox Unresponsive dilog


Recommended Posts

Hi,

While I am running my automation scripts using Selenium2.0 I am getting firefox Unresponsive script errors. So I am using below AutoIt script which should run on my system (in infinate loop) and check if any popup availble it should click on Continue. But the below script is not able to click the coninue button. However if I use send("{Enter"}) its clicking stop button (as by default the cursor is on stop button). I need to click on Continue button only

;Local $Max = 0

While 1

If WinExists("Warning: Unresponsive script") Then

WinActivate("Warning: Unresponsive script")

Sleep(2000)

Get

ControlClick("Warning: Unresponsive script", "", "Continue")

;ControlClick("Warning: Unresponsive script", "", "[CLASS:Button; TEXT:Continue]")

Sleep(2000)

EndIf

; $Max = $Max + 1

Sleep(2000)

;If $Max > 20 Then Exit(1)

WEnd

Link to comment
Share on other sites

We already added the below code to my Webdriver object and its not working

FirefoxProfile firefoxProfile = new FirefoxProfile(new File(IConstants.FIREFOX_PROFILE));

firefoxProfile.setPreference("dom.max_chrome_script_run_time", 4400);

firefoxProfile.setPreference("dom.max_script_run_time", 3400 );

dc.setCapability(FirefoxDriver.PROFILE, firefoxProfile.toJson());

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...