求助, appium 的 py 示例代码没有跑通

查看 37|回复 2
作者:werwer   
usb 调试连接手机后运行了这个:
https://appium.io/docs/zh/latest/quickstart/test-py/
appium 命令行中显示:
[80248cba][W3C] Matched W3C error code 'unknown command' to UnknownCommandError
[80248cba][AndroidUiautomator2Driver@d6af] Matched '/status' to command name 'getStatus'
[80248cba][AndroidUiautomator2Driver@d6af] Proxying [GET /status] to [GET http://127.0.0.1:8200/status] with no body
[80248cba][AndroidUiautomator2Driver@d6af] Got response with status 404: {"sessionId":null,"value":{"error":"unknown command","message":"The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource","stacktrace":"io.appium.uiautomator2.common.exceptions.UnknownCommandException: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:75)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandler...
Abbeyok   
用 uiautomator2 ,比较简单
werwer
OP
  
@Abbeyok 谢谢啊老兄,瞬间跑通了
您需要登录后才可以回帖 登录 | 立即注册

返回顶部