Skip to main content

Core Architecture

Core Classes

  • Browser (alias: BrowserSession): Main session manager
  • Page: Represents a browser tab/iframe
  • Element: Individual DOM element operations
  • Mouse: Coordinate-based mouse operations

Basic Usage

Important Notes

  • Not Playwright: Actor is built on CDP, not Playwright. The API resembles Playwright as much as possible for easy migration, but is a subset.
  • Immediate Returns: get_elements_by_css_selector() doesn’t wait for visibility
  • Manual Timing: You handle navigation timing and waiting
  • JavaScript Format: evaluate() requires arrow function format: () => {}