在 mac 上用 appium inspector 测试 iOS 真机时部分页面刷新卡住,调试发现是获取页面结构时超时。
测试软件为海通证券 附上下载地址 https://e.htsec.com/ehtsec/views/htsec/software/softdown.html
如刷新海通证券的行情页的沪深页面时会卡住。
沪深页面:
卡住页面:
inspector 控制台输出信息为:
[HTTP] --> GET/wd/hub/session/5304e5b9-201c-47e6-b050-065ca9433aa3/source {}
[debug] [MJSONWP] Calling AppiumDriver.getPageSource() with args: ["5304e5b9-201c-47e6-b050-065ca9433aa3"]
[debug] [XCUITest] Executing command 'getPageSource'
[HTTP] <-- GET /wd/hub/session/5304e5b9-201c-47e6-b050-065ca9433aa3/source - - ms - -
[Xcode] 2017-02-17 10:14:42.546851 XCTRunner[13180:4658550] Enqueue Failure: UI Testing Failure - Failure fetching attributes for element <XCAccessibilityElement: 0x17044b100> Device element: Error Domain=XCTestManagerErrorDomain Code=13 "Error copying attributes -25202" UserInfo={NSLocalizedDescription=Error copying attributes -25202} <unknown> 0 1
有人遇到过类似问题或者知道怎么解决吗?欢迎讨论!