From: Arya F. <ary...@gm...> - 2014-01-19 03:22:34
|
I'm using the following code to submit a form HtmlForm form = page.getForms().get(0); form.getInputByName("file0").setValueAttribute("1.jpg"); HtmlPage page2 = form.getInputByValue("Submit").click(); This "sometimes" returns the server's response, but sometimes returns the form itself when I print page2's text or xml. Am I doing something wrong here? |