Skip to main content

Overview

The type action enters text into form fields, search boxes, and other text input elements.

Default Behavior

By default, the agent will:
  1. Clear any existing text in the target field
  2. Type the specified text
  3. Wait for the text to be fully entered
The agent handles all these steps in a single action.

Syntax Variations

Basic Typing

Clears existing text and types new text into the target field.

Type with Enter

Types text and simulates an Enter key press to submit.

Explicit Clear

Explicitly clears the field before typing new text.

Preserve Existing Text

Appends text to the field without clearing what is already there.

Best Practices

  • Clearly specify the target field using its label or placeholder text
  • Use descriptive field names that match what is visible on the page
  • Consider whether existing text should be cleared or preserved
  • Mention if an Enter key press is needed after typing