Locator that looks for the first Element with the specified id
Locators 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.
(WebTester tester, String elementId)
Locator may return 0 nodes, 1 node or multiple nodes.
- returns at most 1 org.w3c.dom.Element