Scroll - operation

  • Android - mobile devices
  • Apple iPhone / iPad (iOS)

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:

  • an 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)

  • a position - from specified coordinates defined in pixels relative to the top left corner of the app

Scroll gesture

To perform this operation in the Suitest Test editor use the Scroll line.

Using Scroll in the Test Editor

To perform this operation in the Suitest JavaScript API you can use scroll command in conjunction with the chosen subject.

await suitest.element('logoImg').scroll('down', 500);
await suitest.position(100, 200).scroll('left', 200);