← Volver a todos los posts

Swipe objects in Appium with Python

A simple function for swiping object 1 to the coordinates of object 2 in Appium using Python.

Steps:

  1. Search for the objects.
  2. Obtain the x and y coordinates of each.
  3. Position above the coordinates of object 1 and move to the coordinates of object 2.

Python swipe snippet

Full code on GitHub:

https://github.com/delrayo/swiping_appium_python/blob/main/swipe.py