scout_type
Type into a web input by element ref, appending to existing content or clearing with replace=true to correct entries. Supports boundary values (empty, long, unicode, script tags) for fuzz testing.
Instructions
Type into a text input/textarea/composer by ref, the way a real user does: if the field already holds content (e.g. an @-mention chip a menu click inserted), the text is APPENDED at the end — preserving that content — and the result reports what was already there (a separating space is added only at a word-to-word boundary). Pass replace=true to clear the field first (correcting a previous entry); an empty textValue always clears. Appending fires input events but not keydown, so keydown-driven triggers (slash/mention menus) will not react to appended text. Use for both valid values and boundary/fuzz values (empty, very long, unicode, script tags).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref, e.g. e12 | |
| task | No | What you are DOING right now, in a few words: the action, not the acceptance criteria. "Filtering the documents register by status", "Filling the deviation form with invalid dates", "Signing in as QA_Team" — NOT "§2.4 filtering narrows the set and the filter is reflected in the URL", which is what you are CHECKING, not what you are doing. Naming the item you are on is fine ("§2.4: filtering the documents register"); keep the rest to what a colleague would see over your shoulder. It stays set until you pass a different one, so a batch costs a few words, not one per call. Required on the tools that act unless a journey or an earlier call already set one. | |
| value | No | Alias for `textValue`. | |
| replace | No | Clear the field before typing instead of appending to existing content | |
| session | No | Target this session directly instead of the active one — pass it explicitly when dispatching to MULTIPLE sessions in one turn (e.g. two scout_click calls with different `session`), which then run CONCURRENTLY rather than queueing. Omit for single-session sequential use. | |
| objective | No | Old name for `task` (2.0). Prefer `task`. | |
| textValue | No | Text to type | |
| pressEnter | No | Press Enter after typing |