Type
type focuses an input and types text into it character by character. It emits keydown, keypress, and input events just like a user would, so frameworks that listen for those events see realistic input.
Shorthand
yaml
- type:
element: email input
text: qa@example.comInterpolation
Variables and environment values are interpolated at runtime using {{ var.name }} and {{ env.NAME }}.
yaml
- type:
element: password input
text: "{{ env.TEST_PASSWORD }}"Fields
| Field | Type | Description |
|---|---|---|
elementrequired | string | The input to type into. |
textrequired | string | The text to enter. Supports variable interpolation. |
clear | boolean | Clear the field before typing. Defaults to true. |
delay | number | Milliseconds between keystrokes. Defaults to 0. |
submit | boolean | Press Enter after typing. |
Secrets
Never hard-code credentials in test files. Use environment variables or workspace secrets and reference them with
{{ env.NAME }}.