setScrollRootElement method

Class: EyesPlatform: Selenium 4Language: 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:WebElement

The element or element descriptor.

An element whose position and bounding rectangle defines the region.

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('selenium-webdriver').Locator|{using:string;value:string}|string|{selector:string;type:string}.

Return value

Type: void