public class DomNodeUtil extends Object
DomNode helper methods.| Constructor and Description |
|---|
DomNodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
selectNodes(com.gargoylesoftware.htmlunit.html.DomNode domNode,
String xpathExpr)
Evaluates an XPath expression from the specified node, returning the resultant nodes.
|
static <X> X |
selectSingleNode(com.gargoylesoftware.htmlunit.html.DomNode domNode,
String xpathExpr)
Evaluates the specified XPath expression from this node, returning the first matching element,
or null if no node matches the specified XPath expression.
|
public static <E> List<E> selectNodes(com.gargoylesoftware.htmlunit.html.DomNode domNode, String xpathExpr)
Calls WebClientUtil.waitForJSExec(com.gargoylesoftware.htmlunit.WebClient) before
executing the query.
domNode - the node to start searching fromxpathExpr - the XPath expressionpublic static <X> X selectSingleNode(com.gargoylesoftware.htmlunit.html.DomNode domNode,
String xpathExpr)
Calls WebClientUtil.waitForJSExec(com.gargoylesoftware.htmlunit.WebClient) before
executing the query.
domNode - the node to start searching fromxpathExpr - the XPath expressionCopyright © 2004–2015. All rights reserved.