UI Testing Failure with large table - Error -25204 getting snapshot for element AXUIElement

Hi,


Seeing this issue trying to interact with elements when large table is open.

Seeing it with a large table, here is the error:

Assertion Failure:
<unknown>:0: UI Testing Failure -
Failure getting snapshot Error
Domain=XCTestManagerErrorDomain
Code=9
"Error -25204 getting snapshot for element <AXUIElement 0x7fadcc7103f0> {pid=68881}"
UserInfo={NSLocalizedDescription=Error -25204 getting snapshot for element <AXUIElement 0x7fadcc7103f0> {pid=68881}}

Replies

We've encountered the same issue. Opened a DTS and were answered to file a bug report...


There doesn't seem to be much you can do about this.

We've encountered the same issue. Opened a DTS and were answered to file a bug report...

Did you file a bug report? What was the number?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Sorry for the delay.

Yes I filed one. Here is the number: 30051419.

It was closed as duplicate of 28727230

I opened bug

30264766

Hi, I ran into a similar issue. The test was failing with the same error but the root cause was that the app was crashing. I set up an exception breakpoint and printed the backtrace out to see where.


In the end, it was a crash caused by implicitly unwrapped optional in one of the uitableviewdelegate's method signatures. For more info see: https://openradar.appspot.com/31375101