I have a javascript function:
<script language="JavaScript">
function goTo(actionVal)
{
document.body.style.cursor = "wait";
window.location=actionVal;
}
</script>
The link doesn't work with the cursor="wait" line. If I comment this out, it works fine.
Has anyone run into this before?
Httpunit versions:1.5.4 and 1.6.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The error I get is:
ConversionError: The undefined value has no properties. (httpunit; line 2)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557)
at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:712)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2035)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62)
at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55)
at org.mozilla.javascript.Context.evaluateReader(Context.java:820)
at org.mozilla.javascript.Context.evaluateString(Context.java:784)
at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.getURLContents(JavaScript.java:176)
at com.meterware.httpunit.scripting.ScriptableDelegate.evaluateURL(ScriptableDelegate.java:73)
at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:165)
at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118)
at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107)
at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:245)
at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:224)
at com.meterware.httpunit.WebLink.click(WebLink.java:90)
at net.sourceforge.jwebunit.HttpUnitDialog.submitRequest(HttpUnitDialog.java:573)
at net.sourceforge.jwebunit.HttpUnitDialog.clickLinkWithText(HttpUnitDialog.java:655)
at net.sourceforge.jwebunit.WebTester.clickLinkWithText(WebTester.java:885)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a javascript function:
<script language="JavaScript">
function goTo(actionVal)
{
document.body.style.cursor = "wait";
window.location=actionVal;
}
</script>
The link doesn't work with the cursor="wait" line. If I comment this out, it works fine.
Has anyone run into this before?
Httpunit versions:1.5.4 and 1.6.
Thanks.
The error I get is:
ConversionError: The undefined value has no properties. (httpunit; line 2)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557)
at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:712)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2035)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2163)
at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:62)
at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:55)
at org.mozilla.javascript.Context.evaluateReader(Context.java:820)
at org.mozilla.javascript.Context.evaluateString(Context.java:784)
at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.getURLContents(JavaScript.java:176)
at com.meterware.httpunit.scripting.ScriptableDelegate.evaluateURL(ScriptableDelegate.java:73)
at com.meterware.httpunit.WebWindow.getResource(WebWindow.java:165)
at com.meterware.httpunit.WebWindow.getSubframeResponse(WebWindow.java:125)
at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:118)
at com.meterware.httpunit.WebWindow.sendRequest(WebWindow.java:107)
at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:245)
at com.meterware.httpunit.WebRequestSource.submitRequest(WebRequestSource.java:224)
at com.meterware.httpunit.WebLink.click(WebLink.java:90)
at net.sourceforge.jwebunit.HttpUnitDialog.submitRequest(HttpUnitDialog.java:573)
at net.sourceforge.jwebunit.HttpUnitDialog.clickLinkWithText(HttpUnitDialog.java:655)
at net.sourceforge.jwebunit.WebTester.clickLinkWithText(WebTester.java:885)