ScrollRootElement method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: C# SDK:

Normally, Eyes will select the most appropriate element to scroll to execute the Fully method. You can use the ScrollRootElement method to specify the element to scroll explicitly.

Syntax

eyes.Check(Target.Window().ScrollRootElement(selector))
eyes.Check(Target.Window().ScrollRootElement(element))

Parameters

selector
Type:By
A By selector to the element that should be scrolled.
element
Type:IWebElement
The element that should be scrolled.

Return value

Type: SeleniumCheckSettings
The value returned is the object that called the method. You can use it to call other methods supported by the object class.