/src/main/java/org/htmlunit/html/HtmlElement.java
long nodeIndex = 0;
int nodeIndex = 0;
} return parent.getCanonicalXPath() + '/' + getXPathToken(); } private String getXPathToken() { final DomNode parent = getParentNode(); int total = 0; <extra_id_0> for (final DomNode child : parent.getChildren()) { if (child.getNodeType() == ELEMENT_NODE && child.getNodeName().equals(getNodeName())) { total++; } if (child == this) { nodeIndex = total;