appium刷新报错Call to ‘source‘ failed[sessionCapabilities()] Error response status: 13, , UnknownError

ゝ一世哀愁。 2022-10-11 00:49 70阅读 0赞

Call to ‘source’ failed

[sessionCapabilities()] Error response status: 13, , UnknownError - An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: ‘GET /‘ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details

原因是:多次启动程序且没有关闭驱动,即少写了两行:

  1. desired = {
  2. "platformName": "Android",
  3. "platformVersion": "7.1.2",
  4. "deviceName": "127.0.0.1:62001",
  5. "appPackage": "com.vphone.launcher",
  6. "appActivity": "com.vphone.launcher.launcher3.Launcher",
  7. #这一句不要少
  8. "automationName": "UiAutomator2"
  9. }
  10. #程序结束不要忘了
  11. driver.quit()

发表评论

表情:
评论列表 (有 0 条评论,70人围观)

还没有评论,来说两句吧...

相关阅读