【问题标题】:Swiping to next page in uiautomator在 uiautomator 中滑动到下一页
【发布时间】:2015-08-20 08:00:02
【问题描述】:

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

我试过了

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

我更改了last parameter to 20 or 200 或任何数字,但它似乎没有滑动到下一页。

【问题讨论】:

  • 你设备的分辨率是多少?
  • @PageNotFound 1080 x 1920 xxhdpi
  • 你试过d.swipe(1033,1346,531,1346,200)吗?
  • @PageNotFound 它工作。您可以将其添加为答案,以便我接受并投票吗

标签: android testing android-uiautomator


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2017-04-09
    • 2021-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多