LocatorBuilders.add('wicketpath', function(e) { this.log.debug("wicketpath: e=" + e); if (e.attributes && e.hasAttribute("wicketpath")) { this.log.info("found attribute " + e.getAttribute("wicketpath")); return "//" + this.xpathHtmlElement(e.nodeName.toLowerCase()) + "[@wicketpath=" + this.attributeValue(e.getAttribute("wicketpath")) + "]"; } return null; }); LocatorBuilders.order.unshift(LocatorBuilders.order.pop()); |
Please check https://cwiki.apache.org/WICKET/selenium-tips.html
Because IDebugSettings#setOutputComponentPath(true) functionality need to be used, you need to:
Main window description
Starting the Application
Recording events
Playback - Running the script
Tip: for more detailed documentation and video tutorials user this link: http://jroller.com/selenium/