Back to Puppeteer

ElementHandle.scrollIntoView() method

website/versioned_docs/version-24.40.0/api/puppeteer.elementhandle.scrollintoview.md

19.2.2554 B
Original Source

ElementHandle.scrollIntoView() method

Scrolls the element into view using either the automation protocol client or by calling element.scrollIntoView.

Signature

typescript
class ElementHandle {
  scrollIntoView(this: ElementHandle<Element>): Promise<void>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

this

</td><td>

ElementHandle<Element>

</td><td> </td></tr> </tbody></table>

Returns:

Promise<void>