From: John L. <joh...@ca...> - 2003-03-13 21:31:02
|
I am a novice to HtmlUnit and as a first exercise, wrote a test program based closely on "Submitting a Form" from this page: http://htmlunit.sourceforge.net/gettingStarted.html The formo on my test HTML page features three inputs: text, password, submit. I set the text and password using setValueAttribute, and then attempt to submit the form. When I execute this command: final HtmlPage page2 = (HtmlPage)button.click(); I get this compile warning: [INFO] HttpMethod - -Redirect requested but followRedirects is disabled So I then imported java.net and asked this question: assertEquals(HttpURLConnection.getFollowRedirects(), true); Yes, indeed FollowRedirects is set to true. And yet the warning claims it is disabled. Ultimately, I was not able to submit the form. Thoughts? |