What causes Error -25204 getting snapshot for element during iOS app UI test

女生的网名这么多〃 提交于 2019-12-20 18:08:20

问题


I am getting following error during a UI test (using simulator for iPhone 6):

Assertion Failure: UI Testing Failure - Failure getting snapshot Error
Domain=XCTestManagerErrorDomain Code=9 "Error -25204 getting snapshot
for element <AXUIElement 0x7fbd6be217d0> {pid=6874}"
UserInfo={NSLocalizedDescription=Error -25204 getting snapshot for
element <AXUIElement 0x7fbd6be217d0> {pid=6874}}

<unknown>:0: error: -[*screen name*] : UI Testing Failure - Failure
getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error
-25204 getting snapshot for element <AXUIElement 0x7fbd6be217d0> {pid=6874}" UserInfo={NSLocalizedDescription=Error -25204 getting
snapshot for element <AXUIElement 0x7fbd6be217d0> {pid=6874}}

The scene is similar to other scenes where UI testing works correctly. So, I am not sure why there is an error getting snapshot for some element.

I checked using Accessibility Inspector, and all elements seem to have an identifier.

This with Xcode Version 7.3 (7D175).

来源:https://stackoverflow.com/questions/37097285/what-causes-error-25204-getting-snapshot-for-element-during-ios-app-ui-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!