Appium 支持 Xcode 8

标签 appium appium-ios

我一直面临着使用 Appium 和 Xcode 8 启动检测的问题。我最近知道苹果已经从检测中删除了自动化,因为 Appium(1.5.3) 无法正常工作。
有没有人有解决办法?它会在 Appium v​​1.6.0-beta1 版本中修复吗?

最佳答案

是的,Xcode 8 不再支持 Instruments/UI 自动化,因此 Appium 将无法使用它。现在它必须支持 XCUITest,它取代了 UI 自动化。

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


你可以通过克隆 repo 来获得非官方版本:
  • 从 git 克隆 appium : git clone
    https://github.com/appium/appium.git2
  • 转到克隆文件夹
  • 执行命令:$ npm install

  • (如果出现shrink-wrap 错误=> 执行:$ npm shrink-wrap)

    更多信息在这里:https://discuss.appium.io/t/ios9-uiautomation-what-is-appium-approach-to-uiautomation-deprecation-by-apple/7319/103

    关于Appium 支持 Xcode 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39502020/

    相关文章:

    ruby - 使用 Appium 测试 React Native 应用程序时,是否有更好的方法来处理 .app 文件的路径?

    java - 如何在日期选择器 appium 中发送日期(Android API 19,版本 1.2.4.1)

    java - WebDriverException : No command or response codec has been defined. Appium WebDriver 无法找到 UIButton

    appium - Appium 中此元素无法进行交互

    ios - 如何将 XPath 定位器重新制作为 UIAutomation 定位器?

    使用 appium 进行 Android UI 自动化测试

    android - 如何在针对他们运行自动化测试时检测 android 中的应用程序崩溃?

    java - 寻找 ios 和 android 上下滚动直到找到元素,然后单击

    java - Appium - 关于用 Java 编写测试的问题

    java - 如何使用 Appium Java 客户端查找 iOS 元素?