> 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/master/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.

### Fixing Errors

To fix 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](/master/node-types/assertion-node.md#failovoe-predstavlenie) Assertion file representation documentation in the `#/definitions/ScriptAssertion` definition.
