Point at anything on a page and instantly get its CSS selector, XPath, or Playwright locator.
- Smart selectors — Prioritizes test attributes (
data-testid,data-cy), clean IDs, semantic data attributes, and ARIA labels - Confidence scoring — Shows whether the selector is high, medium, or low confidence
- Three formats — CSS selectors, XPath, and Playwright locators (
getByRole,getByLabel, etc.) - Match counting — Warns if a selector matches multiple elements
- History navigation — Browse through previously picked elements
- Draggable panel — Position the UI anywhere on screen
- Keyboard shortcut —
Alt+Shift+Lto toggle
- Clone the repository
- Open
chrome://extensions/ - Enable Developer mode (top right)
- Click Load unpacked
- Select the
lensdirectory
Download the latest release from the Releases page and unpack it, then follow steps 2-5 above.
- 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 testsMIT
