From: Cort S. <co...@xm...> - 2002-08-07 01:21:47
|
I have been playing with HtmlUnit all day and have been able to do a few simple tests, but am having a problem with a page that is doing some javascript validation before the form can be submitted. I get the following stack trace which does not help me much: <stacktrace><![CDATA[Exception class=[org.mozilla.javascript.JavaScriptException]com.gargoylesoftware.htmlu nit.ScriptException: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScript Engine.java:153) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavascriptIfPossible(Html Page.java:722) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:69) at com.seamlessweb.htmlunit.LoginTest.test_Order(LoginTest.java:141) I am able to use the page without any issues us IE 6, which is what I set the WebClient browser version to. I had a few other problems with the syntax of select objects (form.selectobject.options[index].value did not appear to work), but was able to fumble through those with the information in the exceptions. Unfortunately this exception does not give me a line or anything to give me a hint as to where it is having a problem. Any assistance would be much appreciated. Cort |