enterTextByIndex abstract method
Enters text to the index-th visible text field.
If the text field at index isn't visible immediately, this method waits
for the view to become visible. It prioritizes the timeout duration
provided in the method call. If timeout is not specified, it utilizes
the IOSAutomatorConfig.findTimeout duration from the configuration.
Native views considered to be texts fields are:
- TextField or SecureTextField on iOS
See also:
- enterText, which allows for more precise specification of the text field to enter text into
Implementation
Future<void> enterTextByIndex(
String text, {
required int index,
String? appId,
KeyboardBehavior? keyboardBehavior,
Duration? timeout,
Offset? tapLocation,
});