Permalink
Browse files

setting text field's text property to nil to stop problem with text c…

…ontent being appended to text field
  • Loading branch information...
1 parent 7d78430 commit e4d39b87ae39b59b7cbfd4f5a993796a7999d9eb @CDRussell committed Apr 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Classes/KIFTestStep.m
@@ -269,6 +269,7 @@ + (id)stepToTapViewWithAccessibilityLabel:(NSString *)label value:(NSString *)va
}
view = [UIAccessibilityElement viewContainingAccessibilityElement:element];
+
KIFTestWaitCondition(view, error, @"Failed to find view for accessibility element with label \"%@\"", label);
if (![self _isUserInteractionEnabledForView:view]) {
@@ -337,6 +338,7 @@ + (id)stepToEnterText:(NSString *)text intoViewWithAccessibilityLabel:(NSString
}
UIView *view = [UIAccessibilityElement viewContainingAccessibilityElement:element];
+ [(UITextField *)view setText:nil];
KIFTestWaitCondition(view, error, @"Cannot find view with accessibility label \"%@\"", label);
CGRect elementFrame = [view.window convertRect:element.accessibilityFrame toView:view];

0 comments on commit e4d39b8

Please sign in to comment.