收藏
回答

appium识别微信H5或者小程序是报错,请问如何解决?

[MJSONWP (2548b546)] Driver proxy active, passing request on via HTTP proxy

[WD Proxy] Matched '/screenshot' to command name 'getScreenshot'

[WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/3428a193-b03e-433f-8b44-a1d408554e0c/screenshot] with no body

[MJSONWP (2548b546)] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: 500 - "{\"sessionId\":\"3428a193-b03e-433f-8b44-a1d408554e0c\",\"status\":13,\"value\":\"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Timed out after 10000 milliseconds waiting for root AccessibilityNodeInfo\\n\\tat io.appium.uiautomator2.utils.AXWindowHelpers.refreshRootAXNode(AXWindowHelpers.java:78)\\n\\tat io.appium.uiautomator2.handler.Source.safeHandle(Source.java:38)\\n\\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:37)\\n\\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\\n\\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:243)\\n\\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\\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(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.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)\\n\\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)\\n\\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)\\n\\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)\\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.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)\\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.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)\\n\\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)\\n\\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)\\n\\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)\\n\\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)\\n\\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)\\n\\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)\\n\\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)\\n\\tat java.lang.Thread.run(Thread.java:919)\\n\"}"

[MJSONWP (2548b546)]     at JWProxy.proxy (C:\Users\Administrator\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:183:13)

[MJSONWP] Matched JSONWP error code 13 to UnknownError

[HTTP] <-- GET /wd/hub/session/2548b546-d10c-40d1-9794-6a6a452ebca3/source 500 15522 ms - 3463

[HTTP] 

[WD Proxy] Got response with status 200: "{\"sessionId\":\"3428a193-b03e-433f-8b44-a1d408554e0c\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABDgAAAlgCAYAAABtGofVAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\\nCHwIZIgAACAASURBVHic7N15WJTl\\/gbwewYQZJdFQgHFUqggSVNR8oTawonEJTUpO1laaqvHNFHK\\n1NTcf1qGVq7pUTNzbTsZSpG7Eop10AyQJQRBEJmBYZn5\\/YG8zsvMwACz4v25Li\\/nfeddHhQd5p7v\\n830kxcXFKhARERERERERWTGpuQdARERERERERNRaDDiIiIiIiIiIyOox4CAiIiIiIiIiq8eAg4iI\\niIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIiq8eAg4iIiIiIiIisHgMOIiIi\\nIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIiq8eAg4iIiIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiI\\niIiIyOox4CAiIiIiIiIiq8eAg4iIiIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIi\\nIiIiq8eAg4iIiIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIiq8eAg4iIiIiI\\niIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIiq8eAg4iIiIiIiIisHgMOIiIiIiIi\\nIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIiq8eAg4iIiIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiI\\nyOox4CAiIiIiIiIiq8eAg4iIiIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIi\\nq8eAg4iIiIiIiIisHgMOIiIiIiIiIrJ6DDiIiIiIiIiIyOox4CAiIiIiIiIiq8eA...

[WD Proxy] Matched '/wd/hub/session/2548b546-d10c-40d1-9794-6a6a452ebca3/window/current/size' to command name 'getWindowSize'

[WD Proxy] Proxying [GET /wd/hub/session/2548b546-d10c-40d1-9794-6a6a452ebca3/window/current/size] to [GET http://localhost:8200/wd/hub/session/3428a193-b03e-433f-8b44-a1d408554e0c/window/current/size] with body: {}


appium版本:1.14.0

手机类型:小米

手机版本:10

回答关注问题邀请回答
收藏

2 个回答

  • 谢稳山
    谢稳山
    2023-08-02

    不用微信,去用支付宝小程序

    2023-08-02
    有用
    回复 1
    • 谢稳山
      谢稳山
      2023-08-02
      整天搞垄断
      2023-08-02
      回复
  • 晚安ゆ.
    晚安ゆ.
    2021-07-01

    解决了码

    2021-07-01
    有用
    回复 1
    • 
      2021-07-02
      還沒找到解決方法,等待官方恢復中
      2021-07-02
      回复
登录 后发表内容