setScrollRootElement method

Class: EyesPlatform: PuppeteerLanguage: 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:ElementHandle

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 string|{selector:string;type:string}.

Return value

Type: void