I was having the same problem for a long time on a very complex app as well: The key is all in isAccessibilityElement being set to YES. UI testing and accessibility go hand-in-hand. The way I think about it is that the device needs to be able to interact with the element, since ostensibly, the user wouldn’t be able to.
I did this twice:
-
In
cellForRowAtIndexPath–cell.isAccessibilityElement = YES -
In
awakeFromNibin aUITableViewCellsubclass –self.isAccessibilityElement = YES
Hope that helps, and good luck!