SnapLocator is a Chrome DevTools extension that generates Playwright, Selenium, Cypress, WebdriverIO and Robot Framework locators straight from the page. Every candidate gets a stability score, self-healing chains, and a one-click Page Object export. No ads, no tracking, no telemetry.
Open DevTools on any page, switch to the SnapLocator tab, pick an element. Every feature below is one click away.
Playwright (TS/JS/Python/Java), Selenium (Java/Python), Cypress, WebdriverIO, Robot Framework - all from the same pick.
Every candidate rated best / good / ok / fragile - so you ship locators that don't break on the next sprint.
Parameterised templates for form inputs - ${'$'}{placeholder}, ${'$'}{name}, ${'$'}{id}, ${'$'}{label}.
Type any CSS or XPath, see live match count + highlight - before you paste it into a test.
Overlay-based element picker plus per-row flash on the inspected page. No more guessing.
Playwright .or() fallbacks generated automatically for fragile primary locators.
Auto-detects nested DOM trees and emits frameLocator() / shadow-root traversal for you.
ancestor / following / preceding / sibling generators for the power cases.
Flags absolute XPath, nth-of-type, auto-generated CSS class names - before they bite you.
Last 50 picks persisted across DevTools sessions - copy any one back in a click.
Pick elements into a basket, hit Generate - full Page Object class in your chosen framework.
Pick, copy, switch framework, jump frameworks - all with shortcuts. No mouse-tax workflow.
It's a Chrome MV3 extension distributed as a zip. Unpack and load unpacked in Developer mode - same as any side-loaded extension.
Grab snaplocator-v0.7.0.zip from the button below. Unzip somewhere stable - this is the folder Chrome will reload from.
Paste chrome://extensions into the address bar. Top-right toggle: Developer mode on.
Click Load unpacked, pick the unzipped folder. SnapLocator now lives in your Chrome.
F12 on any page, click the SnapLocator tab. Pick an element, copy the locator. Done.
All settings live in chrome.storage.sync (your own Chrome profile). The extension only asks for activeTab, scripting and storage - that's it. No background tracking. No ads. The marketing site uses no cookies and no third-party scripts.