我正在使用 Appium 检查器(最新版本,0.16)。它加载我的模拟器,运行应用程序,当我尝试记录一个按钮时,它立即崩溃。
我的 Appium 配置:
现在,只要我尝试记录一个动作(点击一个按钮),检查器就会崩溃:
此操作的日志输出为:
debug: Appium request initiated at /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/element
POST /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/element 404 1ms - 53b
debug: Request received with params: {"using":"name","value":"Init BC"}
debug: Appium request initiated at /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/element/(null)/click
debug: Request received with params: {}
POST /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/element/(null)/click 404 0ms - 53b
debug: Appium request initiated at /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/source
debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/screenshot
debug: Request received with params: {}
debug: Appium request initiated at /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/window_handles
debug: Request received with params: {}
GET /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/source 404 1ms - 53b
GET /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/screenshot 404 1ms - 53b
GET /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/window_handles 404 0ms - 53b
debug: Appium request initiated at /wd/hub/status
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.16.0","revision":"292d265edd9c7aaf96f165009285c814b218363d"}}}
debug: Request received with params: {}
GET /wd/hub/status 200 1ms - 144b
info: Didn't get a new command in 60 secs, shutting down...
info: Trying to stop appium but there's no session, doing nothing
info: We shut down because no new commands came in
debug: Appium request initiated at /wd/hub/status
info: Responding to client with success: {"status":0,"value":{"build":{"version":"0.16.0","revision":"292d265edd9c7aaf96f165009285c814b218363d"}}}
debug: Request received with params: {}
GET /wd/hub/status 200 1ms - 144b
编辑:请注意日志上的这两行:
POST /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/element 404 1ms - 53b
POST /wd/hub/session/20f2371d-a72a-4aff-a5e8-bb3005c403a5/element/(null)/click 404 0ms - 53b
我猜这是坠机造成的。问题是为什么??