scrollRootElement property

Class: ConfigurationPlainPlatform: NightwatchLanguage: JavaScript SDK:

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

Syntax

config = { scrollRootElement: value };

Type:

Element|Selector

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}.

The element that should be scrolled.