getScrollRootElement method

Class: ConfigurationPlatform: PuppeteerLanguage: JavaScript SDK:

Returns the element to which Configuration.setHideScrollbars applies to.

Syntax

let configval = config.getScrollRootElement();
config.scrollRootElement = configval;
configval = config.scrollRootElement;

Note that this feature is available as both a method and a property.

Parameters

This method does not take any parameters.

Return value

Type:
ElementHandle|Selector
Returns the value most recently set using Configuration.setScrollRootElement, or returns an undefined value if this method was not called.