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
@abstract Enters text into a the current first responder.
406
+
@discussion Text is entered into the view by simulating taps on the appropriate keyboard keys if the keyboard is already displayed. Useful to enter text in WKWebViews or components with no accessibility labels.
407
+
@param text The text to enter.
408
+
@param characterTypingDelay the amount to delay between typing each character.
@abstract Enters text into a particular view in the view hierarchy.
406
414
@discussion If the element isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is entered into the view by simulating taps on the appropriate keyboard keys.
@abstract Enters text into a particular view in the view hierarchy.
424
+
@discussion If the element isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is entered into the view by simulating taps on the appropriate keyboard keys.
425
+
@param text The text to enter.
426
+
@param expectedResult What the text value should be after entry, including any formatting done by the field. If this is nil, the "text" parameter will be used.
427
+
@param element the element to type into.
428
+
@param view the view to type into.
429
+
@param characterTypingDelay the amount to delay between typing each character.
@abstract Enters text into a particular view in the view hierarchy.
416
435
@discussion The view or accessibility element with the given label is searched for in the view hierarchy. If the element isn't found or isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is entered into the view by simulating taps on the appropriate keyboard keys.
@abstract Enters text into a particular view matching the tester's search predicate, then asserts that the view contains the expected text.
360
+
@discussion If the element isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is entered into the view by simulating taps on the appropriate keyboard keys.
361
+
@param text The text to enter.
362
+
@param expectedResult What the text value should be after entry completes, including any formatting done by the field. If this is nil, the "text" parameter will be used.
363
+
@param characterTypingDelay the amount to delay between typing each character.
@abstract Enters text into a the current first responder.
360
369
@discussion Text is entered into the view by simulating taps on the appropriate keyboard keys if the keyboard is already displayed. Useful to enter text in WKWebViews or components with no accessibility labels.
@param text The text to enter after clearing the view.
389
398
*/
390
399
- (void)clearAndEnterText:(NSString *)text;
400
+
401
+
/*!
402
+
@abstract Clears text from a particular view matching the tester's search predicate, then sets new text.
403
+
@discussion If the element isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is cleared from the view by simulating taps on the backspace key, the new text is then entered by simulating taps on the appropriate keyboard keys.
404
+
@param text The text to enter after clearing the view.
405
+
@param characterTypingDelay the amount to delay between typing each character.
@abstract Clears text from a particular view matching the tester's search predicate, sets new text, then asserts that the view contains the expected text.
393
410
@discussion If the element isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is cleared from the view by simulating taps on the backspace key, the new text is then entered by simulating taps on the appropriate keyboard keys, finally the text of the view is compared against the expected result.
@abstract Clears text from a particular view matching the tester's search predicate, sets new text, then asserts that the view contains the expected text.
419
+
@discussion If the element isn't currently tappable, then the step will attempt to wait until it is. Once the view is present and tappable, a tap event is simulated in the center of the view or element, then text is cleared from the view by simulating taps on the backspace key, the new text is then entered by simulating taps on the appropriate keyboard keys, finally the text of the view is compared against the expected result.
420
+
@param text The text to enter after clearing the view.
421
+
@param expectedResult What the text value should be after entry completes, including any formatting done by the field. If this is nil, the "text" parameter will be used.
422
+
@param characterTypingDelay the amount to delay between typing each character.
@abstract Sets text into a particular view matching the tester's search predicate.
402
428
@discussion The text is set on the view directly with 'setText:'. Does not result in first responder changes. Does not perform expected result validation.
0 commit comments