Scroll - operation¶
- Android mobile
This operation simulates scrolling of the application in specific direction by specified size.
Scrolling on the screen¶
This operation is simulating a finger movement gesture - it works the same way as if your finger is sliding on the screen.
Meaning the content of the app moves the opposite way.
Scrolling can be performed from:
element- from the center of its bounding box (if the element is obscured by other elements or not completely visible the operation may not work as expected)
position- from specified coordinates defined in pixels relative to the top left corner of the app
To perform this operation in the Suitest Test editor use the Scroll line.
await suitest.element('logoImg').scroll('down', 500); await suitest.position(100, 200).scroll('left', 200);