XPath, all kinds
By id, name, test id, text, contains(), class, two attributes, label → field, following-sibling, parent, indexed and absolute XPath.
Inspect an element in Chrome DevTools or click it on the page. GazeClip shows relative and absolute XPath, CSS selectors and ready-to-paste Selenium, Playwright and Cypress code, and tells you which ones are unique.
By id, name, test id, text, contains(), class, two attributes, label → field, following-sibling, parent, indexed and absolute XPath.
Short unique CSS first, then attribute, class, nth-of-type and full path selectors.
By.id, By.name, By.className, By.linkText, By.partialLinkText, By.tagName, By.cssSelector and By.xpath — in Java and Python.
getByRole, getByLabel, getByPlaceholder, getByText, getByTestId, locator(); cy.get, cy.contains, cy.xpath.
Every locator shows how many elements it finds. Hover to highlight them on the page; test your own locator live.
switchTo().frame / frameLocator code for iframes, getShadowRoot() / .shadow() for shadow DOM, and warnings for generated ids.
Open DevTools → Elements → GazeClip Locators, or press 🎯 Locators in the extension.
Select or click the element you need.
Copy the unique locator or the ready-made Selenium / Playwright / Cypress line.
Video · steps · API calls · console · environment · screenshots · comments · AI report — in one share page that opens in any browser.
Create a free accountYes. Locators are included in every GazeClip plan, including Free.
Chrome DevTools → Elements → the “GazeClip Locators” tab next to Styles, the “GazeClip” DevTools tab, or 🎯 Locators in the extension popup.
Yes — it adds the switch-to-frame / frameLocator code for iframes and shadow-root code for shadow DOM. XPath does not work inside shadow DOM, so CSS is suggested there.
Selenium Java and Python, Playwright (JavaScript / TypeScript) and Cypress. XPath and CSS work with any tool.
No. Locators are worked out in your browser from the page you are on.