From: Brad C. <yo...@br...> - 2004-10-14 19:31:51
|
Looks like the onsubmit on the form containing the submit input you clicked is setting document.location.href to somewhere that doesn't return a response. I briefly tried to do a yahoo mail login and it wouldn't accept my password for some reason, but I got no exceptions. --- Vinay Murthy <vin...@gm...> wrote: > Hi, > I am new to htmlunit. I was trying to use htmlunit to log into my mail > account, but encountered the following exception trace: > > java.net.ConnectException: Connection timed out: connect ... com.gargoylesoftware.htmlunit.javascript.host.Window.jsSet_location(Window.java:302) ... > com.gargoylesoftware.htmlunit.javascript.host.Location.jsSet_href(Location.java:75) ... com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:256) ... com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:699) ... > at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:148) ... com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:77) ... com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:107) ... > com.trilogy.quickstart.htmlunit.test.TestYahooMail.testLogin(TestYahooMail.java:68) ... > Can somebody help me out here ? > > Regards > Vinay > |