GazeClip
Locator finder

Every locator for any element — in one click

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.

✓ Free plan   ✓ No credit card   ✓ Plans from $5/month
⌖

XPath, all kinds

By id, name, test id, text, contains(), class, two attributes, label → field, following-sibling, parent, indexed and absolute XPath.

#

CSS selectors

Short unique CSS first, then attribute, class, nth-of-type and full path selectors.

☕

Selenium code

By.id, By.name, By.className, By.linkText, By.partialLinkText, By.tagName, By.cssSelector and By.xpath — in Java and Python.

🎭

Playwright + Cypress

getByRole, getByLabel, getByPlaceholder, getByText, getByTestId, locator(); cy.get, cy.contains, cy.xpath.

✓

Unique or not — at a glance

Every locator shows how many elements it finds. Hover to highlight them on the page; test your own locator live.

🪟

iframes + shadow DOM

switchTo().frame / frameLocator code for iframes, getShadowRoot() / .shadow() for shadow DOM, and warnings for generated ids.

How it works

1

Inspect

Open DevTools → Elements → GazeClip Locators, or press 🎯 Locators in the extension.

2

Pick

Select or click the element you need.

3

Copy

Copy the unique locator or the ready-made Selenium / Playwright / Cypress line.

Use cases

Who uses it

  • Writing Selenium, Playwright or Cypress tests faster
  • Fixing flaky tests with stable, unique locators
  • Finding elements inside iframes and shadow DOM
  • Checking how many elements a locator matches
  • Handing exact locators to developers in bug reports

One link has everything

Video · steps · API calls · console · environment · screenshots · comments · AI report — in one share page that opens in any browser.

Create a free account

Frequently asked questions

Is the locator finder free?

Yes. Locators are included in every GazeClip plan, including Free.

Where do I find it?

Chrome DevTools → Elements → the “GazeClip Locators” tab next to Styles, the “GazeClip” DevTools tab, or 🎯 Locators in the extension popup.

Does it work inside iframes and shadow DOM?

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.

Which languages are supported?

Selenium Java and Python, Playwright (JavaScript / TypeScript) and Cypress. XPath and CSS work with any tool.

Is anything sent to a server?

No. Locators are worked out in your browser from the page you are on.

Try GazeClip free

Record once. Share the complete story. Fix it faster.

Add to Chrome