# screenshot

The `screenshot` step.

Takes a screenshot, stored as the artifact `artifacts.<name>`. The string form is the name.

Type: `string or object`

## Keys

| Key | Type | Description |
|---|---|---|
| `screenshot.full_page` | `boolean` | Whether to capture the whole scrollable page instead of the viewport. Defaults to `false`. |
| `screenshot.name` | `string` | The artifact name the screenshot is stored under. |

Every step also takes the [common step keys](https://docs.kaab.ist/reference/dsl/steps#common-keys): `expect`, `id`, `if`, `name`, `on_error`, `optional`, `retry`, `side_effect`, `timeout_ms`, `x_kaab`.
