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
@@ -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