# Scroll Element Block

<figure><img src="/files/276se2R6iiLG08LgC8xY" alt=""><figcaption></figcaption></figure>

This block scrolls the page element to the specified coordinates. A screenshot of the settings is shown below.

<figure><img src="/files/hgQLoefmHYVPWft8wErO" alt=""><figcaption></figcaption></figure>

Please note:

This block cannot function without an active tab. For this reason, use the Active Tab block or the New Tab block before using this one.

The block has two modes of operation: CSS Selector or XPatch. In the first mode, the block must receive a css selector of the page element for its operation. In the second mode, the block receives the Xpath of the element. To get a selector, you can use the Element selector tool of the Goless extension. You can also leave the html selector set by default to scroll through the open browser page.

* Settings of the **Selector options** group:

1. **Multiple.** Multiple element selection.
2. **Mark element.** The item will not be selected if it was selected earlier.
3. **Wait for selector.** Wait for the selector to be received. When you select this element, you can enter the timeout of the selector.

* **Scroll horizontal.** Scroll the page element horizontally to the X coordinate.
* **Scroll vertical.** Scroll the page element vertically to the Y coordinate.
* **Scroll into view.** Scroll down until the required item becomes visible in the window. This setting can be paired with the Smooth scroll setting.
* **Smooth scroll.** Turn on the smooth scrolling mode.
* **Increment horizontal scroll.** Add the X scroll coordinate of the matching element with the horizontal scroll you entered.
* **Increment vertical scroll.** Add the Y scroll coordinate of the matching element with the vertical scroll you entered.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.goless.com/blocks/web-interaction/scroll-element-block.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
