"Warning: Unresponsive script " error is coming while running Html suite in Selenium server

2,984 views
Skip to first unread message

Maxwell

unread,
Jun 13, 2012, 10:20:38 AM6/13/12
to seleniu...@googlegroups.com
 Hi Guyz,

 I have created test suite using Selenium IDE ,and then I am running that html suite using Selenium Server with Firefox.

 Everything runs perfectly, only the problem is in some pages I get the below pop up  which ask me to Continue or stop script.

  "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

Script: http://testbuild/Scripts/jquery-1.5.2.min.js:16"


 Please help guyz, how to get rid of this issue.
The problem is if i dont click anything then test is not going ahead.Am planning to put the testsuite in scheduler , so in that case it wont complete at all.

For you information, If i normally do the manual testing or navigate to the same page in the application, then it is not showing any error .

I googled for this issue a lot, most of the places they asked to increase the script run time value in firefox.
When i did that and checked while the selenium is running, that value is getting override by the Selenium timeout value.

 I tried running that same test case in Selenium IDE, and it dint show any error.

So Guyz, Please help.

Thanks
Maxwell

Maxwell

unread,
Jun 13, 2012, 10:36:14 AM6/13/12
to seleniu...@googlegroups.com
FYI 
I have tried firefox 10 , 12 . In both this issue is coming  :(

Maxwell

unread,
Jun 14, 2012, 6:10:18 AM6/14/12
to seleniu...@googlegroups.com
 Nobody faced this type of situation ever ??

Maxwell

unread,
Jun 14, 2012, 7:38:25 AM6/14/12
to seleniu...@googlegroups.com
Still no reply, Nobody knows fix for this :(

Peter Gale

unread,
Jun 14, 2012, 7:54:46 AM6/14/12
to seleniu...@googlegroups.com

Please be patient. It might be mid afternoon your time, but it could be very early morning for others.


Date: Thu, 14 Jun 2012 04:38:25 -0700
From: mihir...@gmail.com
To: seleniu...@googlegroups.com
Subject: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/VubOhsaJ02EJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.

Maxwell

unread,
Jun 15, 2012, 2:39:39 PM6/15/12
to seleniu...@googlegroups.com
Mr Peter,
What u ll say now its already 2 days.


On Thursday, June 14, 2012 5:24:46 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:

Please be patient. It might be mid afternoon your time, but it could be very early morning for others.


Date: Thu, 14 Jun 2012 04:38:25 -0700
From: mihir...@gmail.com
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

Hien Ngo

unread,
Jun 15, 2012, 3:15:36 PM6/15/12
to seleniu...@googlegroups.com
To handle popup, have you tried manage.alert.accept or dismiss?

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tuE5cOhe_P8J.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

dave

unread,
Jun 15, 2012, 8:17:16 PM6/15/12
to seleniu...@googlegroups.com
I'm assuming this does not occur when you go through the steps manually?

Maxwell

unread,
Jun 16, 2012, 8:56:50 AM6/16/12
to seleniu...@googlegroups.com
Yes, u r right Dave, am not getting this when doing manually.

Larry , There is no pop up option in that page.

Peter Gale

unread,
Jun 17, 2012, 7:42:12 AM6/17/12
to seleniu...@googlegroups.com
Hi Maxwell


>Mr Peter,
>What u ll say now its already 2 days.

I'll say ...

No one gets paid for providing help here, they have to fit it around their own paid work and personal interests, and you don't have to pay for whatever help you do get.

So do still be patient, don't expect any help whatsoever, and be grateful for whatever help you do get. Help yourself as much as possible through google and providing as much information and focus as you can.

It seems to me that you have raised the wrong problem, or emphasized the wrong part of your issue at least.

The fact that the jQuery script hangs is not itself a Selenium issue, and is perhaps not a question that should be raised or answered here. How to set the script run time in Firefox without it getting overridden by selenium is the question that you should be focussing on here and through related google searches.

The good people here are much more likely to be keen and able help resolve your problem quickly and easily when they can see a simply stated, clearly Selenium-related issue that they can possibly help with even if they haven't experienced the exact problem themselves.

Good luck!


Date: Fri, 15 Jun 2012 11:39:39 -0700
From: mihir...@gmail.com
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/tuE5cOhe_P8J.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Maxwell

unread,
Jun 18, 2012, 4:14:52 AM6/18/12
to seleniu...@googlegroups.com
Hi Peter,

 I know nobody is getting paid for help here . If I ll post my question and will wait for long time , then nobody will reply anything. I have seen similar kind of post in this group with no reply.

I have been patient frm 5 days and I am still patient, If I would not have told "nobody knows fix for this then ", I dont think this thread would have so long.

Anyway, Thanks for ur suggestion. I have already searched in Google, in other forums.

I ll try to search what u have told , Thanks for that.

One more thing, I have already tried so many things to overcome this issue, and I found out that If am not giving timeout option in the Selenium server command line, then that error is not coming at all.

but my testsuite will run more than 30 minute, so I have to give time out option.

I dont understand y the timeout option is failing for me, If anybody knows anything about this then please reply.

Thanks


On Sunday, June 17, 2012 5:12:12 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Hi Maxwell

>Mr Peter,
>What u ll say now its already 2 days.

I'll say ...

No one gets paid for providing help here, they have to fit it around their own paid work and personal interests, and you don't have to pay for whatever help you do get.

So do still be patient, don't expect any help whatsoever, and be grateful for whatever help you do get. Help yourself as much as possible through google and providing as much information and focus as you can.

It seems to me that you have raised the wrong problem, or emphasized the wrong part of your issue at least.

The fact that the jQuery script hangs is not itself a Selenium issue, and is perhaps not a question that should be raised or answered here. How to set the script run time in Firefox without it getting overridden by selenium is the question that you should be focussing on here and through related google searches.

The good people here are much more likely to be keen and able help resolve your problem quickly and easily when they can see a simply stated, clearly Selenium-related issue that they can possibly help with even if they haven't experienced the exact problem themselves.

Good luck!


Date: Fri, 15 Jun 2012 11:39:39 -0700
From: mihir...@gmail.com

Ross Patterson

unread,
Jun 18, 2012, 9:15:33 AM6/18/12
to seleniu...@googlegroups.com

Indeed, as Peter Gale says, this is not a Selenium problem, which is probably why you’re not getting any help.  Plus the fact that the very few of us out here who actually *answer* questions don’t generally like “bump”, “urgent”, “still nothing?”, and similar actions, and tend to ignore them.

 

Ross


Subject: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

Still no reply, Nobody knows fix for this :(

On Thursday, June 14, 2012 3:40:18 PM UTC+5:30, Maxwell wrote:

Ross Patterson

unread,
Jun 18, 2012, 9:24:20 AM6/18/12
to seleniu...@googlegroups.com

You haven’t searched hard enough.  This is an extremely common problem with JavaScript programs, such as the one in your application that is calling jQuery.  All the major browsers have some form of limit on how long they’ll let a JavaScript thread run without interacting with the user.  Internet Explorer measures the actual run time, Firefox measures the number of statements executed, etc.  There is no way to change these limits from within a Selenium test script, although Firefox at least will let you change it from the Tools menu.  Searching for "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete." leads in its first hit to the Firefox support page that describes the process: http://support.mozilla.org/en-US/kb/warning-unresponsive-script.

 

Ross

 

 

...

Maxwell

unread,
Jun 19, 2012, 2:32:00 AM6/19/12
to seleniu...@googlegroups.com
Hi Ross,

 Thanks for your reply, and  telling me fact how people reply :).

But, still am disagree that this is not a selenium related problem.
The link you have given here, comes first when we search in Google for "Warning: Unresponsive script", but it describes for only Firefox related and it tells it a common problem for firefox, but in my case ,If it is not related to Selenium, then y it  does not come when we do it manually.
For more information, when I remove the timeout option from command line option of Selenium Server , this popup does not come.
This behavior makes me think that it is related to Selenium , that's y i posted this topic here.

Thanks
Maxwell

Mark Collin

unread,
Jun 19, 2012, 6:27:28 AM6/19/12
to seleniu...@googlegroups.com

Selenium uses JavaScript atoms to interact with the page, the addition of this extra JavaScript has probably tipped your website over the runtime limit.  It’s not really a Selenium issue, it’s an issue that being highlighted by Selenium because it is adding some extra JavaScript rendering time (I would argue that if you are this close to maximum rendering time your web page is obviously not performant and you need to do something to fix it)

 

The fix is to simplify the JavaScript on your page, it’s obviously too convoluted/unoptimised.

 

There is no Selenium bug here.

 

From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Maxwell
Sent: 19 June 2012 07:32
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

 

Hi Ross,

--

You received this message because you are subscribed to the Google Groups "Selenium Users" group.

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/yNoAdN1jNysJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Maxwell

unread,
Jun 19, 2012, 8:58:33 AM6/19/12
to seleniu...@googlegroups.com
Hi Mark, Thanks for reply.

U might be correct that  its not Selenium Issue.

But Can u tell me y this is coming when i use timeout option.

If am not giving timeout option, all the test case execute without any problem.

 One more thing, the timeout option am giving as 3600 and I have checked dom.max_script_ run_time and dom.max_chrome_script_run_time is also set to 3600.
 So Mark, the runtime limit is 3600second , correct me if am wrong.
If that is the case, then if any script run for more than 3600 second then it should display that unresponsive popup.
but that popup comes within fraction of second, as soon as test case reach that page.

And as a tester I cannot ask developer that, design the website in such a way that I can use Selenium to test it without any issue , right ?
I have to test whatever they have developed as long as it does not show any critical functional or performance error.


Thanks
Maxwell

To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

Peter Gale

unread,
Jun 19, 2012, 10:18:46 AM6/19/12
to seleniu...@googlegroups.com
> And as a tester I cannot ask developer that, design the website in such a way that I can use Selenium to test it without any issue , right ?
> I have to test whatever they have developed as long as it does not show any critical functional or performance error.

Many would disagree.

The point of developement is to create an application for which its level of fitness for purpose can be readily ascertained - that is not the soley responsibility of testers.

If Selenium is the tool your company has chosen to use for testing then developers should rightly have a responsibility to make it readily testable with Selenium rather than have you spend ages try to work around issues that they could fix much more simply.


Date: Tue, 19 Jun 2012 05:58:33 -0700
From: mihir...@gmail.com
To: seleniu...@googlegroups.com
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/pCSqKM4jDL4J.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Maxwell

unread,
Jun 19, 2012, 10:45:27 AM6/19/12
to seleniu...@googlegroups.com
Hi Perter,

Am completely agreed with you, a product should fit for purpose , it should be helpful for all types of users.
Here Selenium also not properly working with my website as it has lots of java script in it , Is not that a deficiency in Selenium?

Thanks
Maxwell


On Tuesday, June 19, 2012 7:48:46 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
> And as a tester I cannot ask developer that, design the website in such a way that I can use Selenium to test it without any issue , right ?
> I have to test whatever they have developed as long as it does not show any critical functional or performance error.

Many would disagree.

The point of developement is to create an application for which its level of fitness for purpose can be readily ascertained - that is not the soley responsibility of testers.

If Selenium is the tool your company has chosen to use for testing then developers should rightly have a responsibility to make it readily testable with Selenium rather than have you spend ages try to work around issues that they could fix much more simply.


Date: Tue, 19 Jun 2012 05:58:33 -0700
From: mihir...@gmail.com

Mark Collin

unread,
Jun 19, 2012, 11:05:06 AM6/19/12
to seleniu...@googlegroups.com

So if you run JMeter against your website and it falls over because the servers can’t handle a load does that make it a problem with JMeter?

 

From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Maxwell
Sent: 19 June 2012 15:45
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

 

Hi Perter,


Am completely agreed with you, a product should fit for purpose , it should be helpful for all types of users.
Here Selenium also not properly working with my website as it has lots of java script in it , Is not that a deficiency in Selenium?

Thanks
Maxwell

On Tuesday, June 19, 2012 7:48:46 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:

> And as a tester I cannot ask developer that, design the website in such a way that I can use Selenium to test it without any issue , right ?
> I have to test whatever they have developed as long as it does not show any critical functional or performance error.

Many would disagree.

The point of developement is to create an application for which its level of fitness for purpose can be readily ascertained - that is not the soley responsibility of testers.

If Selenium is the tool your company has chosen to use for testing then developers should rightly have a responsibility to make it readily testable with Selenium rather than have you spend ages try to work around issues that they could fix much more simply.

Date: Tue, 19 Jun 2012 05:58:33 -0700
From: mihir...@gmail.com


Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

Hi Mark, Thanks for reply.

U might be correct that  its not Selenium Issue.

But Can u tell me y this is coming when i use timeout option.

If am not giving timeout option, all the test case execute without any problem.

 One more thing, the timeout option am giving as 3600 and I have checked dom.max_script_ run_time and dom.max_chrome_script_run_time is also set to 3600.
 So Mark, the runtime limit is 3600second , correct me if am wrong.
If that is the case, then if any script run for more than 3600 second then it should display that unresponsive popup.
but that popup comes within fraction of second, as soon as test case reach that page.

And as a tester I cannot ask developer that, design the website in such a way that I can use Selenium to test it without any issue , right ?
I have to test whatever they have developed as long as it does not show any critical functional or performance error.


Thanks
Maxwell

On Tuesday, June 19, 2012 3:57:28 PM UTC+5:30, Mark Collin wrote:

Selenium uses JavaScript atoms to interact with the page, the addition of this extra JavaScript has probably tipped your website over the runtime limit.  It’s not really a Selenium issue, it’s an issue that being highlighted by Selenium because it is adding some extra JavaScript rendering time (I would argue that if you are this close to maximum rendering time your web page is obviously not performant and you need to do something to fix it)

 

The fix is to simplify the JavaScript on your page, it’s obviously too convoluted/unoptimised.

 

There is no Selenium bug here.

 

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/pCSqKM4jDL4J.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/RGF82kogAaIJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Maxwell

unread,
Jun 19, 2012, 11:09:13 AM6/19/12
to seleniu...@googlegroups.com
Hi Mark,

I have not tried it with JMeter, I ll try it and let u know

Thanks
Maxwell


On Tuesday, June 19, 2012 8:35:06 PM UTC+5:30, Mark Collin wrote:

So if you run JMeter against your website and it falls over because the servers can’t handle a load does that make it a problem with JMeter?

 

From: selenium-users@googlegroups.com [mailto:selenium-users@googlegroups.com] On Behalf Of Maxwell
Sent: 19 June 2012 15:45
To: selenium-users@googlegroups.com
Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

 

Hi Perter,

Am completely agreed with you, a product should fit for purpose , it should be helpful for all types of users.
Here Selenium also not properly working with my website as it has lots of java script in it , Is not that a deficiency in Selenium?

Thanks
Maxwell

On Tuesday, June 19, 2012 7:48:46 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:

> And as a tester I cannot ask developer that, design the website in such a way that I can use Selenium to test it without any issue , right ?
> I have to test whatever they have developed as long as it does not show any critical functional or performance error.

Many would disagree.

The point of developement is to create an application for which its level of fitness for purpose can be readily ascertained - that is not the soley responsibility of testers.

If Selenium is the tool your company has chosen to use for testing then developers should rightly have a responsibility to make it readily testable with Selenium rather than have you spend ages try to work around issues that they could fix much more simply.

Date: Tue, 19 Jun 2012 05:58:33 -0700
From: mihir...@gmail.com

To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/pCSqKM4jDL4J.

To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.


For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/RGF82kogAaIJ.

To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

Peter Gale

unread,
Jun 19, 2012, 12:53:17 PM6/19/12
to seleniu...@googlegroups.com
Maxwell

You're missing the point - that was not a serious suggestion.

I'd suggest getting one the experienced web developers in your company to help isolate your problem locally, focussing on the setting of a suitable timeout.

Peter


Date: Tue, 19 Jun 2012 08:09:13 -0700
From: mihir...@gmail.com
To: seleniu...@googlegroups.com

Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

Hi Mark,

I have not tried it with JMeter, I ll try it and let u know

Thanks
Maxwell

On Tuesday, June 19, 2012 8:35:06 PM UTC+5:30, Mark Collin wrote:

So if you run JMeter against your website and it falls over because the servers can’t handle a load does that make it a problem with JMeter?

 

From: selenium-users@googlegroups.com [mailto:selenium-users@googlegroups.com] On Behalf Of Maxwell
Sent: 19 June 2012 15:45
To: selenium-users@googlegroups.com
Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

 

Hi Perter,

Am completely agreed with you, a product should fit for purpose , it should be helpful for all types of users.
Here Selenium also not properly working with my website as it has lots of java script in it , Is not that a deficiency in Selenium?

Thanks
Maxwell

On Tuesday, June 19, 2012 7:48:46 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:

> And as a tester I cannot ask devMaxwelleloper that, design the website in such a way that I can use Selenium to test it without any issue , right ?

To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/3mVx-3XfGaQJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Maxwell

unread,
Jun 21, 2012, 4:43:15 AM6/21/12
to seleniu...@googlegroups.com

 Mark,
  website is not failing in Jmeter.

 Peter ,
   I ll check some timeout settings.

 If i ll get some solution, I ll let u know guyz.

Thanks



On Tuesday, June 19, 2012 10:23:17 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Maxwell

You're missing the point - that was not a serious suggestion.

I'd suggest getting one the experienced web developers in your company to help isolate your problem locally, focussing on the setting of a suitable timeout.

Peter


Date: Tue, 19 Jun 2012 08:09:13 -0700
From: mihir...@gmail.com

Peter Gale

unread,
Jun 21, 2012, 5:15:03 AM6/21/12
to seleniu...@googlegroups.com
Maxwell

>  website is not failing in Jmeter.

You're completely misunderstanding Marks point.

He wasn't seriously suggesting that you try it in jMeter, but if you were going to do then what you need to do is to use jMeter to run so many parallel processes against the server hosting your page that id DOES fall over.

Every single server must have a capacity limit even if it is a huge limit, and you'd need to get past that point to make sure that it did fail, not just try it with one client process as I assume you have done. If it didn't fail, you haven't yet achieved the fictional scenario he was referring to.

Now, assuming that you had used jMeter to forcefully overload your server, would that mean that jMeter has a bug?

The suggestion was that in a similar way you may have used WebDriver and overloaded your browsers limited capacity to handle javascript, and likewise that doesn't mean that WebDriver is a fault.


Date: Thu, 21 Jun 2012 01:43:15 -0700
From: mihir...@gmail.com
To: seleniu...@googlegroups.com
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/IABTOlfxieAJ.
For more options, visit https://groups.google.com/groups/opt_out.

Maxwell

unread,
Jun 21, 2012, 5:31:47 AM6/21/12
to seleniu...@googlegroups.com
 Peter,

 As per your suggestion, I ll check with developers to resolve this timeout problem.

Thanks
Maxwell


On Thursday, June 21, 2012 2:45:03 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Maxwell

>  website is not failing in Jmeter.

You're completely misunderstanding Marks point.

He wasn't seriously suggesting that you try it in jMeter, but if you were going to do then what you need to do is to use jMeter to run so many parallel processes against the server hosting your page that id DOES fall over.

Every single server must have a capacity limit even if it is a huge limit, and you'd need to get past that point to make sure that it did fail, not just try it with one client process as I assume you have done. If it didn't fail, you haven't yet achieved the fictional scenario he was referring to.

Now, assuming that you had used jMeter to forcefully overload your server, would that mean that jMeter has a bug?

The suggestion was that in a similar way you may have used WebDriver and overloaded your browsers limited capacity to handle javascript, and likewise that doesn't mean that WebDriver is a fault.


Date: Thu, 21 Jun 2012 01:43:15 -0700
From: mihir...@gmail.com

Maxwell

unread,
Jun 22, 2012, 6:43:46 AM6/22/12
to seleniu...@googlegroups.com
 Issue Resolved :):) :) :)

 Thanks everybody :)
 
   I never told that this issue is a Selenium bug, all I wanted that there might be some way to overcome this problem, some way some settings.
   Also it is not an issue with my website as everybody thought here, and am just a Tester, not a test lead or test manager so that I ll tell to dev team that our application is not working in Selenium, so u change whatever u have developed and simplify them, so that it should run in Selenium.  U know wt ll happen then , they will say change the tool, because we r on the process of checking which automation tool we can use for our product. we found Selenium is better option and we are almost done writing all test cases and everything. Only this issue was coming.
 But am not saying , u r wrong. U r correct, an Application should always fit for purpose, but unfortunately in this case I could not do that so problem continued.
Anyway leave this , I got the solution and I ll tell u how I got it .

 By Googling I have already got that two settings in firefox causing this error.
dom.max_chrome_script_run_time
dom.max_script_run_time

As mentioned in some forum , I tried to give value for those settings as 0 to resolve the problem, but it always override by Selenium timeout option.

I wanted to understand y Selenium always overriding this settings of Firefox, and how to fix this but I dint get any solutions.

So while Googling I found one jave file in Selenium which overrides this settings of Firefox.
So I followed these steps:
1. Installed Eclipse in my System
2. Connected to Selenium Svn trunk
3. Then, Checked out all the Code
4. I wanted to understand everything , how selenium works and all , but I think this is not the time to do that, let me try for the fix first.
5. Then I search for the file LauncherUtils.java which can be found in "/trunk/java/client/src/org/openqa/selenium/browserlaunchers/ "
6.  I search for the "dom.max_chrome_script_run_time" and "dom.max_script_run_time" in that java file
7.  I got that code and commented that
8. First  I should have understand the code and then I should have changed anything , but as I was experimenting , I thought its ok , Lets go ahead.
9. Then I build the Selenium server jar file by the command in MS build
  go selenium-server-standalone
10. I got the Selenium-standalone jar in the grid folder.
11. Then, I used this jar file in my command line
12. Then  BINGOOO :):)
13. It worked and it is not overriding the Firefox Settings anymore
Issue Solved :)

