Is the function window.showModalDialog supported in the javascript?
 
I get the following trace:
 
Exception class=[org.mozilla.javascript.WrappedException]
com.gargoylesoftware.htmlunit.ScriptException: Wrapped
com.gargoylesoftware.htmlunit.ScriptException: TypeError:
showModalDialog is not a function, it is null. (Embedded script in
/servlet/servletTrSearch
<http://ksmhdev.tietoenator.extern.sw.ericsson.se:8180/mhweb/servlet/ser
vletTrSearch>  from (7, 54) to (0, 0)#69) (Embedded script in
TrSearchBottom.jsp
<http://ksmhdev.tietoenator.extern.sw.ericsson.se:8180/mhweb/TrSearchBot
tom.jsp>  from (14, 31) to (0, 0)#33)
 at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(J
avaScriptEngine.java:322)
 at
com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfP
ossible(HtmlPage.java:736)
 at
com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.jav
a:1489)
 at
com.gargoylesoftware.htmlunit.html.HtmlPage.runEventHandler(HtmlPage.jav
a:1465)
 at
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableEleme
nt.java:103)
 at
net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog.clickElementByXPath(Htm
lUnitDialog.java:1670)
 at
net.sourceforge.jwebunit.junit.WebTester.clickElementByXPath(WebTester.j
ava:2044)

function ieError() {
    var WaspMessage = new Object();
    WaspMessage.waspTitle = "Information";
    WaspMessage.waspMessage = "Batch has started with request identity
7540265014386510083";
    WaspMessage.waspHeading = "Information Message";
    WaspMessage.showStackTrace = "false";
    WaspMessage.myStackTrace = "";
    WaspMessage.techMessage = "";
    window.showModalDialog("/mhweb/waspmodalDialogSource.htm",
WaspMessage, "dialogHeight:300px; dialogWidth:540px;resizable:yes;");
}

 
 
Regards,  Michael D
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to