在uiautomator中滑动到下一页

Swiping to next page in uiautomator

如何在 uiautomator 应用程序屏幕中滑动到下一页。

我试过了

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

我已经更改了 last parameter to 20 or 200 或任何数字,它似乎不会滑动到下一页。

您需要从右向左滑动,而不是从左向右滑动。

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