Skip to content

Commit 5e2db29

Browse files
committed
Wait for animation before tapping
1 parent b352a5b commit 5e2db29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/KIF/Classes/KIFUITestActor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ - (void)enterText:(NSString *)text intoElement:(UIAccessibilityElement *)element
578578
{
579579
// In iOS7, tapping a field that is already first responder moves the cursor to the front of the field
580580
if (view.window.firstResponder != view) {
581-
[self tapAccessibilityElement:element inView:view];
582581
[self waitForTimeInterval:0.25 relativeToAnimationSpeed:YES];
582+
[self tapAccessibilityElement:element inView:view];
583583
}
584584

585585
[self enterTextIntoCurrentFirstResponder:text fallbackView:view];

0 commit comments

Comments
 (0)