Menu

clickLinkWithText doesn't work w/cursor wait

elmerr
2005-06-03
2013-04-26
  • elmerr

    elmerr - 2005-06-03

    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.

     
    • elmerr

      elmerr - 2005-06-03

      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)

       

Log in to post a comment.

Auth0 Logo