UI Testing Failure - Failure getting snapshot Error Domain=XCTestManagerErrorDomain Code=9 "Error -25201 getting snapshot for element
I'm getting this error when first attempting to query a table view. The table view only has about 30 cells but they contain content that's loaded asynchronously. It's intermittent, and doesn't happen all the time, but frequent enough that it causes a serious problem with automated UI tests. Even with hard-coded sleeps that are definitely long enough to allow all content to finish loading, it doesn't seem to prevent this error from occuring.