Skip to main content

Overview

Type text or numbers into the currently focused input field with optional delay between keystrokes.

Syntax

Parameters

string | number
required
Text to type (can be a string or number)
object | number
Typing options (or legacy delay number)

Returns

Promise<void>

Examples

Basic Typing

Password/Secret Handling

Always use secret: true for passwords and sensitive data!Without this option, typed text appears in:
  • Dashcam video replays
  • TestDriver logs
  • Debug screenshots
  • Error messages

Form Filling

Clearing and Replacing Text

Best Practices

Focus the field firstAlways click the input field or navigate to it before typing:
Use Tab for navigationNavigate between fields using Tab instead of clicking each one:
Clear fields before typingClear existing content to avoid appending:
Field must be focusedTyping will only work if an input field is currently focused. If no field is focused, the text may be lost or trigger unexpected keyboard shortcuts.

Use Cases

Typing Speed

Adjust the delay parameter based on your needs:
Some applications with live validation or autocomplete may require slower typing speeds to avoid race conditions.

Special Characters

Complete Example