I'm receiving the following error when running an httpUnit test:
junit.framework.AssertionFailedError: Failed to reach discovery wizard
screen: com.meterware.httpunit.ScriptException: Script
'with(document.discoveryWizardForm)
{
schedule[0].checked=true;
validSchedule(schedule[0].value);
next();
}' failed: org.mozilla.javascript.EvaluatorException: The undefined
...
...
...
However, the Mozilla browser doesn't seem to have a problem and it
executes the logic. Is there a way to disable JavaScript
checking/parsing/whatever in HttpUnit?
If so, please state how.
Jean-Daniel Gamache - 11 Feb 2004 15:25 GMT
just remove your js.jar from your class path, it should fix the problem.
> I'm receiving the following error when running an httpUnit test:
>
[quoted text clipped - 14 lines]
> checking/parsing/whatever in HttpUnit?
> If so, please state how.
emmguyot - 04 Apr 2004 19:36 GMT
Here is the right way to disable Javascript :
HttpUnitOptions.setScriptingEnabled(false);