Wilkes Joiner - 2004-01-21

I'm having a problem navigating between pages that are framesets using javascript. 

Page1 has 3 frames top, content, and bottom.  There is a select box that navigates to Page2, which is also a frameset, when an item is selected.  It appears that the current page is not set after the navigation.

Here is the test code:

WebClient browser = new WebConversation();
WebResponse response = browser.getResponse(new GetMethodWebRequest("http://localhost:8080/frames"));
WebResponse content = browser.getFrameContents("content");
content.getForms()[0].setParameter("customerState", "AL");
WebResponse current = browser.getCurrentPage();
System.out.println(current.getText());  // This prints out Page1 not Page2 as expected.

The javascript is firing and the server processes the request.  Am I using httpunit incorectly?

Thanks,
Wilkes