V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
werwer
V2EX  ›  问与答

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

  •  
  •   werwer · 121 天前 · 729 次点击
    这是一个创建于 121 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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...
    2 条回复    2024-07-28 15:39:52 +08:00
    Abbeyok
        1
    Abbeyok  
       121 天前 via iPhone   ❤️ 1
    用 uiautomator2 ,比较简单
    werwer
        2
    werwer  
    OP
       121 天前
    @Abbeyok 谢谢啊老兄,瞬间跑通了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5864 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:30 · PVG 11:30 · LAX 19:30 · JFK 22:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.