Thanks for ur Help Peter, Ross and Mark .
Thanks :):)
Maxwell

Krishnan Mahadevan

unread,
Jun 22, 2012, 6:58:13 AM6/22/12
to seleniu...@googlegroups.com
Maxwell,

I guess these two preferences are accessible from within firefox when you do a about:config.

So when you change any values from about:config manually in firefox, these values are written to a file named "prefs.js" which would be present in your firefox profile directory.

So you might want to try this easy way out :


FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("dom.max_chrome_script_run_time", MYVALUE);
profile.setPreference("dom.max_script_run_time",  MYVALUE );
WebDriver driver = new FirefoxDriver(profile);

Use this instance of FirefoxDriver and see if the problem goes away.

Here MYVALUE is whatever value you would like it to have.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/rusPm6VPpBAJ.

Maxwell

unread,
Jun 22, 2012, 7:13:20 AM6/22/12
to seleniu...@googlegroups.com
Hi Krishnan,

 As I mentioned earlier, I found out these two settings and set the value as 0. I am using Firefox profile and in that profile I set it 0.
 But am not using webdriver to use that mentioned code, am using simple Selenium IDE and running the html suite using selenium server.

My issue is already resolved , thanks for ur suggestion .

Maxwell

Mark Collin

unread,
Jun 22, 2012, 7:15:32 AM6/22/12
to seleniu...@googlegroups.com

