Summary
Public Constructors |
|
XPathLocator(WebTester tester, String xPathExpressionStr)
Locates org.w3c.dom.Node's using the specified net.sourceforge.jwebunit.WebTester
|
|
XPathLocator(Node startNode, String xPathExpressionStr)
Locates org.w3c.dom.Node's starting from the specified org.w3c.dom.Node
|
Public Constructors
public
XPathLocator
(WebTester tester, String xPathExpressionStr)
Locates org.w3c.dom.Node's using the specified net.sourceforge.jwebunit.WebTester
Parameters
tester
| the WebTester in play |
xPathExpressionStr
| the xpath string |
public
XPathLocator
(Node startNode, String xPathExpressionStr)
Locates org.w3c.dom.Node's starting from the specified org.w3c.dom.Node
Parameters
startNode
| the org.w3c.dom.Node to start at |
xPathExpressionStr
| the xpath string |
Public Methods
public
Node[]
getNodes
()
A Locator
may return 0 nodes, 1 node or multiple nodes.
Returns
- a non null array of Nodes that match, or a zero sized array of no matches are made