我想使用httpunit提交带有一些参数的表单。 我写的像smt一样
WebForm form = response.getFormWithID(formId);
System.out.println(Arrays.toString(form1.getParameterNames())); //it contains "a"
form.setParameter( "a", "bla-bla"); //exception
form.submit();
但它抛出运行时异常org.mozilla.javascript.EvaluatorException: "Form" is not a constructor.
我错了吗?