Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

HTTPUNIT + AJAX

Help
2010-02-03
2013-04-26
  • renato molina
    renato molina
    2010-02-03

    Hi all.
    I have a problem.
    I need to fill out a field, but this field has an action, to be precise, an
    action "onchange" in your body. Onchange calls a request made in ajax.
    I'm trying to fill this field with the method setParameter class WebForm.
    So I'm using a code like this:
    form.setParameter (myInput "," mycontentblablabla ");
    However, I introduced an error of ECMA.

    org.mozilla.javascript.EcmaError: TypeError: Can not read property "action"
    from null (httpunit # 72)
    at org.mozilla.javascript.ScriptRuntime.constructError
    (ScriptRuntime.java: 3654)
    at org.mozilla.javascript.ScriptRuntime.constructError
    (ScriptRuntime.java: 3632)
    at org.mozilla.javascript.ScriptRuntime.typeError
    (ScriptRuntime.java: 3660) …

    I need help, anyone have any suggestions? Please!
    In other forums got no answers