XPath Finder & CSS Selector Generator – XPath Forte
Overview
Generate robust XPath, CSS & Playwright locators with stability scoring. Element inspector for Selenium & Playwright automation.
XPath Forte by Sam — Crafted with Code. Fueled by Passion. Generate stable XPath, CSS, and Playwright selectors in one click — and know exactly which one to trust. XPath Forte inspects any element, builds 60+ locator candidates, scores each for stability (0–100), and recommends the single Best Locator that survives your next deploy. Built for Selenium and Playwright test automation, QA engineers, and anyone tired of fragile, trial-and-error selectors — including the hard cases like Shadow DOM and iframes. 🔄 After installing, reload any tabs you want to inspect (already-open tabs need a refresh to load the extension). 🏆 NEW IN v2.6.0 ⭐ Smarter Best Locator — the strongest selector (ID-scoped, tag-qualified) now ranks first, every time, instead of getting buried. ⭐ Copy-Ready XPath — clean single-quote output that pastes straight into Selenium/Playwright code with zero escaping. ⭐ Accurate Match Counts — the panel's own UI is fully isolated in a closed Shadow DOM, so copied selectors never inflate counts in DevTools or $x(). ⭐ Tag-Qualified Locators — //input[@id='email'] instead of //*[@id='email'] for readability and speed. ⭐ Reliability Fixes — across the panel, overlays, and session handling. 📦 v2.5.0 HIGHLIGHTS ⭐ Shadow DOM Piercing — inspect and generate selectors inside open Shadow DOMs; piercing CSS using the >>> combinator is auto-generated. ⭐ Heal Tab — paste many XPath/CSS/Playwright selectors and verify them all against the live page in one click, with pass/warn/fail per selector. ⭐ Scan Tab — scan the whole page for interactive elements, auto-generate the best locator for each, then Copy All, download a report, or click to highlight. ⭐ Scroll Into View — test matches auto-scroll the first match into the viewport. 🔑 CORE FEATURES ✅ 60+ Smart XPath Patterns — ID, class, attributes, text, aria-labels, data-testid, relative anchors, sibling relations, and more. ✅ Best Locator Engine — automatically picks the shortest, unique, most stable selector across all XPath, CSS, and Playwright candidates. ✅ XPath + CSS + Playwright — three selector types with the same stability scoring, side by side. ✅ Stability Scoring (0–100) — every selector rated Stable / Moderate / Fragile. Know which ones survive the next deploy. ✅ Match Count Badges — green = unique, amber = multiple, red = none. Instant visual feedback. ✅ Copy-Ready Output — single-quote XPath that drops straight into your test code; one-click copy keeps the panel open and auto-fills the evaluate box. ✅ Shadow DOM & iframe Support — piercing selectors for open Shadow DOM; elements inside nested frames fully supported. ✅ Heal Tab — batch-verify all your selectors in one click. Catch broken locators before your CI pipeline does. ✅ Scan Tab — auto-generate an export-ready locators page for any web page. ✅ Testing Attribute Support — first-class data-testid, data-cy, data-qa, and data-auto. ✅ Live Evaluate & Test — paste any XPath/CSS/Playwright locator and test it live with visual highlighting and auto-scroll. ✅ Context-Aware Generation — form labels, fieldsets, table headers, landmarks, and headings used as intelligent anchors. ✅ Dynamic Stability Detection — skips auto-generated IDs and framework hashes while keeping legitimate utility classes. ✅ Privacy-First, Minimal Permissions — uses activeTab (acts only on the page you invoke it on), no host permissions, no tracking. Nothing leaves your browser. XPath Forte by Sam isn't just another selector tool — it's your testing sidekick that tells you exactly which selector to use, and why. Level up your automation. Write better selectors. Ship smarter tests.
5 out of 52 ratings
Details
- Version2.6.0
- UpdatedJune 9, 2026
- Size151KiB
- LanguagesEnglish (United Kingdom)
- DeveloperWebsite
Email
mailtosamdaniel@gmail.com - Non-traderThis 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
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