Scroll - operation¶
- Android - mobile devices
- Apple iPhone / iPad (iOS)
- LG webOS
This operation simulates scrolling of the application in specific direction by specified size.
LG webOS limitations
When using scroll with LG webOS platform, you cannot define the size of the scroll (simulates the Magic remote action) and you can scroll only vertically (up, down).
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);