Saturday, March 26, 2011

XPathChecker - a tool for Xpath newbies

XpathChecker on FireFox It is a add-on that can easily be installed by going to Tool > Add-ons. It is a great tool that I have come across to be very helpful while writing selenium tests. To show some interesting uses I will be attaching some screen shots of how I can utilize XpathChecker in Firefox to find elements on Etsy.com. If we want to test the 'Sell Page' on Etsy.com, we would want to go to the home page and Click the 'Sell' Link but that link does not have an element id.
Right Click in the Firefox browser select xpathChecker The Xpath Window will pop open where we will look to find the 'Sell' button and give a path something like this: //a[@title='Sell on Etsy']
That was a the basics of a tool that can take you a long way when looking for elements! There are quite a few different ways to find elements on a given webpage the tool that I use is FireBug. Which I will be talking about in the next post.

No comments:

Post a Comment