scrollToView (UI Automation - Manipulation)
Compatible with:
- Purpose
- This command is used to get required locator into the viewport. You may also specify to where it has to scroll to reach the element by giving the keywords in the Value field, but this is optional. You can also mention the number of scrolls, how many times the page has to scroll top/bottom. With respect to Mobile App Testing, this command is only supported by Android Devices.
- Syntax
- scrollToView(locator)
- Target
- locator - the locator to be brought into the viewport.
- Value (optional)
- (middle/center)/(top/bottom||MaximumNumberofScrolls)
- Return Value
- N/A