XCUITest: Access accessibility properties from XCUIElement

It seems like there’s no access to many accessibility properties of UI elements exposed in XCUITest framework (XCUIElement).

Specifically, I’m trying to test the accessibility hint (accessibilityHint) of an element, but unable to do that.

Although this is what I'm missing right now, but in general there are more accessibility properties I'd like to be able to access:

  • accessibilityTraits
  • accessibilityLanguage
  • accessibilityActivationPoint
  • accessibilityPath

Is there any way to do this using XCUITest framework? If not, why can't we access them if those are accessibility attributes? What am I missing here?

XCUITest: Access accessibility properties from XCUIElement
 
 
Q