getScrollRootElement method

Class: EyesPlatform: NightwatchLanguage: JavaScript SDK:

Returns the element to which Eyes.setHideScrollbars will be applied

Syntax

let value = eyes.getScrollRootElement();

Parameters

This method does not take any parameters.

Return value

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

Type definitions

Element
Used to identify an HTML element defined as |{ELEMENT:string}|{'element-6066-11e4-a52e-4f735466cecf':string}|import('nightwatch').NightwatchTypedCallbackResult.
Selector
Used to identify an HTML element defined as |{locateStrategy:import('nightwatch').LocateStrategy;selector:'string'}|string|{selector:string;type:string}.