我一直面临着使用Appium和
Xcode 8启动仪器的问题.我最近知道苹果已经从仪器中删除了自动化,因为Appium(1.5.3)无法正常工作.
有人有解决方案吗?是否将在Appium v1.6.0-beta1版本中修复? 最佳答案 是的,Xcode 8不再支持Instruments / UI Automation,因此Appium无法使用它.现在它必须支持XCUITest,它取代了UI Automation.
Appium社区正在开发新的iOS驱动程序 – 现在它是XCUITest驱动程序.
Advantages of the new XCUITest driver:
- Runs on sims and real devices, including TvOS
- Is able to run on multiple connected devices in parallel
- Is much faster (way faster)
- Less buggy!
- Better control of simulators
- Can dismiss system-level alerts!
Disadvantages:
- Only works on iOS 9.0 and up
- Still no Notification testing
您可以通过克隆回购来获得非官方版本:
>克隆来自git:git clone的appium
https://github.com/appium/appium.git2
>转到克隆文件夹
>执行命令:$npm install
(如果发生收缩包装错误=>执行:$npm收缩包装)