When running through a test in IE hta mode, the tests halt when an error is thrown by the pop up from IE. How can I either click through or suppress these pop ups?
Thanks.
Doesn't the IE javascript error popup have a checkbox 'display on error'? Simply uncheck this, and the javascript errors appear only as a yellow warning sign in the bottom left. I'm using IE 7, and my code is riddled with javascript errors, but Selenium tests run very well.
you can disable those pop up by IE options, browser menu->tools->internet options->advanced, check "Disable script debugging (internet explore)" and "Disable script debugging (other)"
They are disabled in IE7. The problem occurs when trying to run with the TestRunner.hta
maybe you and i face the same problem. you can open a blank page before run selenium test scripts. if the error message doesn't pop up, i guess it's a selenium bug.
If I just browse using IE7, the error is definitely a javascript error caused by the site. However there are no popups because the option is disabled. The only issue is that when I run with the testrunner and executing my testsuite.html, I get the popups everytime and it stalls the execution unless I am there manually hitting yes.
I have the same problem with IE 6, running with selenium remote-control beta-3 and with iehta browser
It open a pop up telling that there is a script error and asking if I want to continue to running scripts on the page. When I open IE and open the page by myself the popup does not show, so I guess there is a problem with selenium.
Does anyone knows how to solve this?
thanks in advance,
FabrÃcio Lemos
Has anyone found a solution to this problem yet? I get permission denied problems using *iexplore so I switched to *iehta but now I get script error popups. How can these be suppressed?
Hi,
I too have encountered same problem with iehta. As I moved from IE due permission denied issue.
Has anyone got a solution?
This is a complete frustration. I spent way too much time building an entire framework based on Selenium Grid + Selenium RC where the purpose is to run all the functional tests against multiple environment configurations. It works perfectly fine with FF2 and FF3, but the scripts running against IEx crap out 50% of the time stalling the entire test suite. I am about to give up on Selenium because of this. It is just not stable enough for a real world application.
Does anyone have a solution for the IEx JavaScript crashes?
We're working on a more native hook in to IE right now, but it probably won't be for another 3-4 months. We do believe that should help with IE stability, but not completely, since IE inherently buggy.
However, I'm surprised you'd see 50% crashes. Are these legit crashes, or are they just random test failures (timeouts, etc)?
Yes, I have exactly the same problem. Spent months developing a framework to run Selenium tests on multiple configurations. Now I find that iehta Javascript error popups have effectively blown the whole thing out of the water. Is there still no solution for this?
I found a solution for this.
Go to Tools -> Internet Options -> Security -> Custom Level
Set the following -
Scripting of Java applets - Disable
Allow websites to prompt for information using scripted windows - Disable
Active scripting - Disable
Well on second thought, of course, this is not a solution. Yes, it suppresses the popup window, but at the cost of breaking everything else that depends upon running js.
Really, the problem is not with Selenium, which is correctly reporting an error. The answer is that your site has real errors in the js. If engineering decides that they will not fix these errors, then that's an end of it. You cannot use Selenium to navigate a site that is simply broken. This is the price you pay for a tool that, unlike, say, WebTest, uses the real browser. And ironically, it is used as THE selling point for Selenium over Webtest: "Oh no .. we have to have something that runs in the real browser, so we can see errors that real users experience." OK. Here are your real errors. If eng is not going to fix them anyway, then the anti-WebTest stuff is empty rhetoric.
