Performing UIAccessibilityCustomAction from UITests

前端 未结 2 1384
时光取名叫无心
时光取名叫无心 2020-12-18 11:37

I\'ve got a subclass of UIView, let\'s say it\'s class DemoView: UIView { } which contains UILabel and UIButton. I needed to group it and add UIAccessibilityCus

2条回答
  •  感情败类
    2020-12-18 11:53

    I talked to Apple Engineers during WWDC19 Accessibility and Testing Labs and they said it is not possible right now. The reason why accessibility is not available during testing are security concerns. What they also said is that they don't use UITests for testing UIAccessibility and when creating accessibility elements support two cases - when there are UITests running and not.

    I recommend making a suggestion using Feedback Assistant.

提交回复
热议问题