KIF+XBAdditions adds a bunch of useful methods for retrieving views using the accessibility hint property.
You can now use the following methods.
- (UIView *)waitForViewWithAccessibilityHint:(NSString *)hint;
or
- (void)waitForAccessibilityElement:(out UIAccessibilityElement **)foundElement view:(out UIView **)foundView withHint:(NSString *)hint tappable:(BOOL)mustBeTappable;
- (void)tapViewWithAccessibilityHint:(NSString *)hint;
- (UIAccessibilityElement *)accessibilityElementWithHint:(NSString *)hint;
or
- (UIAccessibilityElement *)accessibilityElementWithHint:(NSString *)hint traits:(UIAccessibilityTraits)traits;
or
- (UIAccessibilityElement *)accessibilityElementWithHint:(NSString *)hint accessibilityValue:(NSString *)value traits:(UIAccessibilityTraits)traits;
KIF+XBAdditions is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "KIF+XBAdditions"
Simone Civetta, Xebia IT Architects, @viteinfinite
KIF+XBAdditions is available under the MIT license. See the LICENSE file for more info.