Xpath Finder Css Selector
View on Chrome Web StoreChrome will indicate if you already have this installed.
Overview
XPath Forte by Sam — Crafted with Code. Fueled by Passion.
⚠️ Heads-up: After installation, give your browser a quick restart to activate all features smoothly.
Say goodbye to fragile XPath selectors and tedious trial-and-error. XPath Forte by Sam helps developers, testers, and automation engineers generate the most robust, reliable, and readable XPath, CSS, and Playwright selectors without breaking a sweat. Whether you're building Selenium or Playwright test automation frameworks, debugging DOM elements, or maintaining locator pages, XPath Forte delivers context-aware intelligence to help you navigate even the most complex web structures including Shadow DOM and iframes.
🏆 NEW IN v2.5.0
⭐ Shadow DOM Piercing — Inspect and generate selectors for elements inside open Shadow DOMs. Piercing CSS selectors using the >>> combinator are auto-generated.
⭐ Heal Tab (Batch Verify) — Paste multiple XPath, CSS, or Playwright selectors and verify them all against the current page in one click. See pass/warn/fail status per selector with a summary.
⭐ Scan Tab (Locators Page) — Scan the entire page for interactive elements and auto-generate the best locator for each. Copy All, download report, and click-to-highlight.
⭐ Scroll into View — Evaluate/test matches now auto-scroll the first matched element into the viewport.
📦 v2.4.0 HIGHLIGHTS
⭐ SVG & MathML element support with accurate class-based selectors.
⭐ Cross-frame inspection fix for iframes.
⭐ Improved XPath accuracy — extension UI excluded from uniqueness checks.
⭐ Smoother 60fps inspection highlighting.
⭐ Added data-auto test attribute support for Playwright locators.
🔑 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 stable selector from all XPath, CSS, and Playwright candidates.
✅ XPath + CSS + Playwright – Three selector types with the same stability scoring, side by side.
✅ Shadow DOM Support – Piercing selectors for open Shadow DOM elements, auto-generated.
✅ Heal Tab – Batch-verify all your selectors in one click. Catch broken locators before your CI pipeline does.
✅ Scan Tab – Auto-generate a full locators page for any web page. Export-ready.
✅ Testing Attribute Support – First-class support for data-testid, data-cy, data-qa, and data-auto conventions.
✅ Stability Scoring – Every selector rated Stable / Moderate / Fragile (0–100). Know which selectors survive the next deploy.
✅ Match Count Badges – Green = unique. Amber = multiple. Red = none. Instant visual feedback.
✅ Live Evaluate & Test – Paste any XPath, CSS, or Playwright locator and test it live with visual highlighting and auto-scroll.
✅ Relative Anchor XPaths – Builds short, resilient paths from the nearest stable ancestor.
✅ 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.
✅ iframe Support – Elements inside nested frames are fully supported.
✅ One-Click Copy – Copy any selector; panel stays open, evaluate input auto-fills for instant verification.
✅ Minimal Permissions – No background access. We only act when you say so.
XPath Forte by Sam isn't just another tool - it's your testing sidekick that tells you exactly which selector to use and why.
Level up your automation game. Write better selectors. Build smarter tests.
Tags
Privacy Practices
🔐 Security Analysis
This extension hasn't been security-scanned yet.