# Contains

**Contains assertion** is used to check if a string contains another string.

This assertion interface is as follows:

![](/files/-LgrKr5Hl7BG0PaWPWPs)

The following assertion fields are shown in the screenshot:

* **Text** - the text to find the value in;
* **Value** - the value that needs to be found.

### Error Fixing

This assertion doesn't have any error fixing algorythm.

### File Representation

The assertion has the `contains` type in the file. The type description can be found in the[ Assertion file representation](/master/node-types/assertion-node.md#failovoe-predstavlenie) documentation in the `#/definitions/ContainsAssertion` definition.


---

# 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.testmace.com/master/node-types/assertion-node/contains.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.
