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 XPath Tester Online for HTML

## Free XPath Tester

Test XPath expressions online against HTML. Find matching nodes, extract attributes, and evaluate string, number, or boolean results with this free XPath tester.

## How it works

### Provide the HTML

Paste an HTML document or fragment, or load the example. The tester evaluates expressions against an inert HTML document with html and body elements.

### Evaluate an expression

Try //a/@href to read link attributes, //table//tr to match rows, or count(//a) for a scalar result. Node results appear in document order.

### Copy the results

Export node values and source snippets as JSON. String, number, and boolean results can be copied or downloaded as text. Node queries also include a Playwright locator example.

### Which XPath version is used?

The tester uses your browser’s XPath 1.0 implementation. XPath 2.0 functions and custom namespace bindings are not supported. For HTML elements, use lowercase tag names in expressions.

### XPath or CSS selectors?

CSS selectors are convenient for matching elements by class or attribute. XPath can also select attributes and text nodes, navigate to ancestors, and calculate values. Choose the expression that describes the structure you actually have.

## 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

XPath expressionAttribute (optional)

Test XPathLoad example
