Item logo image for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator

Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator

Featured
4.9(

108 ratings

)
ExtensionDeveloper Tools10,000 users
Item media 4 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 5 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 1 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 2 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 3 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 4 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 5 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 1 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 2 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 1 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 2 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 3 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 4 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator
Item media 5 (screenshot) for Locator Labs-Playwright, Selenium, Cypress & WebdriverIO Locator Generator

Overview

Generate smart locators for Playwright, Selenium, Cypress, WebdriverIO & Robot Framework

LocatorLabs - Smart Locator Generation for Playwright, Selenium, WebDriverIO, Cypress and Robot Framework. Developed by Naveen Automation Labs FZCO. πŸ”’ 100% Private - Zero Data Collection | No Cloud | No Ads | Runs Completely Offline Generate intelligent Playwright, Selenium, Cypress, WebDriverIO, Robot Framework locators instantly with quality ratings, automated Page Object generation, and advanced DOM support! ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ“₯ HOW TO INSTALL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. Click "Add to Chrome" above 2. Confirm installation 3. Open Chrome DevTools (F12 or Right-click β†’ Inspect) 4. Find "Locator Labs" tab in DevTools β†’ Elements panel 5. Start inspecting elements to generate locators! ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸš€ WHAT'S NEW IN 2.0.2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ This release focuses on Selenium shadow-DOM parity β€” including first-class Salesforce Lightning (LWC) support β€” and a much faster Page Object workflow. NEW: Salesforce Lightning / LWC Shadow DOM β€” First-Class Support β€’ LWC components (lightning-input, lightning-button, lightning-datatable, lightning-combobox, etc.) heavily use closed shadow roots β€” where page-context .shadowRoot returns null and standard selectors silently fail β€’ The extension now walks these closed-shadow trees using the DevTools-inspected element ($0) as a trusted anchor, so it can generate reliable locators against real Salesforce Lightning pages, Experience Cloud sites, and custom LWC components β€’ LWC-specific attributes (data-target-selection-name, data-name, data-value, data-refid, data-key) are prioritized as top-tier locators β€” they're stable across Salesforce releases and survive re-renders β€’ Nested LWC composition (component inside component inside component) chains correctly, host by host, all the way down β€’ Verified against real Salesforce pages: Setup, Lightning App Builder, Object Manager, custom LWC apps NEW: Selenium 4 Shadow DOM β€” end-to-end β€’ Every recommended Selenium locator inside a shadow root now emits a proper getShadowRoot() chain (Java) or .shadow_root chain (Python) β€” host by host, all the way down to the target β€’ JavaScriptExecutor fallback is generated alongside so you can pick whichever your team prefers β€’ Nested shadow roots (shadow inside shadow inside shadow) chain correctly at every level β€” including deep Salesforce LWC trees NEW: Selenium Shadow-DOM Highlight From the Test Locator Box β€’ Paste any Selenium shadow-DOM snippet β€” Java getShadowRoot(), Python shadow_root, or JS executeScript(...shadowRoot.querySelector...) β€” into the Test Locator box and the extension actually highlights the target element β€’ Works for arbitrarily nested shadow chains (verified up to 3 levels deep on real Salesforce Lightning pages) β€’ Broken chains report which step failed and which selector didn't match β€” no more "Element not found" without a hint NEW: Closed Shadow-Root Detection + CDP Force-Open Workaround β€’ The extension now detects closed shadow roots at inspect time and warns you inline β€’ getShadowRoot() is demoted from "best" to "ok" for closed shadows with a note explaining that Selenium will throw NoSuchShadowRootException at runtime β€’ A CDP-based force-open snippet using Page.addScriptToEvaluateOnNewDocument is promoted to "best" and generated in Java (via DevTools) or Python (via execute_cdp_cmd) β€” drop it into your test setup and every subsequent getShadowRoot() call works, even against closed roots β€’ Critical for Salesforce Lightning (LWC), Stripe Elements, and any modern web-component library that ships with attachShadow({ mode: 'closed' }) β€’ For pages with mixed shadows (open outer β†’ closed inner), the CDP setup only appears when at least one closed shadow is in the chain NEW: Live Page Object Preview β€’ The "Generate Page Object" modal now has a Preview panel β€” see the exact generated code inside the popup, no download required β€’ Switch the Framework & Language dropdown and the preview re-renders instantly across Playwright TS / JS / Python / C# / Java (or Selenium Java ↔ Python, WebdriverIO TS ↔ JS) β€’ Rename the page, check/uncheck elements β€” the preview follows every change β€’ Copy button copies the preview to clipboard; Generate & Download still writes the file β€” both use the same builder so what you see is exactly what you get NEW: Free Language Switching in the Page Object Generator β€’ Previously: after generating a PO once in Playwright TypeScript, switching to Playwright Java (or Python, or C#) was blocked with "Language mismatch!" β€” even though every Playwright language is fully supported by the built-in JSβ†’target converters β€’ Now: within a framework you can freely re-emit the same collected locators in any supported language β€’ True cross-framework switches (e.g. Playwright β†’ Selenium) are still blocked at the earliest point, with a clearer message referencing frameworks rather than language identifiers NEW: Playwright C# and Java Page Object Generators β€’ The PO dropdown now offers Playwright - C# (.NET) and Playwright - Java in addition to TypeScript / JavaScript / Python β€’ C# PO: public class LoginPage, private readonly IPage _page, private readonly ILocator ..., async Task LoginAsync(), correct PascalCase methods, AriaRole.Button, new() { Name = "..." } β€’ Java PO: public class LoginPage, private final Page page, private final Locator ..., public void login(), AriaRole.BUTTON, receiver-qualified option classes (new Page.GetByRoleOptions().setName(...)) so the code compiles unmodified FIXED: Page Object Method Naming β€’ getByRole('button', { name: 'Login' }) used to produce ugly field names like btnButton and methods like clickButton() β€’ Every Playwright dialect now prefers the accessible name over the role β€” you get loginButton / getLogin() / clickLogin() instead β€’ Fixed across TS, JS, Python, C#, and Java generators ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Major Features: All major actions like click, sendKeys, fill, type, textContent, getText, etc. β€” practice and verify these methods directly in LocatorLabs. Other Features: 1. Added all big 5 automation frameworks (Playwright, Selenium, CypressJS, WebDriverIO, Robot Framework) 2. Copy options with locator, full locator text, and locator with variable name 3. Better iframe handling 4. Better Shadow DOM handling 5. Support for Incognito Mode 6. Better error handling 7. Minor bug fixes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⭐ CORE FEATURES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎯 Multi-Framework Support β€’ Playwright (JavaScript/TypeScript, Python, C# .NET, Java) β€’ Selenium (Java, Python) β€’ Cypress (JavaScript/TypeScript) β€’ WebDriverIO (JavaScript/TypeScript) β€’ Robot Framework (SeleniumLibrary / Browser Library) β€’ Seamless framework and language switching 🎯 Smart Locator Generation β€’ Quality ratings: BEST / GOOD / OK for every locator β€’ Recommended vs Alternative locators β€’ getByRole, getByLabel, getByPlaceholder, CSS, XPath β€’ Descriptive explanations for each locator β€’ Whitespace-normalized text/accessible names so getByText and getByRole round-trip correctly 🎯 Non-Invasive Test Highlighting β€’ Highlights matched elements with an overlay β€” never mutates the element's DOM β€’ Tracks the element as you scroll/resize β€’ Prev/Next navigation across multiple matches 🎯 Test Data / Form Fill β€’ One-click positive test data with realistic values β€’ Negative test data for form-validation testing β€’ Number inputs respect min/max/step and label hints β€’ Dropdowns skip placeholder options ("-- Select --", value="0") β€’ Configurable data types from the settings panel 🎯 Selenium 4+ Relative Locators β€’ Generate spatial relationships: above(), below(), toLeftOf(), toRightOf(), near() β€’ Smart anchor element detection β€’ Auto-import generation for Java and Python 🎯 Advanced DOM Support β€’ Shadow DOM traversal & locator generation β€’ Nested iframe / <frame> / frameset support with correct frame-chain emission β€’ SVG namespace-aware XPath β€’ Complex web component handling 🎯 Page Object Generator β€’ Export organized Page Object classes β€’ Element-wise collection management β€’ Framework-specific code generation β€’ Production-ready code output 🎯 Productivity Tools β€’ ✏️ Drawing & annotation tool β€’ ⏸️ Pause mode (Press 'P') β€’ ⌨️ Enter key navigation through elements β€’ πŸ”„ Circular element navigation β€’ Real-time locator validation β€’ Auto-complete with syntax highlighting β€’ Dark/Light theme support ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ”’ PRIVACY & SECURITY ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. ZERO data collection β€” we don't track anything 2. 100% offline β€” no backend servers, no cloud 3. No user accounts required 4. No ads or malware 5. Minimal permissions (activeTab, downloads only) 6. All processing happens locally in your browser Unlike other tools, there's NO backend to hack, NO database to breach, and NO data to steal. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ’Ό PERFECT FOR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - QA Engineers & Test Automation Developers - SDETs (Software Development Engineers in Test) - Salesforce Lightning / LWC teams needing reliable closed-shadow-DOM locators - DevOps Engineers - Software Testers - Automation Framework Developers - .NET / Java teams standardizing on Playwright ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⚑ KEY BENEFITS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Save hours on manual locator creation - Generate maintainable, production-ready code in your team's language of choice - Reduce flaky tests with smart, whitespace-normalized strategies - Learn best practices through recommendations - Inspect nested frames and shadow DOM without leaving the Elements panel - No subscription fees β€” Free forever ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🏒 ABOUT LOCATOR LABS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ LocatorLabs is developed and maintained by: πŸ“ Naveen Automation Labs FZCO πŸ“ DAFZA Free Zone, Dubai, UAE πŸ“ License No: 4949 Created by Naveen Khunteta (@NaveenAutomationLabs) Helping QA engineers worldwide build better test automation. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ πŸ“ž SUPPORT & LINKS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🌐 Website: https://www.locator-labs.com πŸ“§ Support: support@naveenautomationlabs.com πŸ“Ί YouTube: @NaveenAutomationLabs πŸŽ“ Training: https://www.naveenautomationlabs.com πŸ“„ Privacy Policy: https://www.locator-labs.com πŸ“„ Terms of Service: https://www.locator-labs.com ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⭐ If LocatorLabs helps your testing workflow, please leave a review!

Details

  • Version
    2.0.2
  • Updated
    July 30, 2026
  • Offered by
    Naveen Automation Labs
  • Size
    374KiB
  • Languages
    English
  • Developer
    Naveen Automation Labs FZCO
    Email
    naveenanimation20@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

Manage extensions and learn how they're being used in your organization
The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

For help with questions, suggestions, or problems, visit the developer's support site

Google apps