UI Testing Failure - Failure getting snapshot for element Error -25201
Asked Answered
R

1

43

I currently encountered this issue while running my UI Tests for iOS

Assertion Failure: UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25201 getting snapshot for element {pid=84523}" UserInfo={NSLocalizedDescription=Error -25201 getting snapshot for element {pid=84523}}

Currently using Xcode 7.3.1, Cocoapods 1.0.1.

I tried deleting DerivedData, Pods/, Podfile.lock and *.xcworkspace and running pod install afterwards. No luck. Still experiencing the error. First experienced in Xcode 7.3. Upgraded it and issue still persists.

Anybody who experienced the same thing and resolved the problem? Kindly share your solution. Thank you.

Regimen answered 22/6, 2016 at 16:5 Comment(6)
Have the same issue. It looks like this radar openradar.me/25623858Pharsalus
The thing is, it only happens on my macbook. I let my friend try to run the code on his macbook and it ran fine. So I was forced to reformat the machine. Still, the issue persists.Regimen
I let my colleague run the same code again, now he's encountering the same issue. Looks like it's not an isolated case anymore. Anyone here who encountered the same and resolved the problem?Regimen
This problem is still happening in Xcode 8.1 UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9Stound
Guys, if you use Appium, update it to the latest beta and your issue will be solvedInaptitude
Are you trying to access a cell in a tableview?Restraint
P
2

The link https://forums.developer.apple.com/message/129839#129839 claims that this has multiple causes, all being bugs that haven't been fixed yet. There are some possible solutions in that post. You need an Apple Developer account to see it.

Perot answered 25/6, 2017 at 9:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.