Skip to main content

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