Item logo image for Web Element Selector Generator

Web Element Selector Generator

5.0(

1 rating

)
ExtensionDeveloper Tools55 users
Item media 1 (screenshot) for Web Element Selector Generator

Overview

Generate XPath and CSS selectors for web elements.

Web Element Selector Generator instantly turns any element on a page into ready-to-use locators for testing, scraping, and automation. PICK AN ELEMENT • Click an element (with Inspect mode on) or Alt+Click anywhere without blocking navigation. • Right-click any element and choose "Generate selectors for this element." • Or jump straight into Inspect mode with the Alt+Shift+E shortcut. GET 8 LOCATOR STRATEGIES AT ONCE • CSS — relative (shortest unique path) and absolute • XPath — relative and absolute • CSS attribute-contains and XPath text-contains, for elements with dynamic classes/IDs • ARIA role/name selector, for accessibility-first testing • Playwright locator code (getByTestId / getByRole / getByText), ready to paste into your tests • A "recommended" badge highlights the most robust option automatically BUILT FOR REAL-WORLD PAGES • Works inside open shadow roots and same-origin iframes, with clear notes when a selector's scope is limited • "Validate All" checks every generated selector live against the page and reports match counts • Keeps a history of your last 25 picks per tab so you can revisit earlier selections • Configurable attribute priority (prefer data-testid, data-qa, or your own custom attributes) via the Settings page • Export your selection history as JSON or CSV PRIVACY Everything runs locally in your browser. No element data, page content, or selectors are ever sent anywhere — history and settings are stored only in your own Chrome profile. Perfect for QA engineers, automation testers, and developers writing Playwright, Selenium, Cypress, or scraping scripts.

Details

  • Version
    1.1
  • Updated
    July 31, 2026
  • Size
    16.58KiB
  • Languages
    English
  • Developer
    Email
    cotetiumadalin@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
Google apps