【问题标题】:Unable to run Appium tests using Appium run-time 1.6.4无法使用 Appium 运行时 1.6.4 运行 Appium 测试
【发布时间】:2017-11-07 13:38:09
【问题描述】:

以下是我的设置 1. Appium Server 1.6.6-beta.2

使用此设置测试失败并显示以下错误消息:

块引用[debug] [iOSSim] Killing all iOS Simulators [debug] [iOSSim] Using fkill to kill processes: 285 [XCUITest] AggregateError: Error: Killing process 285 failed: Operation not permitted at Promise.all.then (/usr/local/lib/node_modules/appium/node_modules/fkill/index.js:41:10) at AggregateError (/usr/local/lib/node_modules/appium/node_modules/aggregate-error/index.js:19:3) at Promise.all.then (/usr/local/lib/node_modules/appium/node_modules/fkill/index.js:41:10) at process._tickCallback (internal/process/next_tick.js:109:7) { AggregateError: Error: Killing process 285 failed: Operation not permitted at Promise.all.then (/usr/local/lib/node_modules/appium/node_modules/fkill/index.js:41:10) at AggregateError (/usr/local/lib/node_modules/appium/node_modules/aggregate-error/index.js:19:3) at Promise.all.then

但是测试在旧的 Appium IDE 版本 1.5.3 (Ara) 上运行良好,可在同一台机器 macOs Sierra 10.12.3 上使用

你能告诉我什么需要更正吗?

非常感谢

以下要点的更多跟踪日志: gist.github.com/anonymous/bfb8464c0388b7bfdba567dba5f0e36a

【问题讨论】:

标签: appium appium-ios


【解决方案1】:

您将 appium 从 1.5.3 更新到 1.6.4 的任何原因?

appium 1.6 及更高版本用于自动化 iOS10 及更高版本,您可能会遇到版本兼容性问题。

【讨论】:

    【解决方案2】:

    从堆栈跟踪中清楚的是什么问题:

    org.openqa.selenium.NoSuchElementException: Can't locate an element by this strategy: By.name: Create a photo book

    您正在使用不受支持的定位器策略By.name。 Appium server 1.5.0 发布说明:Remove long-deprecated name locator strategy

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-03
      • 2019-01-23
      • 1970-01-01
      • 1970-01-01
      • 2019-07-08
      • 1970-01-01
      • 2015-03-17
      • 2015-05-27
      相关资源
      最近更新 更多