Hi. I’m writing tests for an iOS app and I’m having the following issue:
I have a UICollectionView with a header. The header is a subclass of UICollectionReusableView with some standard UIKit widgets inside (UIButton, UILabel). I have given the view, the header, and the widgets accessibilityIdentifiers in Xcode’s storyboard view.
The problem is that the header does not appear in the Appium Inspector hierarchy at all. The UICollectionView appears, as do its cells.
(The header also doesn’t show in Instruments/Automator, so technically it’s not really an Appium problem.)
Does anyone have any idea why my header is opaque to the accessibility API?