13 Replies Last post: Jun 30, 2009 12:53 PM by Kenneth Hopf  
Beginner 3 posts since
May 6, 2008
Currently Being Moderated

May 6, 2008 4:53 PM

How to suppress a java script error pop up message in IE hta mode?

 

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.

 

 

Beginner 8 posts since
May 1, 2008
Currently Being Moderated
1. May 7, 2008 9:07 AM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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.

gim_h Almighty 736 posts since
Oct 17, 2007
Currently Being Moderated
2. May 7, 2008 9:45 AM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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)"

gim_h Almighty 736 posts since
Oct 17, 2007
Currently Being Moderated
4. May 7, 2008 6:58 PM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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.

Fabricio Lemos Beginner 15 posts since
Jul 2, 2008
Currently Being Moderated
6. Aug 12, 2008 1:14 PM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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

Al Beginner 2 posts since
Sep 26, 2008
Currently Being Moderated
7. Sep 29, 2008 4:04 PM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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?

Ajay Beginner 40 posts since
Nov 6, 2008
Currently Being Moderated
8. Dec 1, 2008 8:11 AM in response to: Al
Re: How to suppress a java script error pop up message in IE hta mode?

Hi,

 

I too have encountered same problem with iehta. As I moved from IE due permission denied issue.

Has anyone got a solution?

Csongor Gyuricza Beginner 21 posts since
May 20, 2008
Currently Being Moderated
9. Dec 2, 2008 6:47 PM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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?

Patrick Lightbody Hero 915 posts since
Nov 3, 2005
Currently Being Moderated
10. Dec 3, 2008 7:58 AM in response to: Csongor Gyuricza
Re: How to suppress a java script error pop up message in IE hta mode?

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)?

Kenneth Hopf Beginner 3 posts since
Jun 13, 2009
Currently Being Moderated
11. Jun 29, 2009 5:04 PM in response to: Patrick Lightbody
Re: How to suppress a java script error pop up message in IE hta mode?

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?

Kenneth Hopf Beginner 3 posts since
Jun 13, 2009
Currently Being Moderated
12. Jun 29, 2009 5:52 PM in response to: Kenneth Hopf
Re: How to suppress a java script error pop up message in IE hta mode?

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

Kenneth Hopf Beginner 3 posts since
Jun 13, 2009
Currently Being Moderated
13. Jun 30, 2009 12:53 PM in response to: LuLu
Re: How to suppress a java script error pop up message in IE hta mode?

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.

More Like This

  • Retrieving data ...