getScrollRootElement method

Class: ConfigurationPlatform: ProtractorLanguage: 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:
Element|Selector
Returns the value most recently set using Configuration.setScrollRootElement, or returns an undefined value if this method was not called.

Type definitions

Element
Used to identify an HTML element defined as import('selenium-webdriver').WebElement|import('protractor').ElementFinder.
Selector
Used to identify an HTML element defined as |import('protractor').Locator|{using:string;value:string}|string|{selector:string;type:string}.