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

zongqi · July 08, 2016 · Last by zongqi replied at July 10, 2016 · 1131 hits

下面这是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 看下,设备在不在?

zongqi #4 · July 10, 2016 作者

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

zongqi 关闭了讨论 10 Jul 10:02
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up