getScrollRootElement method

Class: EyesPlatform: Selenium 4Language: JavaScript SDK:

Returns the element to which Eyes.setHideScrollbars will be applied

Syntax

let result = await eyes.getScrollRootElement();

Parameters

This method does not take any parameters.

Return value

Type: Promise<WebElement>
Returns either the value most recently set using Eyes.setScrollRootElement, or returns an undefined value if this method was not called.