Top Google Chrome Extensions for SQA: xPath Finder

Tools for SQA: xPath Finder



What is xPath: (XML Path Language) is an expression language designed to support the query or transformation of XML documents. it is commonly used in automation tools, so we can locate elements within the page, such as links, buttons, divs (and any other html)

As SQA, and if you are involved in automation, you must know that we do need to locate elements within a website, one of the methods, will be using selenium, and locating elements thru xPath

This tool, will generate us the xPath, so we can just copy and paste it, and start from there,

Is super easy to use:

  • Click on the plugin icon, cursor will be changed to the crosshair
  • Hover over the desired element (elements are highlighted on hover)
  • Click on the element and his xPath will display in the panel at the bottom of the page

xPath Finder Example (using NYTimes web site)


Cursor was placed on the "Best Value" CTA, and you can see that we do have the xPath in the bottom left corner: /html/body/div[1]/div[1]/div/header/div[1]/div/label[2]/div[4]