Built on top of DOMLens — a Chrome extension for picking DOM elements and generating CSS selectors, XPath, and Playwright locators. Built specifically for the Usertour builder.
Writing CSS selectors requires technical knowledge. Most Usertour creators don't know how to write selectors — they either guess, guess wrong, or reach out to a developer for help. This extension lets you visually pick any element on the page without leaving the Usertour builder interface.
- Smart selectors — Prioritizes test attributes (data-testid, data-cy), clean IDs, semantic attributes, and ARIA labels
- Confidence scoring — Shows whether the selector is high, medium, or low confidence
- Three formats — CSS selectors, XPath, and Playwright locators
- Match counting — Warns if a selector matches multiple elements
- History navigation — Browse through previously picked elements
- Usertour integration — Picks elements inside the Usertour builder iframe
- Clone the repository
- Open
chrome://extensions/ - Enable Developer mode (top right)
- Click Load unpacked
- Select the
lens-usertourdirectory
- Press
Alt+Shift+Lor click the extension icon to start - Hover over any element to see its selector
- Click to lock the selection and copy to clipboard
- Use the format toggle (CSS / XPath / Playwright) to switch output formats
- Press
Escapeto dismiss
npm install
npm run lint # ESLint
npm run format # Prettier
npm test # Run tests
npm run package # Build zipThis project is licensed under the MIT License - see the LICENSE file for details.
For commercial use, see the COMMERCIAL_LICENSE file.