【发布时间】:2019-04-09 22:46:22
【问题描述】:
我正在寻找使用最新(此时)Appium Java 客户端 6.1.0 来创建 Tap/Swipe/Drag 等事件的“正确”或“最新”方式。 我在 Appium 网站上看到了不同的文档(Tap using TouchActions、Touch using TouchAction),但没有参考我应该使用哪个(哪些会被弃用?)。
new TouchAction(driver)
.tap(tapOptions()
.withElement(element(myElement)))
.perform();
new TouchActions(driver)
.singleTap(myElement)
.perform();
看起来TouchActions是Selenium项目的一部分,TouchAction是Appium的一部分,但这并不意味着Appium是正确的方式。
p.s 我目前正在使用适用于 Android/iOS 的 Chrome/Safari 浏览器进行测试,但这并不意味着我不需要本机应用程序支持代码。
感谢您的宝贵时间
【问题讨论】:
标签: appium appium-ios appium-android