# XPath

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

This assertion interface is as follows:

![](https://1914040845-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYfhIaTTw23Sf3L5jfe%2F-LgrKP3zFd8Pe9rytuu8%2F-LgrOGxjrh9Cw-cjXRFN%2F10.png?alt=media\&token=9e0c10ae-4a20-48ad-b946-23c284ba3b7d)

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](https://docs.testmace.com/master/node-types/assertion-node/..#failovoe-predstavlenie) Assertion file representation documentation in the `#/definitions/ScriptAssertion` definition.
