> ## 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.

# scrollLeft

> Scroll the page or a container left.

Scrolls the viewport (or the container described by `in`) left by `pixels`
pixels. Without `pixels`, scrolls one viewport. The simplified scalar form is
the pixel count.

## Parameters

| Parameter | Type                 | Required | Description                                                                                     |
| --------- | -------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| `pixels`  | `number`             | No       | Pixels to scroll. Defaults to a full viewport when omitted.                                     |
| `in`      | `string`             | No       | Description of the scroll container. Defaults to the page when omitted.                         |
| `css`     | `string`             | No       | CSS selector for the target. Use instead of the description key.                                |
| `coords`  | `string \| { x, y }` | No       | Absolute viewport coordinates. Either an `x, y` string (e.g. `120, 40`) or a `{ x, y }` object. |
| `x`       | `number \| string`   | No       | X coordinate. Must be provided together with `y`.                                               |
| `y`       | `number \| string`   | No       | Y coordinate. Must be provided together with `x`.                                               |
| `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

Pixels as a non-negative number.

```yaml theme={null}
- scrollLeft: 500
```

## Examples

```yaml theme={null}
- scrollLeft: 300
```

```yaml theme={null}
- scrollLeft:
    pixels: 500
    in: the horizontal timeline
```

## Related

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