Docs/Steps

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.com

Interpolation

Variables and environment values are interpolated at runtime using {{ var.name }} and {{ env.NAME }}.

yaml
- type:
    element: password input
    text: "{{ env.TEST_PASSWORD }}"

Fields

FieldTypeDescription
elementrequiredstringThe input to type into.
textrequiredstringThe text to enter. Supports variable interpolation.
clearbooleanClear the field before typing. Defaults to true.
delaynumberMilliseconds between keystrokes. Defaults to 0.
submitbooleanPress Enter after typing.
Secrets
Never hard-code credentials in test files. Use environment variables or workspace secrets and reference them with {{ env.NAME }}.