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