Jump to content
Sign in to follow this  
sambadamerla

Unable to click on Continue button of firefox Unresponsive dilog

Recommended Posts

sambadamerla

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

Share this post


Link to post
Share on other sites
sambadamerla

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());

Share this post


Link to post
Share on other sites
sambadamerla

Thanks DanP2

I already used send{tab}{Enter} and it is working fine. However I thing it will be more relable if I click depen on the button name (text on the button).

I will check with FF.au3.

Regards

Samba Damerla

Share this post


Link to post
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
Sign in to follow this  

×