I have attached an example that I think demonstrates this, the page is kinda
large, sorry. I tried to attach the js files but they are too large. I will
send the one that is failing in 2.2 in a follow up email. Using the attached
file if you invoke the page and click the Save button you get the following
results:
Htmlunit-2.1 - JavaScript error loading page file:/WebTest
Head/tests/companyTest.html: Wrapped java.io.FileNotFoundException:
\administration\applicationConfig.do (The system cannot find the path
specified) (script in file:/WebTest Head/tests/companyTest.html from (443, 34)
to (0, 0)#459)
Htmlunit-2.2 - JavaScript error loading page file:/WebTest
Head/tests/companyTest.html: TypeError: Cannot set property "returnValue" of
null to "true" (file:/js/validations.js#1019)
HtmlUnit-2.2 against the server - JavaScript error loading page
http://qa-opm-03/administration/applicationConfig.do: TypeError: Cannot set
property "returnValue" of null to "true"
(http://qa-opm-03/js/validations.js#925)
So the errors with htmlunit 2.2 are similar when using the server versus
locally, but are drastically different than 2.1, as 2.1 succeeds on the server
and fails locally because I don't have the redirected to page locally.
Does this help to find the problem in HtmlUnit-2.2?
Thanks,
Will
P.S. FYI here is the code I was using:
<config protocol="file"/>
<invoke url="/WebTest Head/tests/companyTest.html"/> <clickButton label="Save"/>