# text

The `text` condition.

True when the target's text matches; give `target` and exactly one of `contains`, `equals` or `matches`.

Type: `object`

## Keys

| Key | Type | Description |
|---|---|---|
| `text.contains` | `string` | Text the element's text must contain. |
| `text.equals` | `string` | Text the element's text must equal exactly. |
| `text.matches` | `string` | A regular expression the element's text must match. |
| `text.target` | `target` | The element whose text is tested. |
