2022-08-06 14:49:20 +00:00
|
|
|
---
|
2023-04-13 12:26:52 +00:00
|
|
|
sidebar_label: ElementHandle.scrollIntoView
|
2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
|
2023-04-13 12:26:52 +00:00
|
|
|
# ElementHandle.scrollIntoView() method
|
|
|
|
|
|
|
|
Scrolls the element into view using either the automation protocol client or by calling element.scrollIntoView.
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class ElementHandle {
|
2023-04-13 12:26:52 +00:00
|
|
|
scrollIntoView(this: ElementHandle<Element>): Promise<void>;
|
2022-08-06 14:49:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ------------------------------------------------------------ | ----------- |
|
|
|
|
| this | [ElementHandle](./puppeteer.elementhandle.md)<Element> | |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|