set_value
Clears an input or textarea, then types text character by character. Triggers input, change, and key events for validation or autocomplete.
Instructions
Clears an input or textarea then types the given text character by character. Always replaces existing content — clearValue() runs first. Triggers input, change, and key events which may fire validation or autocomplete. Scrolls into view by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Value for the selector, in the form of css selector or xpath ("button.my-class" or "//button[@class='my-class']") | |
| value | Yes | Text to enter into the element | |
| scrollToView | No | Whether to scroll the element into view before typing | |
| timeout | No | Maximum time to wait for element in milliseconds |