...
Code Block |
---|
LocatorBuilders.add('wicketpath', function(e) { var path = ''; this.log.debug("wicketpath: e=" + e); var current = e; while (current != null) { if (ecurrent.attributesparentNode && e.hasAttribute("wicketpath")!= null) { path = this.relativeXPathFromParent(current) + path; if this.log.info("found attribute " + e(1 == current.parentNode.nodeType && // ELEMENT_NODE current.parentNode.getAttribute("wicketpath")); { return this.preciseXPath("//" + this.xpathHtmlElement(ecurrent.parentNode.nodeName.toLowerCase()) + "[@wicketpath=" + this.attributeValue(ecurrent.parentNode.getAttribute("'wicketpath"')) + "]" + path, e); } } else { return null; } current = current.parentNode; } return null; }); LocatorBuilders.order.unshift(LocatorBuilders.order.pop()); |
...