TestProject Forum
Powered by leading experts in the test automation community

How can I swipe up and down on Android test

Hi!
I’m trying to find a way to swipe up/down without using coordinates. Is it possible??
Up until now, I’ve only used the mouse option to manually swipe, but I don’t want to use coordinates.

Thanks!

Hi maxsh!

You are right, the better and safer thing to do is not using the swipe gesture with coordinates. It will work with the device that you are recording with, but if you will execute this test on other devices with a different dimension, it might not work.

The better and safer option is to use the actions from the “Swipe & Search for Element”. This addon provides actions to swipe vertically/horizontally until the requested element is found. You can also control the direction, margins (bottom & top), number of swipes and the timeout.