I have tried my best to not go off on a rant, but you still seem to completely misunderstand the issue here.  Two points:

 

1.       You have not found a solution!

2.       Your website has JavaScript performance issues!

 

Yes you have found a dirty hack to get your tests working (very extreme when you can just use a custom firefox profile, but hey whatever floats your boat) and you can now get your tests passing, but this does not mean there is no problem.

 

Selenium has actually pointed you towards a bonafide issue with your website, you have done all you can to ignore this issue and not report it up the chain to the devs so that they can fix it.  Your excuses range from “they won’t listen to me” to “I don’t want to”.  If you are testing something you should be raising issues and getting people to look at potential problems, not covering them up to make your life easy (top tip it won’t make your life easy in the long run).

 

If your managers are telling you to change tool, when the tool you are using highlights valid issues with the product you are testing they are quite frankly idiots.

 

What frustrates me most is you even say that you think the application is not fit for purpose.  How the hell can you say it passes testing when you yourself think it’s broken?  Why can you not get the dev team to make it fit for purpose?

 

In summary ARRRGGGHHAHHAHGGGHGHH!!!!

 

 

-----Original Message-----
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Krishnan Mahadevan
Sent: 22 June 2012 11:58
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

 

Maxwell,

 

I guess these two preferences are accessible from within firefox when you do a about:config.

 

