UI Testing Failure - Failure getting snapshot for element Error -25201
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.