Class Overview
A Locator
that looks for the first Element with the specified id
NOTE : Locator
s are one shot objects. A call to getNodes()
should return the same Nodes every time it is called. Even if the underlying
data source has changed (for example the WebTester page has changed) the Locator
MUST return the same data.
Public Constructors
public
IdLocator
(WebTester tester, String elementId)
Public Methods
public
Node[]
getNodes
()
A Locator
may return 0 nodes, 1 node or multiple nodes.
Returns
- returns at most 1 org.w3c.dom.Element