'How to set tabBarItem accessibilityIdentifier
I can't assign accessibilityIdentifier in order to do UI tests on an external tool.
I don't even see them from debug view hierarchy.
It only happens with the elements of the tabbar.
I also tried this way
self.tabBarItem.isAccessibilityElement = YES;
self.tabBarItem.accessibilityIdentifier = @"SomeIdName";
I also called those two lines of code directly in the viewDidLoad of each tabbar viewController, but it doesn't work
I am using XCode 13.2.1 with target from iOS 13+
I don't need the Test XC files because it will provide with an external tool
Could you programmatically indicate where and how to insert these identifiers for all the elements of the tabbar?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

