setScrollRootElement method

Class: EyesPlatform: ProtractorLanguage: JavaScript SDK:

Use this method to set the element to which setHideScrollbars will be applied.

Syntax

eyes.setScrollRootElement(scrollRootElement_ele);
eyes.setScrollRootElement(scrollRootElement_sel);

Parameters

scrollRootElement_ele
Type:Element

The element or element descriptor.

An element whose position and bounding rectangle defines the region.

Type definitions

Element
Used to identify an HTML element defined as import('selenium-webdriver').WebElement|import('protractor').ElementFinder.
scrollRootElement_sel
Type:Selector

The element or element descriptor.

A selector to an element whose position and bounding rectangle defines the region.

Type definitions

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

Return value

Type: void