scrollRootElement property

Class: ConfigurationPlainPlatform: PlaywrightLanguage: JavaScript SDK:

Use this property to set and retrieve the element to which setHideScrollbars will be applied.

Syntax

config = { scrollRootElement: value };

Type:

ElementHandle|Selector

The element that should be scrolled.