# XPath

**XPath assertion** позволяет проверить значение по XPath-селектору.

Данный **assertion** имеет следующий интерфейс:

![](https://1795169151-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh_FaVh9XfQJ0p1KqZ1%2F-LiMoTO-UrojOGzKuxKG%2F-LiMqigZk5Cy3AUJ9gxl%2Fx_1.png?alt=media\&token=152c1fe3-8854-4f26-81c9-c2e4a381ce19)

**XPath assertion** имеет следующие поля:

* **Text** - текст, где будет производиться поиск
* **Path** - XPath селектор
* **Expected value** - ожидаемое значение по данному селектору

### Исправление ошибок

При исправлении ошибки в данном виде **Assertion**-а ожидаемому значению присваивается значение, лежащее по селектору.

### Файловое представление

В файле **Assertion** имеет тип `xpath` , описание самого типа можно найти в документации к [файловому представлению Assertion](https://docs-ru.testmace.com/0.0.1-beta.16/node-types/assertion/..#failovoe-predstavlenie) в определении `#/definitions/XPathAssertion` .


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-ru.testmace.com/0.0.1-beta.16/node-types/assertion/xpath.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
