我正在使用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
我猜这是由于崩溃造成的。问题是为什么??