So when you change any values from about:config manually in firefox, these values are written to a file named "prefs.js" which would be present in your firefox profile directory.

 

So you might want to try this easy way out :

 

 

FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("dom.max_chrome_script_run_time", MYVALUE); profile.setPreference("dom.max_script_run_time",  MYVALUE ); WebDriver driver = new FirefoxDriver(profile);

 

Use this instance of FirefoxDriver and see if the problem goes away.

 

Here MYVALUE is whatever value you would like it to have.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

 

 

 

On Fri, Jun 22, 2012 at 4:13 PM, Maxwell <mihir...@gmail.com> wrote:

 

>  *Issue Resolved *:):) :) :)

> 

>  Thanks everybody :)

> 

>    I never told that this issue is a Selenium bug, all I wanted that

> there might be some way to overcome this problem, some way some settings.

>    Also it is not an issue with my website as everybody thought here,

> and am just a Tester, not a test lead or test manager so that I ll

> tell to dev team that our application is not working in Selenium, so u

> change whatever u have developed and simplify them, so that it should

> run in Selenium.  U know wt ll happen then , they will say change the

> tool, because we r on the process of checking which automation tool we

> can use for our product. we found Selenium is better option and we are

> almost done writing all test cases and everything. Only this issue was coming.

>  But am not saying , u r wrong. U r correct, an Application should

