Typing Actions

Auto-Browse provides natural language commands for typing text and interacting with input fields. This guide covers various typing scenarios and best practices.

Basic Typing

Input text using natural language commands:

// Type in a simple input field
await auto('type "Hello World" in the search box');

// Type in a labeled field
await auto('type "john@example.com" in the email field');

// Type in a form input
await auto('type "John Doe" in the name input');

Common Use Cases

Form Fields and Text Input

// Type in text fields
await auto('type "John Doe" in the name field');
await auto('type "john@example.com" in the email field');

// Type in password fields
await auto('type "mypassword123" in the password field');

// Type in textareas
await auto('type "This is a longer description" in the description textarea');

// Type with context for precision
await auto('type "Admin" in the username field in the login form');
await auto('type "123 Main St" in the shipping address field');

Key Features

  • Multiple Input Types: Supports text, email, password, and textarea fields
  • Contextual Targeting: Specify location within forms or sections
  • Smart Field Detection: Finds fields by labels, placeholders, or context
  • Format Handling: Automatically handles special characters and formatting

Next Steps