dimanche 8 mai 2016

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

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 {pid=6874}" UserInfo={NSLocalizedDescription=Error -25204 getting snapshot for element {pid=6874}} :0: error: -[screen name] : UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25204 getting snapshot for element {pid=6874}" UserInfo={NSLocalizedDescription=Error -25204 getting snapshot for element {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)

Aucun commentaire:

Enregistrer un commentaire