There's an XCUIElement my automated test is validating accessibility on but isAccessibilityElement is returning false. I checked the storyboard file and Accessibility has the checkbox marked. I checked the View Hierarchy as I was debugging the app and it is also reporting accessibility as enabled. All of the containing views in the tree going back to the view controller have accessibility disabled. What could cause this discrepancy between what is returned in the code and what is actually true in the app?

Update: A screenshot of Apple's response to the feedback

I've filed an Apple Feedback request for this issue and will update this answer if I receive a reply
Edit - Apple was kind enough to tell me that this "works as expected" with no further explanation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With