Top 3 Chrome Extensions To Find XPath in Selenium

Sri Priya P Kulkarni
3 min readJun 28, 2021

XPath extensions play a very important role in selenium automation. When we have to write many test cases and there are thousands of elements for which we have to write XPath then it becomes a very much time consuming and tedious process. No one wants to do it manually and that’s where the XPath extension comes into picture which helps in this process and saves a lot of time.

Now There are many XPath extensions so which one should we use?

Here I have listed the top 3 XPath extensions based on user reviews and their features.

  1. Selectors Hub

Currently Selectors Hub is the #1 XPath tool based on user reviews and features. It has solved many locators problems which no other XPath tool supports. It is the only 5* rated XPath tool. It is offered by ChroPath Creator, Sanjay Kumar.

Advantage:

  1. It generates the all-possible selectors and best unique relative xpath & relative CSS Selector. Compared to other tools it generates very optimized XPath & CSS Selector.
  2. Smart Editor- Auto suggests the locator’s functions while writing own selector like a Smart Editor which helps a lot in learning along with time saving.
  3. Shadow DOM, nested Shadow DOM support.
  4. Iframe, nested iframes, frame & nested frames support.
  5. Debugger feature to inspect invisible elements.
  6. Selectors value can be saved in Selectors Hub
  7. Generate multiple selectors for many elements along with code which saves a huge amount of time.
  8. Supports all browsers and regular updates on all browsers.
  9. This is the most secure plugin. Developer has declared it runs offline and in users’ local environments only.
  10. Best part its creator is very approachable and takes the user’s feature request on priority.

Disadvantage: Currently none as it is trending and highly recommended by top trainers and industrialists.

Download link-

https://selectorshub.com/

Detailed Tutorial-

2. ChroPath
Currently ChroPath has more reviews and it used to be the best XPath tool but Chropath creator has stopped development & support on this tool so it is not getting updates and there is no support.

Advantages:
1. It generates all possible selectors.

2. Supports svg , iframe.

3. It gives mostly absolute xpath.

4. It is available for different browsers.

Disadvantages:
1. Chropath creator stopped support.
2. UI breaks.
3. It doesn’t support shadow dom, nested iframe etc.
4. No feature upgrade.
5. It has different functionality on different browsers.

Download link-

3. XPath Helper

XPath Helper is one of the oldest XPath plugin in the chrome store and for the same reason, It has the highest number of users. It was last updated in 2015.

Advantages:
1. It can be used as an editor for XPath only.
2. It is just an XPath verifier.

Disadvantages:
1. It’s a very much 5year outdated plugin and there is no support.
2. It doesn’t auto generate XPath.

3. It doesn’t give any web element information like if it is inside an iframe etc.

Download link-

Hope you liked all the three Chrome extensions.

Thanks for reading the article.

--

--

Sri Priya P Kulkarni

SDET| Blogger! | Automation Enthusiast! | On a journey of Continuous learning.... !