> always fit for purpose, but unfortunately in this case I could not do

> that so problem continued.

> Anyway leave this , I got the solution and I ll tell u how I got it .

> 

>  By Googling I have already got that two settings in firefox causing

> this error.

> dom.max_chrome_script_run_time

> dom.max_script_run_time

> 

> As mentioned in some forum , I tried to give value for those settings

> as 0 to resolve the problem, but it always override by Selenium timeout option=

Peter Gale

unread,
Jun 22, 2012, 7:28:26 AM6/22/12
to seleniu...@googlegroups.com
Hey, Mark!

I never thought I'd want or need to quote a certain book, but unfortunately, Mark, but not everyone is ready to benefit from your experience and wisdom, so keep the all good work and try to focus your efforts where you think it will be well received ...

 "He who has ears, let him hear" (Matthew13:9)

Peter

From: mark....@lazeryattack.com
To: seleniu...@googlegroups.com
Subject: RE: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server
Date: Fri, 22 Jun 2012 12:15:32 +0100

Maxwell

unread,
Jun 22, 2012, 8:42:19 AM6/22/12
to seleniu...@googlegroups.com
Hey Peter and Mark,

 Am not saying wt ever u told r wrong, U guyz have lots of experience in Selenium and testing field , that's y I came here and asked question so that I get some solution.
But what ever u told that does not look like solution for me, that seems to be additional knowledge for me.
Some times dirty hacks are better solution than not getting any solution.
Am not saying u r wrong, but I want to point out that If Selenium is pointing out that problem in my website, then Y it dint show in any log, y Firefox error pop up came up.If that error came up that means my website has issue, y my website?, in other way u can also say Selenium cant handle a website which loaded with java script ? right ? Am using Selenium for functional testing not for performance testing.
Our Application fit for purpose , it fits the functionality , it meets the required performance, only it was not fitting to use Selenium which I made it for use by some dirty hack . As it was not fitting for Selenium I agreed with Peter, here I want to say , Tools are made for Application, Applications are not made for Tools.
Mark, we do raise issues whenever we found. that's our job, we don't cover it up, If any testers cover up issue then it ll bring problem for that Tester only. But we cant raise something which we are not sure whether that's an issue or a faulty settings.
Instead of blaming each other I wanted a solution.
I wanted to make it work in any way. I was using custom Firefox profile from beginning, and Selenium always override that settings of Firefox.

Though it looks like a hack for u , Its a solution for me.





On Friday, June 22, 2012 4:58:26 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Hey, Mark!

I never thought I'd want or need to quote a certain book, but unfortunately, Mark, but not everyone is ready to benefit from your experience and wisdom, so keep the all good work and try to focus your efforts where you think it will be well received ...

 "He who has ears, let him hear" (Matthew13:9)

Peter
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

On Friday, June 22, 2012 4:58:26 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Hey, Mark!

I never thought I'd want or need to quote a certain book, but unfortunately, Mark, but not everyone is ready to benefit from your experience and wisdom, so keep the all good work and try to focus your efforts where you think it will be well received ...

 "He who has ears, let him hear" (Matthew13:9)

Peter
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

On Friday, June 22, 2012 4:58:26 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Hey, Mark!

I never thought I'd want or need to quote a certain book, but unfortunately, Mark, but not everyone is ready to benefit from your experience and wisdom, so keep the all good work and try to focus your efforts where you think it will be well received ...

 "He who has ears, let him hear" (Matthew13:9)

Peter
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

On Friday, June 22, 2012 4:58:26 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Hey, Mark!

I never thought I'd want or need to quote a certain book, but unfortunately, Mark, but not everyone is ready to benefit from your experience and wisdom, so keep the all good work and try to focus your efforts where you think it will be well received ...

 "He who has ears, let him hear" (Matthew13:9)

Peter
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.

Shaba K

unread,
Jun 22, 2012, 8:48:09 AM6/22/12
to seleniu...@googlegroups.com
Hi There,

Was about to post this issue.

I am on FF 13 - WebDriver - C# bindings.

Not sure why this is happening when i run my Test Suite.

@ Jim,Simon,Luke

Is this a bug ?

Cheers,
S

On Thu, Jun 14, 2012 at 11:10 AM, Maxwell <mihir...@gmail.com> wrote:
 Nobody faced this type of situation ever ??

On Wednesday, June 13, 2012 8:06:14 PM UTC+5:30, Maxwell wrote:
FYI 
I have tried firefox 10 , 12 . In both this issue is coming  :(

On Wednesday, June 13, 2012 7:50:38 PM UTC+5:30, Maxwell wrote:
 Hi Guyz,

 I have created test suite using Selenium IDE ,and then I am running that html suite using Selenium Server with Firefox.

 Everything runs perfectly, only the problem is in some pages I get the below pop up  which ask me to Continue or stop script.

  "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

Script: http://testbuild/Scripts/jquery-1.5.2.min.js:16"


 Please help guyz, how to get rid of this issue.
The problem is if i dont click anything then test is not going ahead.Am planning to put the testsuite in scheduler , so in that case it wont complete at all.

For you information, If i normally do the manual testing or navigate to the same page in the application, then it is not showing any error .

I googled for this issue a lot, most of the places they asked to increase the script run time value in firefox.
When i did that and checked while the selenium is running, that value is getting override by the Selenium timeout value.

 I tried running that same test case in Selenium IDE, and it dint show any error.

So Guyz, Please help.

Thanks
Maxwell

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/oHUrYD-Up5kJ.

To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.

Peter Gale

unread,
Jun 22, 2012, 8:55:59 AM6/22/12
to seleniu...@googlegroups.com
Shaba

Read the full thread , available from the furm home page, and you'll find more information on the issue.

Peter


Date: Fri, 22 Jun 2012 13:48:09 +0100

Subject: Re: [selenium-users] Re: "Warning: Unresponsive script " error is coming while running Html suite in Selenium server

Peter Gale

unread,
Jun 22, 2012, 9:29:01 AM6/22/12
to seleniu...@googlegroups.com
Maxwell

My final post here before I go away for the weekend ...

I'm happy that somehow we helped you to get your tests running again. However, I must politely agree with here Mark at least to the extent that the occurrance of this error message would initially indicate that there is potentially a problem with your web having too much or perhaps inefficient javascript on your web page making it liable to this error recurring at some later time and possibly it is not fit for purpose.

When you say:

> we do raise issues whenever we found. that's our job, we don't cover it up

... and ...


> But we cant raise something which we are not sure whether that's an issue or a faulty settings.

You seem to be contradicting yourself.

The occurrence of this error is something that you should really discuss with a developer at least without necessarily formally raising it as a defect with your application, just as you have chose to discuss it here.

And until you have had such a discussion with one of your developers and fully understand the cause of the problem and proper course of action you have to take as the proper long term solution, than anything you have done in the meant time is just a work around or a hack, even if that action turns our to have been the best possible course of action, and you do therefore seem to be covering this issue up in a way that you say you don't do.

And I quite happily admit that I do sometimes resort to hacks myself, though only where I've talked to the developer first (or another developer if it's my code) and at least tried to fully understand the problem and come up with a proper long-term solution.

Cheers!


Peter



Date: Fri, 22 Jun 2012 05:42:19 -0700
From: mihir...@gmail.com
To: seleniu...@googlegroups.com
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/jiy_agR-k9gJ.

Shaba K

unread,
Jun 22, 2012, 9:33:24 AM6/22/12
to seleniu...@googlegroups.com
@Peter,

It is a JQuery issue ?

I was sure it is nothing to do with webdriver.

You know how Dev plays blame game.

Wanted to give a proper explanation to them.

Cheers,
S

Mark Collin

