I want submit form with some parameters using httpunit. I wrote smt like
WebForm form = response.getFormWithID(formId);
System.out.println(Arrays.toString(form1.getParameterNames())); //it contains "a"
form.setParameter( "a", "bla-bla"); //exception
form.submit();
But it throws runtime exception org.mozilla.javascript.EvaluatorException: "Form" is not a constructor.
Where I'm wrong?