SelectorsHub

What is SelectorsHub?

SelectorsHub is a free-to-use browser extension that auto-suggests all the possible combinations of attributes, text, siblings, etc. to build selectors within seconds.

Problem Statement

ChroPath chrome extension is no more available for fresh install. To overcome this issue, same developer who invented ChroPath, has developed SelectorsHub with better enhancements.

Installation

  • Navigate to https://selectorshub.com/
  • Select browser from the suggested list
  • Add extension to selected browser (For example, for Chrome, click on ‘Add to Chrome’)

Instructions after installation

  • After installing SelectorsHub, restart the browser.
  • Open DevTools
  • On right side of Elements tab, SelectorsHub will be the last tab as shown in below image. If not visible, expand the sidebar.
  • If it doesn't work,
  • Open website in new tab.
  • Don't try on blank tab. There should be a url in address bar.
  • For more details please checkout FAQs here. - > https://selectorshub.com/faq/
  • After successful installation of SelectorsHub plugin, it will appear just like below -
No alt text provided for this image

Features

Following features makes SelectorsHub a unique and one of the best xPath tools when there are other xPath tools available in the market.

Auto suggest :

SelectorsHub is an open source browser extension that auto-suggests all the possible combinations of attributes, text, siblings, etc. to build selectors within seconds.

No alt text provided for this image

Compiler for Selectors

Earlier, no tool could tell us what is wrong in our selector. We were never able to understand what we did wrong with our selector until we were not experts. DevTools suggests 0 matching nodes for the wrong selector pattern. But now you have the Selector’s compiler, which will help you by displaying the correct error message and what is incorrect or missing in your selector.

No alt text provided for this image

ShadowDOM support

Using SelectorsHub now it is possible to write and verify CSS Selectors for shadowDOM elements. We can inspect and verify selectors for shadowDOM elements.

iFrame support

SelectorsHub help us to know inspected element is in iframe or not.

No alt text provided for this image

SVG Element support

SVG stands for Scalable Vector Graphics. SVG elements support different xpath patterns. SelectorsHub let us know the correct format while inspecting SVG elements.

No alt text provided for this image


要查看或添加评论,请登录

Dezlearn Education的更多文章

  • Introduction to JavaScript

    Introduction to JavaScript

    What is JavaScript? JavaScript is a cross-platform, object-oriented scripting language used to make interactive…

  • Handling OS Window Apps in Selenium

    Handling OS Window Apps in Selenium

    In Selenium at times we need to control some OS windows such as Alerts/ Notepad/ Calculator/ Download Popup etc. As we…

社区洞察

其他会员也浏览了