> For the complete documentation index, see [llms.txt](https://docs.testmace.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.testmace.com/node-types/assertion-node/xpath.md).

# XPath

**XPath assertion** allows to verify the response message with an XPath expression match.

This assertion interface is as follows:

![](/files/-LgrOGxjrh9Cw-cjXRFN)

This assertion interface is as follows:

* **Text** - the text to find the value in;
* **Path** - an XPath selector;
* **Expected value** - the value that should be matched.
* The **Use negative statement** flag means using the opposite assertion result, i.e. there should be no values for the specified selector in the text.

### Error Fixing

To get rid of an error, the XPath selector value is assigned to the expected value.

### File Representation

The assertion has the `xpath` type in the file. The type description can be found in [Assertion file representation](https://docs.testmace.com/node-types/assertion-node#file-representation) Assertion file representation documentation in the `#/definitions/ScriptAssertion` definition.
