From: johanholtman <j.h...@so...> - 2003-06-20 18:40:55
|
Hi, I posted the "bug" about the frameset: # 753776. I'm new to the HtmlUnit software, dived into a bit, and saw a few things that may help solving this problemen. Can anyone verify this? I added a simple HTML example (in the bug spec) so the reproduction is easy. As far as I can see in the HtmlAnchor object code is that the TARGET attribute value is not used in the click(). I think the target should influence the currentWebWindow, because that's the window that will be refreshed. Does this help in the HtmlAnchor.click(): 0. save the old frame: previousWebWindow = webWindow // see point 4 1. retrieval of the target webwindow via the frame name: wc = webClient.getWebWindowByName( targetName) 2. setting the current webwindow: webClient.setCurrentWindow( wc) 3. doing the rest of the click() 4. in the Webclient on line 317 could the oldPage be retrieved from the previousWebWindow (point 0). NOTICE: The same applies with an enclosing base/target tag. I think the target attribute of the base-tag is not used in the HtmlAnchor.click(). This could be done by checking within the HtmlAnchor object if it has a parent DOM object being a HtmlBase object with a specific target. |