Clicking Actions

Auto-Browse provides an intuitive way to click elements using natural language commands. This guide covers various clicking scenarios and best practices.

Basic Clicking

Click elements using natural language descriptions:
// Click a button by its text
await auto("click the Submit button");

// Click a link by its text
await auto("click the Learn More link");

// Click an element by its role and name
await auto('click the button labeled "Next"');

Common Use Cases

Buttons and Links
// Click buttons by text
await auto("click the Save button");
await auto("click Submit");

// Click links
await auto("click the About link");
await auto("click Contact Us");

// Click with context for precision
await auto("click the Save button in the form");
await auto("click the Edit link in the user profile section");

Key Features

  • Smart Element Detection: Finds buttons, links, and interactive elements
  • Contextual Targeting: Specify location for precise clicking
  • State Handling: Automatically waits for elements to be clickable
  • Error Recovery: Handles common clicking issues automatically

Next Steps