ApplesauceOS
Read Markdown ↗Download .md

Element.scrollIntoView

Reveal an existing element in its nearest scroll view.

js
element.scrollIntoView()

Arguments

No arguments.

Returns

The same element.

Example

js
const row = UIHelper.waitForElement({id: "targetRow"}, 3000);
row.scrollIntoView();
console.log(row.isDisplayed());

Notes

A row not yet present in a virtualized list cannot be found this way. Use bounded scrolling and fresh queries.

All JavaScript APIs · Automation playbook