Click an element, get Playwright, XPath and CSS locators
Switch the Locator tab on and click anything on the page. FindMyLocator shows Playwright's own locators for it, and the shortest unique XPath and CSS, each ready to test or copy.
- Playwright locators by role, label, placeholder or test id, kept only when they find this element alone, in JS / TS, Python, Java or C#.
- Unique XPath and CSS, a Without Index version, a Text Locator and an Iframe Locator, plus a suggested variable name.
- A warning when an id or class looks generated, so you know which locators may break on the next release.
- Elements inside open shadow DOM are picked directly, with paths for Playwright, Selenium and Cypress.
- Name a Specific attribute such as data-test-id and the XPath and CSS use it first. Disabled elements work with right-click > Find My Locator.
- Show locators On the page, or In the side panel, where the last element picked stays ready to copy.