com.gargoylesoftware.htmlunit.ScriptException

Index or size is negative or greater than the allowed amount (index: 1, 0 rows) (Embedded script in http://localhost/test.html#10), Step: SetCheckbox at C:\canoo-webtest\tests\test1.xml:34: with (taskName="setCheckbox") at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:427) at com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedExcepti on(AbstractBrowserAction.java:120) at com.canoo.webtest.steps.Step.execute(Step.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web313

  • Index or size is negative or greater than the allowed amount (index: 1, 0 rows) (Embedded script in http://localhost/test.html#10), Step: SetCheckbox at C:\canoo-webtest\tests\test1.xml:34: with (taskName="setCheckbox") at
  • via htmlunit by smeyfroi
    , 11 months ago
    org.mozilla.javascript.ScriptableObject.putProperty(ScriptableObject.java:1476) at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:842) at org.mozilla.javascript.gen.c53.call(Embedded script:241) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) at org.mozilla.javascript.gen.c68.call(Wrapper definition for onSubmit:1) at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275)
  • TypeError: Cannot find function getElementsBySelector. (Embedded script in http://localhost:8080/simplescrum/test.html from (14, 13) to (0, 0)#3)
  • Stack trace

    • com.gargoylesoftware.htmlunit.ScriptException: Index or size is negative or greater than the allowed amount (index: 1, 0 rows) (Embedded script in http://localhost/test.html#10), Step: SetCheckbox at C:\canoo-webtest\tests\test1.xml:34: with (taskName="setCheckbox") at com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:427) at com.canoo.webtest.steps.AbstractBrowserAction.handleUnexpectedExcepti on(AbstractBrowserAction.java:120) at com.canoo.webtest.steps.Step.execute(Step.java:115) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.