【问题标题】:How to tap on particular coordinates(x-axis, y-axis) in IOS?如何在IOS中点击特定坐标(x轴,y轴)?
【发布时间】:2016-07-29 06:55:27
【问题描述】:

我发现 android 使用 adb 命令也是如此,例如: adb shell 输入 tap 100 500,它将在 android 设备上点击坐标(100,500)。 IOS设备是否可以做同样的事情,如何?

【问题讨论】:

    标签: automation adb appium ui-automation appium-ios


    【解决方案1】:

    使用 appium,您可以使用客户端库中的TouchAction,如下所示:

    TouchAction tapCoordinates = new TouchAction(driver); //where driver is AppiumDriver
    tapCoordinates.tap(x,y).perform();
    

    【讨论】:

      猜你喜欢
      • 2022-01-16
      • 2022-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-03
      • 1970-01-01
      相关资源
      最近更新 更多