[Httpunit-develop] Javascript problem
Brought to you by:
russgold
From: Avinash <avi...@ya...> - 2003-03-28 11:46:34
|
Hi , I am using Httunit to log into site and check my mails I have pasted my code. The following exception is getting thrown every time i try. If i set my javascript disabled it logs in. Can anyone of u guide me. I have given the path to rhino.jar for javascript. HttpUnitOptions.setScriptingEnabled(true); WebConversation wc = new WebConversation(); WebRequest req = new GetMethodWebRequest( "http://mail.yahoo.com" ); /*****I am getting the exception here****/ WebResponse resp = wc.getResponse( req ); WebForm form = resp.getFormWithName("login_form"); java.lang.RuntimeException: Syntax Error at line 0: null at com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.execute Script(JavaScript.java:93) at com.meterware.httpunit.scripting.ScriptableDelegate.runScript(Scripta bleDelegate.java:53) at com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:5 34) at com.meterware.httpunit.javascript.JavaScript$Window.initialize(JavaSc ript.java:238) at com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:61) at com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate(J avaScriptEngineFactory.java) at com.meterware.httpunit.FrameHolder.updateFrames(FrameHolder.java, Com piled Code) at com.meterware.httpunit.WebClient.updateClient(WebClient.java:375) at com.meterware.httpunit.WebClient.getResponse(WebClient.java:85) at YahooMail.main(YahooMail.java, Compiled Code) Exception java.lang.RuntimeException: java.lang.RuntimeException: Syntax Error a t line 0: null __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |