scrollRootElement method

Class: AppiumCheckSettingsPlatform: AppiumLanguage: Java 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(elementId))
eyes.check(Target.window().scrollRootElement(selector))
eyes.check(Target.window().scrollRootElement(element))

Parameters

elementId
Type:String
The ID of the element that should be scrolled.
selector
Type:By
element
Type:WebElement
The element that should be scrolled.

Return value

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