【发布时间】:2016-07-29 06:55:27
【问题描述】:
我发现 android 使用 adb 命令也是如此,例如: adb shell 输入 tap 100 500,它将在 android 设备上点击坐标(100,500)。 IOS设备是否可以做同样的事情,如何?
【问题讨论】:
标签: automation adb appium ui-automation appium-ios
我发现 android 使用 adb 命令也是如此,例如: adb shell 输入 tap 100 500,它将在 android 设备上点击坐标(100,500)。 IOS设备是否可以做同样的事情,如何?
【问题讨论】:
标签: automation adb appium ui-automation appium-ios
使用 appium,您可以使用客户端库中的TouchAction,如下所示:
TouchAction tapCoordinates = new TouchAction(driver); //where driver is AppiumDriver
tapCoordinates.tap(x,y).perform();
【讨论】: