This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I met a problem, it blocked me for a long time.
The code as below,
WebConversation con = new WebConversation();
PostMethodWebRequest req = new PostMethodWebRequest("loginPage.jsp", true);
WebResponse loginResponse = conversation.getResponse(request);
WebForm loginForm = loginResponse .getFormWithName("loginform");
When the script was invoked by TestNG, it works well, but with Ant, I need to wait for a long time to get the reponse after submit the form, but from the app console I noticed that it has logged in as soon as the form was submitted.