Paste your HTML, write a selector, and see exactly what it matches — catch broken locators before they break your Selenium or Playwright test.
querySelectorAll; XPath uses the browser's native document.evaluate, so behavior matches what Selenium/Playwright would see in a real browser context.
.title or #header) are shorter and faster to write, and are the standard choice in most modern test frameworks. XPath (like //div[@class="title"]) can do things CSS can't — like selecting an element by its exact visible text, or navigating to a parent element. Most testers default to CSS and reach for XPath only when they hit something CSS can't express.
querySelectorAll for CSS and document.evaluate for XPath. The one thing to keep in mind: if the real page loads content dynamically via JavaScript, make sure you copy the HTML after that content has loaded, not the initial page source.
Inspect, find it highlighted in the DevTools panel, then right-click that highlighted line and choose Copy → Copy outerHTML. Paste that into the box above.