unread,
Jun 22, 2012, 9:40:50 AM6/22/12
to seleniu...@googlegroups.com
Peter,



It's not the fact that they are not listening to what I'm saying that annoys
me, it's the fact that this point of view exists in the testing industry and
if it is perpetuated it makes us all look bad.



It is obvious that there is a problem here and no matter what the OP says
this is easy to rectify with a quick chat with the developers to explain
your concerns. I realise that not everybody works in an agile team with
developers that "know their shit" and are open to suggestions from testers,
this does not in my mind however excuse people for throwing their
professional standards in the bin because they don't want an easy life and
they don't' to disagree with the development team and have to prove that
they have found a genuine issue.



As testers we can be the "whipping boy" and I'm sure that most of us have
had problems with developers that think they are above us (In my experience
these developers are usually the one who are below par in the first place).
All of that being said ignoring genuine issues is not a valid response. If
a bug is raised on live who do you think will get the shit, the dev team, or
the tester that didn't raise it as an issue? Raising issues for things like
this is a mixture of ensuring quality and arse covering. If nothing else,
when it is proved that you had a valid point that should give the developers
enough respect for you that they won't fight every defect that you raise in
the future.



I've had my rant and I'll leave it at that but refusal to acknowledge
problems that you have found ranks top of my list of things that really
annoy me!

Maxwell

unread,
Jun 22, 2012, 9:45:29 AM6/22/12
to seleniu...@googlegroups.com
Peter,

I am very happy and thankful to u that u understood my situation and problem.
 right now I ll stick to this hack, but am also trying to properly generate the performance issue, so that we can show it to dev team as an issue and plan for a long term solution, that's wt i mean when i told " we r not sure its an issue or faulty settings".
Thanks Peter.
Happy Weekend :)

Maxwell



On Friday, June 22, 2012 6:59:01 PM UTC+5:30, PeterJef...@Hotmail.co.uk wrote:
Maxwell

My final post here before I go away for the weekend ...

I'm happy that somehow we helped you to get your tests running again. However, I must politely agree with here Mark at least to the extent that the occurrance of this error message would initially indicate that there is potentially a problem with your web having too much or perhaps inefficient javascript on your web page making it liable to this error recurring at some later time and possibly it is not fit for purpose.

When you say:
> we do raise issues whenever we found. that's our job, we don't cover it up

... and ...

> But we cant raise something which we are not sure whether that's an issue or a faulty settings.

You seem to be contradicting yourself.

The occurrence of this error is something that you should really discuss with a developer at least without necessarily formally raising it as a defect with your application, just as you have chose to discuss it here.

And until you have had such a discussion with one of your developers and fully understand the cause of the problem and proper course of action you have to take as the proper long term solution, than anything you have done in the meant time is just a work around or a hack, even if that action turns our to have been the best possible course of action, and you do therefore seem to be covering this issue up in a way that you say you don't do.

And I quite happily admit that I do sometimes resort to hacks myself, though only where I've talked to the developer first (or another developer if it's my code) and at least tried to fully understand the problem and come up with a proper long-term solution.

Cheers!


Peter



Date: Fri, 22 Jun 2012 05:42:19 -0700
From: mihir...@gmail.com

Shaba K

unread,
Jun 22, 2012, 10:56:21 AM6/22/12
to seleniu...@googlegroups.com
@Krishnan,


FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("dom.max_chrome_script_run_time", MYVALUE);
profile.setPreference("dom.max_script_run_time",  MYVALUE );
WebDriver driver = new FirefoxDriver(profile);

should it be dom.max_chrome_script_run_time - chrome script ??

Cheers,
S


To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/-k_5UgJCNYQJ.

Krishnan Mahadevan

unread,
Jun 22, 2012, 12:03:45 PM6/22/12
to seleniu...@googlegroups.com
I think so Shaba. You can check the actual value by searching for that preference from within firefox (About:config)

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


Raja sankar

unread,
Jun 26, 2012, 11:00:36 PM6/26/12
to seleniu...@googlegroups.com
This kind of behavior, devs telling change the tool, happens all the time.

When I was using Se1,  AUT thrown OutofMemory error. It took few weeks and host of other tools (JMeter, crawlers) to make the team understand that AUT has performance issues.

It is testers job to explain the issues to devs. Not to brush under carpet.

ராஜசங்கர்
(Rajasankar)

David Smith

unread,
Nov 29, 2013, 12:06:22 PM11/29/13
to seleniu...@googlegroups.com
I know this is a pretty old thread but I just wanted to add my 2c here.  The unresponsive script is happening for our site during testing on a selenium grid sometimes.  There is however no problem for users, I think it's just that selenium adds load and the machines in the grid aren't that fast.  It's a performance thing though, the javascript is not totally broken, it's performance is acceptable to our users so it's not correct in my eyes that the tests fail due to the extra load from selenium.
Reply all
Reply to author
Forward
0 new messages