Appium Appium 执行 login 脚本时报无法创建 session 错误,求助

zongqi · 2016年07月08日 · 最后由 zongqi 回复于 2016年07月10日 · 1989 次阅读

下面这是 eclipse 执行后报的错误
FAILED CONFIGURATION: @BeforeTest setup
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: UiAutomator quit before it successfully launched) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 13.02 seconds

Appium 控制台打印的 error log 如下:

{ [Error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Device 9b51d8f6 is not online
(Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 10.0 x86_64))]
status: 13,
value: { message: 'unknown error: Device 9b51d8f6 is not online\n (Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 10.0 x86_64)' },
httpCode: 200 }
error: Could not pre-launch appium: Error: An unknown server-side error occurred while processing the command. (Original error: unknown error: Device 9b51d8f6 is not online
(Driver info: chromedriver=2.18.343845 (73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 10.0 x86_64))

Appium server process ended

共收到 4 条回复 时间 点赞

Original error: unknown error: Device 9b51d8f6 is not online

—— 来自 TesterHome 官方 安卓客户端

Device 9b51d8f6 is not online

adb devices -l 看下,设备在不在?

已搞定,谢谢,设备是存在的,是由于 node.js 版本低了,升级了一下版本,再跑就好了

zongqi 关闭了讨论 07月10日 10:02
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册