com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set property "value" of undefined to "_id0:_id1" (event for HtmlAnchor[<a href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id1'; document.forms['_id0'].submit(); return false;">]#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:341) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:749) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)

htmlunit | kurti | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    JavaScript: Link clicking does not work correctly

    htmlunit | 1 decade ago | kurti
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set property "value" of undefined to "_id0:_id1" (event for HtmlAnchor[<a href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id1'; document.forms['_id0'].submit(); return false;">]#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:341) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:749) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)

    Root Cause Analysis

    1. com.gargoylesoftware.htmlunit.ScriptException

      TypeError: Cannot set property "value" of undefined to "_id0:_id1" (event for HtmlAnchor[<a href="#" onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id1'; document.forms['_id0'].submit(); return false;">]#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:341) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:749) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107)

      at test.t01.T0174_a.testClearLog()
    2. test.t01
      T0174_a.testClearLog
      1. test.t01.T0174_a.testClearLog(T0174_a.java:79)
      1 frame
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame