Playwright · Method
locator.scrollIntoViewIfNeeded
Scrolls a locator into view when it is not completely visible. It first waits for actionability checks and returns no value.
Last updated
- Since
- v1.14
Syntax
await locator.scrollIntoViewIfNeeded();
await locator.scrollIntoViewIfNeeded(options);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Locator.screenshotLocator.clickLocator.waitFor