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

57 天前
 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...
679 次点击
所在节点    问与答
2 条回复
Abbeyok
57 天前
用 uiautomator2 ,比较简单
werwer
57 天前
@Abbeyok 谢谢啊老兄,瞬间跑通了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1060658

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX