Skip to main content
Types the given text. Without into, types into whatever currently has focus. clear controls whether existing input is cleared first.

Parameters

ParameterTypeRequiredDescription
textstringYesThe text to type.
intostringNoDescription of the input to focus before typing.
cssstringNoCSS selector for the target. Use instead of the description key.
coordsstring | { x, y }NoAbsolute viewport coordinates. Either an x, y string (e.g. 120, 40) or a { x, y } object.
xnumber | stringNoX coordinate. Must be provided together with y.
ynumber | stringNoY coordinate. Must be provided together with x.
forcebooleanNoForce the action even when the element is not actionable.
iframestringNoURL or URL pattern of the iframe that contains the target element.
offsetstring | { x, y }NoPixel offset from the resolved target. Either an x, y string or a { x, y } object.
pressEnterbooleanNoPress Enter after typing.
clear"inputs" | "always" | "never" | booleanNoClear existing input before typing. inputs only clears <input>/<textarea> elements.
delaynumberNoMilliseconds between keystrokes.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Text as a single string. Targets the focused element.
- type: hello world

Examples

- type:
    text: [email protected]
    into: email input field with placeholder for your email address
    clear: never
- type:
    text: "{{ env.PASSWORD }}"
    into: password textbox
    clear: inputs
- type:
    text: "{{ env.NAME }}"
    pressEnter: true
    clear: inputs
- type:
    text: student
    coords: 1129, 616
    clear: inputs