BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.02/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)

---

# Free CSS Selector Tester and Validator Online

## Free CSS Selector Tester

Test and validate CSS selectors against HTML. Preview matching elements and attribute values, check selector syntax, and see a Playwright locator example.

## How it works

### Paste your HTML

Use the HTML from the page you want to query or load the included example. The tester parses it without running scripts or loading images and frames.

### Test a selector

Enter a CSS selector such as table tbody tr or a\[href\]. The results show matching nodes in document order. Add an attribute name such as href to inspect its value.

### Reuse the match

Copy matched values and source snippets as JSON, or use the Playwright locator example as a starting point for your browser automation.

### Which CSS syntax is supported?

Selectors use your browser’s querySelectorAll implementation. Classes, IDs, attributes, combinators, and supported pseudo-classes work. Pseudo-elements such as ::before are not DOM elements and cannot be extracted.

### Why does a selector differ on a live page?

The pasted HTML has no running JavaScript or live hover and focus state. Shadow roots and iframe documents are outside the query. If content appears only after JavaScript runs, copy the DOM from your browser’s developer tools before testing.

## Run your extraction with Playwright.

Connect your own Playwright code to Browser Use and collect data from managed browsers.

[Explore the Playwright integration](https://browser-use.com/playwright)

HTML

CSS selectorAttribute (optional)

Test selectorLoad example
