scrollRootElement method

Class: SeleniumCheckSettingsPlatform: Selenium 4Language: JavaScript SDK:

Normally, Eyes will select the most appropriate element to scroll to execute the fully method. This method is available to allow the user to specify the element to scroll explicitly.

Syntax


eyes.check(Target.window().scrollRootElement(element))

Parameters

element
Type:By|WebElement|EyesWebElement
The element that should be scrolled.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-checksettings-selenium4-javascript.htm'>SeleniumCheckSettings</a>
The value returned is the object that called the method. You can use it to call other methods supported by the object class.