getScrollRootElement method

Class: EyesPlatform: Selenium 4Language: JavaScript SDK:

Returns the element to which setHideScrollbars will be applied


let result = await eyes.getScrollRootElement();


This method does not take any parameters.

Return value

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