Overview
TheTYPE step simulates keyboard input to enter text into input fields, text areas, and any other text-accepting elements. It supports various options for handling existing content and keyboard events.
Parameters
Element selector for the input field. Supports CSS selectors, XPath, and other selector formats.
Text to type into the field. Supports variable interpolation.
Delay between keystrokes in milliseconds for more realistic typing
Clear existing content before typing new text
Press Enter key after typing the text
Behavior
- Element Location: Finds the input element using the provided selector
- Focus Element: Ensures the element has focus
- Clear Content: Optionally clears existing content if
replaceContentis true - Type Text: Types the text character by character
- Keystroke Delay: Applies optional delay between keystrokes
- Fire Events: Triggers appropriate input and change events
- Enter Key: Optionally presses Enter key after typing
Common Use Cases
- Filling out form fields (username, password, email)
- Entering search queries
- Typing in text areas for comments or descriptions
- Updating existing field values
- Submitting forms by pressing Enter
Advanced Usage
With Variables
With Keystroke Delay
Error Handling
The step will fail if:- The element cannot be found using the selector
- The element is not a valid input field
- The element is disabled or read-only
- The element is not visible

