MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / getCanonicalXPath

Method getCanonicalXPath

src/main/java/org/htmlunit/html/DomNode.java:1851–1853  ·  view source on GitHub ↗

Returns the canonical XPath expression which identifies this node, for instance "/html/body/table[3]/tbody/tr[5]/td[2]/span/a[3]" . WARNING: This sort of automated XPath expression is often quite bad at identifying a node, as it is highly sensiti

()

Source from the content-addressed store, hash-verified

1849 * @see #getByXPath(String)
1850 */
1851 public String getCanonicalXPath() {
1852 throw new RuntimeException("Method getCanonicalXPath() not implemented for nodes of type " + getNodeType());
1853 }
1854
1855 /**
1856 * Notifies the registered {@link IncorrectnessListener} of something that is not fully correct.

Callers 1

getCanonicalXPathMethod · 0.95

Calls 1

getNodeTypeMethod · 0.45

Tested by

no test coverage detected