scroll_root_element method
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.
Type definitions
- AnyWebElement
- The type AnyWebElement is defined as: Union[EyesWebElement,WebElement].
- selector
- Type:CssSelector
- A CSS selector to the element that should be scrolled.
Type definitions
- CssSelector
- The type CssSelector is defined as: Text.
- by
- Type:BySelector
- A By Locator to the element that should be scrolled.
Type definitions
- 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.