XPath & CSS playground
Test selectors against your HTML. Inspect real matches, compare alternatives and build more resilient locators — free, in your browser.
Local processing · no script executionHTML source
569 bytesPasted scripts never run. Preview styles and remote content are stripped. Use redacted or synthetic HTML.
Selector analysis
Isolated HTML preview
Test more than the happy path
Try a unique selector, a duplicate match, an absent target and an invalid expression. A single result is useful only when it identifies the intended element. Positional selectors deserve extra scrutiny after layout changes.
Source DOM, not a live browser session
Analysis includes the parsed source, including hidden nodes, but not JavaScript-created state, computed stylesheet visibility, live shadow roots or iframe documents. XPath attribute/text matches are valid results but cannot be highlighted as page elements. XPath 1.0 and standard browser CSS syntax are supported; framework-only selectors are not.
Use browser DevTools or your automation runner to confirm interaction readiness. MDN XPath documentation and Playwright’s locator guidance explain supported syntax and semantic choices.
