Skip to main content
This page is for browser-use 0.x. Current docs: Introduction. Upgrading: Migrating to 1.0. To stay on 0.x, pin it: pip install 'browser-use<1'.
The Actor API (Page, Element, Mouse) is removed in browser-use 1.0: the agent drives the page with Python and raw CDP itself. For scripted steps in 1.0, use Playwright on the agent’s browser: Combine with Playwright.

Page Management

Element Finding & Interactions

LLM-Powered Features

JavaScript Execution

Mouse Operations

Best Practices

  • Use asyncio.sleep() after actions that trigger navigation
  • Check URL/title changes to verify state transitions
  • Always check if elements exist before interaction
  • Implement retry logic for flaky elements
  • Call browser.stop() to clean up resources