How to use scroll/swipe in Python (except from coordinates)

Well I ran into a similar problem and found a solution that worked for me. It was ironically quite a simple line of code:
//replace the values with what you want

driver.swipe(start_x=75, start_y=500, end_x=75, end_y=0, duration=800)

I found this and more python functions for appium here:
https://appium.readthedocs.io/en/latest/en/writing-running-appium/other/appium-bindings/#swipe

They really need to work on organizing the official documentations, haha…

1 Like