Monday, December 27, 2010

Check XPath in Firefox with Firebug

There is easy way to check any XPath expression in Firefox if you have Firebug plugin. Just type:

$x('//a')

with your XPath expression and it will output list of matched elements, so you can click it and see on the page. Very handy to check Selenium XPath selectors.