无法使用Appium运行时1.6.4运行Appium测试

时间:2017-06-06 13:41:16

标签: appium appium-ios

以下是我的设置 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)测试运行良好,可在同一台机器上运行。第10.12.3节

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

非常感谢

更多关于gist的tracelog: gist.github.com/anonymous/bfb8464c0388b7bfdba567dba5f0e36a

2 个答案:

答案 0 :(得分:0)

您是否有任何理由将appium从1.5.3更新为1.6.4?

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

答案 1 :(得分:0)

从堆栈跟踪中可以清楚地看出问题是什么:

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

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

相关问题