scrollRootElement property

Class: CheckSettingsPlainPlatform: NightwatchLanguage: JavaScript SDK:

Normally, Eyes will select the most appropriate element to scroll to execute the fully method. You can use the scrollRootElement method to specify the element to scroll explicitly.

Syntax

eyes.check({ 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}.

This object defines the element to be scrolled.