scroll_root_element method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: Python SDK:

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

Syntax

eyes.Check(Target.window().scroll_root_element(element))
eyes.Check(Target.window().scroll_root_element(selector))
eyes.Check(Target.window().scroll_root_element(by))

Parameters

element
Type:AnyWebElement
The element that should be scrolled.
AnyWebElement
The type AnyWebElement is defined as: Union[EyesWebElement,WebElement].
selector
Type:CssSelector
A CSS selector to the element that should be scrolled.
CssSelector
The type CssSelector is defined as: Text.
by
Type:BySelector
A By Locator to the element that should be scrolled.
BySelector
The type BySelector is defined as: List[SeleniumBy,Text].

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.