> 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/contains.md).

# Contains

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

This assertion interface is as follows:

![](https://1914040845-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYfhIaTTw23Sf3L5jfe%2F-LgrKP3zFd8Pe9rytuu8%2F-LgrKr5Hl7BG0PaWPWPs%2F8.png?alt=media\&token=6767e697-c67f-4331-a7ff-4fb68dc8aabd)

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.
