[Httpunit-develop] Refreshing an individial frame
Brought to you by:
russgold
|
From: <an...@pw...> - 2003-03-27 12:40:29
|
Hi Russ, I'm trying to figure out a way to refresh the contents of an individual frame within HttpUnit, in the same way as you can do in the IE browser by right- clicking in the frame and selecting 'refresh'. Refreshing the whole page seems easy enough (by calling WebClient.getResponse with the URL of the current page's WebResponse), but I can't see any way currently of refreshing just a single frame. If you can give me some guidance, I'd be very keen to put forward a contribution on this, as it would greatly help the testing we're doing. I've had a look at FrameHolder.updateFrames, and based on that I think I could add a method (to WebWindow, perhaps) to call WebFrame.getInitialRequest() on the frame I'm interested in, then pass that to WebWindow.getSubframeResponse() to update the target frame. I'm just not sure how the RequestContext parameter is used, and whether I'd need to use the same one that was used when making the original request, or whether passing a new 'empty' one will do. Andrew |