我想使用 httpunit 提交带有一些参数的表单。我写了喜欢
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.
我错在哪里?