Selenideium Element Inspector - A handy tool to log attributes and Selenide, Selenium locators of any web element
You can save dozens of minutes daily while automating tests using Selenide, Selenium, Cypress, Playwright, TestCafe and Squish. You can automagically generate complete line of copy-pastable selector code by simply clicking on an element.
Usage
- Install the plugin
- Open a page
- Open DevTools
- Open console
- Enable permanent log in the console's settings to prevent clearing the console on page change
- Click on an element
- Select the most nice-looking selector
- Copy-paste it into your favourite IDE
- Go to step 6.
Note: If your browser block trackers, kindly either unblock trackers or unblock the extension script to avoid errors π
You can download it from the Chrome Web Store: Selenideium Element Inspector
Any feedback and feature request is much appreciated.
Please leave a review in case you find the plugin useful!
Buy me a coffee in case you save time by using Selenideium Element Inspector! π
πJoin the Selenide community on LinkedIn! β
Running locally
npm i
- installs dependencies
npm run watch
- runs in development mode, watches for file changes
- Open chrome://extensions
- Check the Developer mode checkbox
- Click on the Load unpacked extension button
- Select the folder called
build
Release notes
V2.0
V1.2
- Printing relative XPath selector for both Selenide and Selenium
- Printing CSS selectors based on any unique attribute for both Selenide and Selenium
- Printing CSS selectors based on any unique class for both Selenide and Selenium
- Automatically adding ";" to the end of the selector, so you really only have to copy-paste the code.
- Marking the start and end of the logs belonging to Selenideium Element Inspector
V1.1
- Updated extension description
V1.0
- Printing the clicked element to the console for both Selenide and Selenium
- Printing id based selector for both Selenide and Selenium
- Printing name based selector for both Selenide and Selenium
- Printing tagName based selector for both Selenide and Selenium
- Printing linkText based selector for both Selenide and Selenium
- Printing withText based selector for Selenide
- Printing CSS based selector for both Selenide and Selenium