> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# captcha

> Solve a captcha challenge on the current page.

Invokes the built-in captcha solver against the current page or a scoped iframe.
The bare scalar `- captcha` is equivalent to `- captcha: {}`.

## Parameters

| Parameter | Type      | Required | Description                                                           |
| --------- | --------- | -------- | --------------------------------------------------------------------- |
| `force`   | `boolean` | No       | Force the action even when the element is not actionable.             |
| `iframe`  | `string`  | No       | URL or URL pattern of the iframe that contains the target element.    |
| `saveAs`  | `string`  | No       | Name of the variable to write this step's return value to.            |
| `retries` | `number`  | No       | Number of times to retry the step on failure before failing the test. |
| `skipped` | `boolean` | No       | Skip this step at execution time.                                     |

## Shorthand

Bare command.

```yaml theme={null}
- captcha
```

## Examples

```yaml theme={null}
- captcha: {}
```

```yaml theme={null}
- captcha:
    iframe: https://www.google.com/recaptcha/
```

## Related

* [Test format](/core-concepts/test-format)
