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

Reply via email to