So, I'm trying to use HttpUnit to test a webpage. However, I'm not sure how to follow tabbedpanel(s) from Struts 2. I tried treating it like a normal webpage, in the code below; however, the submit() method for the button I'm trying to select, "New," either doesn't appear to work or, what I suspect is more likely, it just pushes the button and doesn't know to go anywhere because of the tabbedpanel. I'm new to Struts 2 and HttpUnit, so any help would be useful. I've commented heavily, and to some degree, unnecessarily, so I hope it's enough to get some help.
Here's the code snippet.
public void testNewOrder() throws Exception
//webConv represents browser (emulates browser behavior)
WebConversation webConversation = new WebConversation();
//webResp represents page (actual response from website).
//Pass address to getResponse method from browser, put that into the page
WebResponse webResponse = webConversation.getResponse(ADDRESS);
WebForm form = webResponse.getForms(); //select first form in page
//create a submitButton Array populated with the buttons from the form
SubmitButton buttons = form.getSubmitButtons();
System.out.println(buttons);//New //just s.o.p code to remind me which buttons are which.
//follow the "New" button.
WebResponse newOrderPage = form.submit(buttons);
//populate this form with the forms on the "New" page
WebForm newOrderPageForm = newOrderPage.getForms();
System.out.println(parameterList); //This s.o.p. tells me that the parameters of the new page, which should contain 6 variables,
System.out.println(parameterList); //that correspond to different textfields, are not on the page, instead it pulls the parameters
System.out.println(parameterList); //from the "home" page (which has 5 parameters).
EDIT: I now believe it to be more of an Ajax issue than a tabbedpanel issue. I'm going to post a different problem, however, it is still slightly related, on the testing board if you think you can still help me.