# Element.scroll

Scroll the nearest scroll view by 75% of its viewport.

```js
element.scroll(direction = "down")
```

## Arguments

| Argument | Type | Meaning |
| --- | --- | --- |
| `direction` | string \| object | "up", "down", "left", "right", or {direction}. |

## Returns

The same element.

## Example

```js
const element = UIHelper.waitForElement({id: "target", visible: true, enabled: true}, 5000);
element.scroll("down");
```

## Notes

This updates scroll position without finger simulation or animation. At the boundary it may not move. Use swipe for touch gestures.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
