public class HtmlFrameComp
extends java.lang.Object
This class is used to store the Frame's information.
In SeleniumGUIUtilities, during the navigation of a xpath, if we meet a prefix frame xpath,
we will create a HtmlFrameComp's instance and store it in a map,
next time we meet navigate an other xpath starting
by the same frame xpath, we don't need to navigate again, just reuse this one,
to save time.
If Frame's xpath is /HTML/FRAMESET/FRAMESET/FRAME, and its html source is
<FRAME NAME="toc1" SRC="somelink.html" TARGET="toc2">
Assume that its parent's url is http://some.site.com
This HtmlFrameComp will have following value for its fields:
src = "http://some.site.com/somelink.html"
locator = "name=toc1"
fullXpath = "/HTML/FRAMESET/FRAMESET/FRAME"
When navigate a xpath /HTML/FRAMESET/FRAMESET/FRAME/HTML/BODY/TABLE/TR/TD
The field childXpath will contain /HTML/BODY/TABLE/TR/TD as value
- See Also:
SeleniumGUIUtilities.getPrefixingFrame(String xpath)
,
SeleniumGUIUtilities.navigateFramesR(org.safs.selenium.util.HtmlFrameComp, com.thoughtworks.selenium.Selenium, java.awt.Rectangle)