【发布时间】:2022-02-02 18:18:32
【问题描述】:
Appium 检查器卡在 UI 部分的加载动画中,不允许获取当前 UI 和元素。怎么绕过?
我在 Windows 上运行 Appium 1.13.0,使用真正的 Android 设备并尝试检查 React 本机应用程序。 检查器启动应用程序并显示初始屏幕(环境选择器)并允许检查/选择元素,但在点击后 - 它会显示一个不会停止的加载动画。 尝试刷新无济于事。 在设备本身 - 应用已到达所需的屏幕。
根据 Appium 的日志,点击后会发生以下情况:
[MJSONWP (6564ecbb)] Responding to client with driver.click() result: true
[HTTP] <-- POST /wd/hub/session/6564ecbb-53f5-4c97-8456-f70f6ea3d747/element/1/click 200 141 ms - 76
[HTTP]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
[HTTP] --> GET /wd/hub/session/6564ecbb-53f5-4c97-8456-f70f6ea3d747/source
[HTTP] {}
[MJSONWP (6564ecbb)] Calling AppiumDriver.getPageSource() with args: ["6564ecbb-53f5-4c97-8456-f70f6ea3d747"]
[HTTP] --> GET /wd/hub/session/6564ecbb-53f5-4c97-8456-f70f6ea3d747/screenshot
[HTTP] {}
[MJSONWP (6564ecbb)] Calling AppiumDriver.getScreenshot() with args: ["6564ecbb-53f5-4c97-8456-f70f6ea3d747"]
[AndroidBootstrap] Sending command to android: {"cmd":"action","action":"source","params":{}}
[HTTP] --> GET /wd/hub/session/6564ecbb-53f5-4c97-8456-f70f6ea3d747/window/current/size
[HTTP] {}
[MJSONWP (6564ecbb)] Calling AppiumDriver.getWindowSize() with args: ["current","6564ecbb-53f5-4c97-8456-f70f6ea3d747"]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"source","params":{}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: source
【问题讨论】:
标签: reactjs appium appium-android inspector