Skip to content

viteinfinite/KIF-XBAdditions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KIF+XBAdditions

Version License Platform

Features

KIF+XBAdditions adds a bunch of useful methods for retrieving views using the accessibility hint property.

You can now use the following methods.

KIFUITestActor

Retrieving a view

- (UIView *)waitForViewWithAccessibilityHint:(NSString *)hint;

or

- (void)waitForAccessibilityElement:(out UIAccessibilityElement **)foundElement view:(out UIView **)foundView withHint:(NSString *)hint tappable:(BOOL)mustBeTappable;

Tapping on a view

- (void)tapViewWithAccessibilityHint:(NSString *)hint;

UIView

Retrieving a subview

- (UIAccessibilityElement *)accessibilityElementWithHint:(NSString *)hint;

or

- (UIAccessibilityElement *)accessibilityElementWithHint:(NSString *)hint traits:(UIAccessibilityTraits)traits;

or

- (UIAccessibilityElement *)accessibilityElementWithHint:(NSString *)hint accessibilityValue:(NSString *)value traits:(UIAccessibilityTraits)traits;

Installation

KIF+XBAdditions is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "KIF+XBAdditions"

Author

Simone Civetta, Xebia IT Architects, @viteinfinite

License

KIF+XBAdditions is available under the MIT license. See the LICENSE file for more info.