You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Makes app work with SDK's that do not contain UITouch->_gestureView.
Work around defect in current betas where accessibilityValue may return
an NSAttributedString.
Address issues where an application's keyWindow may not be a member of
the windows array.
Increase the timeout between scrolling to a cell and looking it up.
Note that the latest simulator release has issues with accessibility
and the tests will need to be run on device or with an earlier
simulator.
@@ -619,7 +619,7 @@ + (id)stepToTapRowInTableViewWithAccessibilityLabel:(NSString*)tableViewLabel at
619
619
KIFTestCondition([indexPath section] < [tableView numberOfSections], error, @"Section %d is not found in '%@' table view", [indexPath section], tableViewLabel);
620
620
KIFTestCondition([indexPath row] < [tableView numberOfRowsInSection:[indexPath section]], error, @"Row %d is not found in section %d of '%@' table view", [indexPath row], [indexPath section], tableViewLabel);
element = [[UIApplication sharedApplication] accessibilityElementWithLabel:label accessibilityValue:niltraits:traits];
918
919
// For purposes of a better error message, see if we can find the view, just not a view with the specified value.
919
-
if (value && [[UIApplication sharedApplication] accessibilityElementWithLabel:label accessibilityValue:niltraits:traits]) {
920
-
*error = [[[NSErroralloc] initWithDomain:@"KIFTest"code:KIFTestStepResultFailure userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Found an accessibility element with the label \"%@\", but not with the value \"%@\"", label, value], NSLocalizedDescriptionKey, nil]] autorelease];
920
+
if (value && element) {
921
+
*error = [[[NSErroralloc] initWithDomain:@"KIFTest"code:KIFTestStepResultFailure userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:@"Found an accessibility element with the label \"%@\", but with the value \"%@\", not \"%@\"", label, element.accessibilityValue, value], NSLocalizedDescriptionKey, nil]] autorelease];
0 commit comments