Appium创建驱动程序的速度非常慢.(检查器加载元素树的速度非常慢



问题

当我使用 Appium Desktop 为检查器创建会话时,该应用程序可以快速启动,但加载检查器的元素树需要很长时间。这种现象只发生在某些应用中。

环境

  • 出现问题的 Appium 版本(或 git 修订版(:Appium Desktop 1.6.1(Appium Server 1.8.0(
  • 未出现问题的最后一个 Appium 版本(如果适用(:
  • 用于运行Appium的桌面操作系统/版本:MacOS 10.13.5
  • 节点.js版本(除非使用 Appium.app|exe(:10.1.0
  • 测试中的移动平台/版本:iOS 10.3.3
  • 真实设备或模拟器/模拟器:iPhone 7真实设备
  • Appium CLI 或 Appium.app|exe:

加载元素树大约需要 5 分钟才能获得响应。

2018-06-28 09:40:05:339 - [debug] [XCUITest] Failed to create WDA session. Retrying...
2018-06-28 09:40:06:346 - [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1530150006346 (09:40:06 GMT+0800 (CST))
2018-06-28 09:40:06:346 - [debug] [XCUITest] Sending createSession command to WDA
2018-06-28 09:40:06:347 - [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com    .chinaums.ttf6","arguments":[],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":true,"maxTypingFrequency":60,"shouldUseS    ingletonTestManager":true}}
2018-06-28 09:45:28:282 - [debug] [JSONWP Proxy] Got response with status 200: {"value":{"sessionId":"9A6749D7-5A1D-431F-AA57-  E1126F189E95","capabilities":{"device":"iphone","browserName":null,"sdkVersion":"10.3.3","CFBundleIdentifier":null}},"sessionId":"9A6749D7-5A1D-431F-AA57-  E1126F189E95","status":0}
2018-06-28 09:45:28:282 - [debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1530150328282 (09:45:28 GMT+0800 (CST))
2018-06-28 09:45:28:472 - [debug] [XCUITest] Cannot find a match for DerivedData folder path from lsof. Trying to access logs
2018-06-28 09:45:28:482 - [debug] [BaseDriver] Event 'wdaStarted' logged at 1530150328481 (09:45:28 GMT+0800 (CST))
2018-06-28 09:45:28:482 - [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if  this is an undesired behavior.  

链接到 Appium 日志

appium_server_log

我很喜欢这个引用 使用 Xcode 5 创建会话现在需要 9 分钟以上。 只需添加功能:等待静止 = 假

最新更新