Reputation: 1140
I am using voice over accessibility in my application. But When I am using UI Automation testing, It breaks the accessibility. Because Automation uses the accessibility class to show accessibilitylabel. Is there any solution for this?
Thanks in Advance.
Upvotes: 2
Views: 471
Reputation: 126
Use accessibilityIdentifier instead.
It is not visible by Voice Over and can be accessed with method name from UIAElement. And if left empty it will copy value from the label.
More on that UIAccessibilityIdentification
Upvotes: 1