Description
Locator Spy: AI-Powered Locator Generator
Simplify Web Automation with Intelligent Locator Generation
Locator Spy is an advanced Chrome extension designed to revolutionize how developers and QA engineers identify web elements. By leveraging the power of Artificial Intelligence, it eliminates the guesswork and fragility of traditional selector creation, providing you with robust, reliable, and stable locators for your automation frameworks (Selenium, Playwright, Cypress, Appium, etc.).
---
Why AI? The Power of Intelligent Selection
Web applications are dynamic and complex. Traditional locators often break when class names change, attributes shift, or the DOM structure updates. Locator Spy solves this by using Large Language Models (LLMs) to understand the *context* and *purpose* of an element, not just its code structure.
Context-Aware Analysis:The AI analyzes the element's surrounding HTML, text content, and attributes to understand what makes it unique.
Resilience to Change:Instead of relying on brittle CSS paths, the AI suggests semantic locators (like "Verify AI rule is shown" text matches) that are less likely to break during UI updates.
Optimized Suggestions:It generates multiple strategies—CSS Selectors, XPath, and Text-based locators—and ranks them by stability, giving you the best option instantly.
Self-Validation: The AI doesn't just guess; it can cross-reference the locator against the current page to ensure it uniquely identifies the target element.
---
Key Features
Instant Locator Generation:Get optimized CSS, XPath, and text-based locators in a single click.
AI-Powered Optimization:Uses advanced models (like Google Gemini) to craft selectors that are human-readable and resilient.
Multi-Strategy Output:View multiple locator options side-by-side to choose the one that fits your testing framework best.
Seamless Integration: Docked conveniently in your Chrome DevTools for a native workflow experience.
---
How to Use
1. Download & Install:Add Locator Spy to Chrome from the Web Store.
2. Open DevTools:Right-click anywhere on a webpage and select "Inspect" to open Chrome Developer Tools.
3. Locate the Tab: Click on the "Locator Spy" tab within the DevTools panel.
4. Configure AI Settings:
* Click on "AI Settings" in the top right corner.
* Select your AI Provider (e.g., Google Gemini).
* Enter your API Key (get it from [Google AI Studio](https://aistudio.google.com/)).
* Choose your preferred model (e.g., Gemini 2.5 Flash).
* Click "Save Settings".
5. Start Generating:Use the "Locator Mode" or select an element in the Elements panel to instantly generate AI-optimized locators!
Download Locator Spy today and stop fixing broken tests!
Reviews
Loading reviews...
Permissions (5)
Permissions
activeTabℹ Can access the current tab when you click the extension alarmsℹ Can schedule periodic background tasks notificationsℹ Can show desktop notifications scriptingℹ Can inject scripts into web pages storageℹ Can store data locally in your browser
Details
| Version | 1.3.7 |
| Updated | Feb 25, 2026 |
| Size | 674KiB |
| First Seen | Mar 29, 2026 |
More by sumanreddy568
Popular in developer
GoFullPage - Full Page Screen Capture
by GoFullPage
10M
★ 4.89
developer
10M
★ 4.89
developer
TouchEn PC보안 확장
by 라온시큐어
8M
★ 1.33
developer
8M
★ 1.33
developer
React Developer Tools
by Meta
5M
★ 3.95
developer
5M
★ 3.95
developer
Meta Pixel Helper
by Meta
4M
★ 3.91
developer
4M
★ 3.91
developer
ColorZilla
by colorzilla.com
4M
★ 4.59
developer
4M
★ 4.59
developer
Popular Extensions
Adobe Acrobat: PDF edit, convert, sign tools
by Adobe Inc.
331M
★ 4.40
workflow
331M
★ 4.40
workflow
AdBlock — block ads across the web
by AdBlock
62M
★ 4.48
workflow
62M
★ 4.48
workflow
迅雷下载支持
by Shenzhen Xunlei Network Technology Co., Ltd.
59M
★ 2.77
workflow
59M
★ 2.77
workflow
Grammarly: AI Writing Assistant and Grammar Checker App
by Grammarly
42M
★ 4.50
communication
42M
★ 4.50
communication
Adblock Plus - free ad blocker
by eyeo GmbH
41M
★ 4.39
workflow
41M
★ 4.39
workflow