Hi Marc, If I simulate in FF3 I don't get the exception - as you expected. (But I just get an empty page, which seems to be a different issue. I'll might come back to that later when I have more time...).
I opened a ticket for HtmlUnit: https://sourceforge.net/tracker/?func=detail&aid=2895907&group_id=47038&atid=448266 Thanks a lot, cheers Michael -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marc Guillemot Sent: Dienstag, 10. November 2009 16:58 To: [email protected] Subject: Re: [Webtest] JavaScript error: ...com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "ScriptEngineMajorVersion" is not defined. Hi, it seems that ScriptEngineMajorVersion is a function under IE and that it is not simulated by HtmlUnit. Can you please open an issue for that by HtmlUnit? Did you try to simulate Firefox? As this function doesn't exist in Firefox, you shouldn't have this problem. Cheers, Marc. Michael Zwick a écrit : > Hi Marc, > > Many thanks for your response. > > The stack looks like this: > > JavaScript error loading page > http://server.com:7780/product/plsql/phyl/phy_index.home: Wrapped > com.gargoylesoftware.htmlunit.ScriptException: Wrapped > com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: > "ScriptEngineMajorVersion" is not defined. (script in http:// > server.com:7780/product/plsql/phyl/phy_index.home from (1116, 29) to (1116, > 288)#1116) (script in http:// > server.com:7780/product/plsql/phyl/phy_index.home from (1116, 29) to (1116, > 288)#1116) > > If I can provide you with more information to understand the issue, please > let me know (with some details on how to produce it). BTW, the link opens the > right page in any real browser (FF3.5, IE7, opera etc.) without any problems. > > Cheers, > Michael > > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Marc Guillemot > Sent: Dienstag, 10. November 2009 15:26 > To: [email protected] > Subject: Re: [Webtest] JavaScript error: > ...com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: > "ScriptEngineMajorVersion" is not defined. > > Hi, > > can you provide the full stack trace? > > Cheers, > Marc. > > Michael Zwick a écrit : >> Hi, >> >> >> >> WebTest seems to have a problem with JavaScript that is executed when I >> click this link on my page: >> >> >> >> <A >> HREF="javascript:showHelp('StandardUser/section.html?Su_Intro_ProductHomePage.html')">Help</A> >> >> <SCRIPT LANGUAGE=javascript>function showHelp(document) { >> >> url = '/product/doc/help/'+document; >> helpWindow=window.open(url,"ProductHelp","height=600,width=700,menubar=no,location=no,status=no,titlebar=yes,toolbar=no,scrollbars=yes,resizable=yes"); >> >> helpWindow.focus();} >> >> </SCRIPT> >> >> >> >> I get this runtime exception: >> >> "JavaScript error loading page >> http://server.com:7780/product/doc/help/StandardUser/section.html?Su_Intro_ProductHomePage.html: >> >> Wrapped com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: >> "ScriptEngineMajorVersion" is not defined." >> >> >> >> From the console output WebTest's last actions were: >> >> [.] >> >> [invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Current >> response now: >> http://server.com:7780/product/doc/help/StandardUser/section.html?Su_Intro_ProductHomePage.html >> >> [invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - >> Expected content type of 'application/javascript' or >> 'application/ecmascript' for remotely loaded JavaScript element at >> 'http://server:7780/product/doc/help/html_extras/header.js', but got >> 'application/x-javascript'. >> >> [invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Content >> of window changed to >> http://server.com:7780/product/doc/help/StandardUser/html/header.html >> (text/html) >> >> [invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Content >> of frame window has changed without javascript while enclosing page is >> loading, it will NOT become current response >> >> [invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Content >> of window changed to >> http://server.com:7780/product/doc/help/StandardUser/html/blank.html >> (text/html) >> >> [invoke] INFO (com.canoo.webtest.engine.WebClientContext) - Content >> of frame window has changed without javascript while enclosing page is >> loading, it will NOT become current response >> >> [invoke] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - >> Expected content type of 'application/javascript' or >> 'application/ecmascript' for remotely loaded JavaScript element at >> 'http://server.com:7780/product/doc/help/html_extras/highlight.js', but >> got 'application/x-javascript'. >> >> [.] >> >> >> >> Is there a problem with "remotely loaded JavaScript"? >> >> I'd appreciate any help or hint. >> >> >> >> Thanks a lot >> >> Michael Zwick >> > > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ > WebTest mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

