fill_input
Set the value of input, textarea, or contenteditable elements via typing, appending, direct set, fast type, or clear modes, with a customizable timeout for reliability.
Instructions
Set the value of an input, textarea, or contenteditable element.
If no timeout given (0 or None), then SeleniumBase uses 7 seconds.
Raises an exception if the element isn't found within the timeout.
Args:
mode: 'type' (default) clears the field then types text;
'append' sends text as keystrokes without clearing first;
'set_value' sets the value directly and instantly (good for
sliders and other fast form fills; skips key events);
'fast_type' clears the field then types text fast
(good for when the extra stealth doesn't matter);
'clear' empties the field — text is ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | type | |
| text | No | ||
| timeout | No | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |