enter_text
Enters text into a Flutter widget located by a target string, replacing existing content by default or clearing and re-focusing the field first when clearFirst is enabled.
Instructions
Enters text into a widget found by the target string. By default, replaces existing text. Set clearFirst to explicitly clear and re-focus the field before typing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to enter | |
| action | No | Optional TextInputAction to perform after entering text | |
| target | No | Target string (e.g. '#loginBtn', 'text="Submit"', 'type="ElevatedButton"', 'semanticsLabel="Username"') | |
| clearFirst | No | If true, clears any existing text and re-focuses the field before entering new text | |
| timeout_ms | No | Implicit wait timeout in milliseconds before failing |