This has wiped out the stability of all our tests. We have reverted to manual testing or baby sitting our automation locally. They are now all unstable as we use NSPredicate for most of wait methods.
here's an example of how we use it:
func waitForHittable (_ element: XCUIElement, waitSeconds: Double, file: String = #file, line: UInt = #line) {
let predicate = NSPredicate(format: "exists == true AND hittable == true")
testCase.expectation(for: predicate, evaluatedWith: element, handler: nil)
testCase.waitForExpectations(timeout: waitSeconds) { (error) -> Void in
if (error != nil) {
let message = "Failed to find \(element) after \(waitSeconds) seconds."
self.testCase.recordFailure(withDescription: message, inFile: file, atLine: line, expected: true)
}
}
}
UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25215 getting snapshot for element <AXUIElement 0x7f90f0614300> {pid=17044}" UserInfo={NSLocalizedDescription=Error -25215 getting snapshot for element <AXUIElement 0x7f90f0614300> {pid=17044}}
Any updates on a fix? Would moving to KIF be more of the same? Help please.
OSX 10.11.6
Xcode 8.1
iOS Sim 9.0