WebResponse nextPage;
WebForm form = webResponse.getForms()[0]; //select first form in page
//initialize WebConversations and Responses
nextPage = webConversation.getResponse(ADDRESS);
nextPageForm = webResponse.getForms()[0];
nextPage = form.submit(form.getSubmitButtonWithID(“buttonNextPage”));
nextPageForm = nextPage.getForms()[0];
HttpUnit and Ajax enabled submit buttons (Testing forum at Coderanch)
Ok, so I need to test an Ajax enabled submit button with Here's what I'm currently doing in my test:. Does anyone know w...
SubmitButton btn = form.getSubmitButtonWithID(“btnMove”);
btn.click();
WebResponse result = conversation.getCurrentPage();
System.out.println(“OK”);
https://svn.strategoxt.org/repos/gw/tags/gw-2004-2005/src/tests/gw/functional/FunctionalTest.java
・Javadoc
http://www.docjar.org/docs/api/com/meterware/httpunit/WebForm.html