Search code examples
androidtestingandroid-uiautomator

Swiping to next page in uiautomator


How do i swipe to next page in uiautomator apps screen.

I have tried

d.swipe(531,1346,1033,1346,20) 

i have changed the last parameter to 20 or 200 or any number and it does not seem to swipe to the next page.

enter image description here


Solution

  • You need to swipe from Right to Left instead of Left to Right.

    d.swipe(1033,1346,531,1346,20) #steps taken will determine the speed