Overview
The Type node enters text into input fields, textareas, and contenteditable elements. It supports multiple input methods including instant fill, character-by-character typing, and direct DOM manipulation.Input Methods
fill (Default)
Instantly fills the input field after clearing existing content. This is the fastest method and works for most cases.Set to
fill for instant input.type
Types text character by character, triggering keyboard events. Useful for inputs with event listeners.Set to
type for character-by-character typing.Delay in milliseconds between keystrokes.
Clear field before typing.
pressSequentially
Similar totype but with more explicit control over delays.
append
Appends text to existing field value without clearing.prepend
Prepends text before existing field value.direct
Sets value directly via DOM without triggering Playwright events. Fastest but may not trigger framework-specific listeners.Configuration
Element selector for the input field. Supports variable interpolation:
${data.fieldSelector}Text to type into the field. Supports variable interpolation:
${data.username}Type of selector:
css, xpath, text, getByRole, getByLabel, getByPlaceholder, etc.Advanced selector modifiers.Properties:
nth: Select nth elementfilterText: Filter by text contentfilterSelector: Filter by child selectorchainSelector: Scoped sub-query
Maximum time in milliseconds to wait for the element.
If
true, errors don’t stop workflow execution.Advanced Features
Waiting
Wait for another element before/after typing.
Wait for URL to match pattern.
Wait for JavaScript condition to be true.
Execute waits after typing instead of before.
Retry Logic
Enable automatic retry on failure.
Number of retry attempts.
Delay between retries in milliseconds.
Examples
Basic Typing
Character-by-Character
Append and Prepend
Direct DOM Manipulation
Fast Input
With Wait Conditions
With Retry Logic
Resilient Input
Input Method Comparison
| Method | Speed | Events | Use Case |
|---|---|---|---|
fill | Fastest | Basic | Standard forms |
type | Slow | Full keyboard | Event-driven inputs |
pressSequentially | Slow | Full keyboard | Autocomplete, validation |
append | Fast | Basic | Add to existing text |
prepend | Fast | Basic | Add before existing text |
direct | Fastest | None | Bulk data, testing |
Notes
The
fill method is recommended for most use cases as it’s fast and reliable. Use type when you need to trigger keyboard events.When using
append or prepend, the existing field value is preserved and the new text is added to it.Common Patterns
Form Fill Sequence
Autocomplete Pattern
Related Nodes
- Click - Click elements
- Select - Select dropdown options
- Get Text - Extract text from elements
- Verify Text - Verify text content
