Smart Locator Builder

All tools

1. Import DOM

Everything runs in your browser, including screenshot reading (OCR). Nothing is uploaded. For best results crop to the DevTools Elements panel. You can also paste an image with Ctrl+V.

2. Element inventory

Analyze a DOM to see buttons, links, inputs, dropdowns and tables here.

3. Locators

Select an element to see ranked, validated locators.

Frequently asked questions

What is Smart Locator Builder?

A free browser tool that turns pasted HTML or a DevTools screenshot into ranked, validated XPath and CSS locators.

Is my HTML uploaded anywhere?

No. Parsing, locator generation, validation and screenshot reading (OCR) all run in your browser.

Which automation frameworks are supported?

Selenium with C# and Java, Playwright with TypeScript and Java, plus generic XPath and CSS.

Does a high score guarantee a locator will keep working?

No. Validation covers only the snapshot you provide, and scores are guidance, not a guarantee against future DOM changes.

Vishwanath Rajasekaran

SDET and Test Automation Engineer. I build tools that make automation faster to write and easier to maintain.