Docs
API 1.39
Status
Actions

fill

The `fill` step.

Types a value into a field. The target must be visible and editable; values typed into type=password fields are redacted.

Type: target

#Keys

KeyTypeDescription
fill.clearbooleanWhether the field is cleared before the value is entered. Defaults to true.
fill.submitbooleanWhether Enter is pressed after the value is entered. Defaults to false.
fill.valuestringThe text to enter, a template such as {{inputs.email}}.

Every step also takes the common step keys: expect, id, if, name, on_error, optional, retry, side_effect, timeout_ms, x_kaab.

#Example

{
  "fill": "#code",
  "value": "{{vars.code}}",
  "submit": true
}

From the contract fixture hosted-await-input, a program the test suite validates.

Was this page helpful?