Skip to content
Browserbase
    • Primitives
      • BrowsersCloud browsers for your agent to use the web
      • AgentsScale fully managed browser agents with simple prompts
      • SearchFind relevant websites from a single query
      • FetchRetrieve web data as agent-ready HTML, JSON, or markdown
      • RuntimeScalable, sandboxed environments for agent deployments
      • IdentityAuthenticate your agent to navigate the web like a human
      • ModelsUse any model with a single API key
      • ObservabilityUnified debugging your agent across replays, logs, and prompts
    • Open Source
      • Browse CLIGive your agent browsing skills with a single command
      • StagehandThe most popular AI browser automation framework
    • Use Cases
      • Browser Agents
      • Automated Testing
      • Workflow Automation
      • Web Data Extraction
      All use cases
    • Industries
      • AI & Agent Platforms
      • Healthcare
      • Fintech
      • GTM
      • Legal
    • Resources
      • Blog
      • Customers
      • Enterprise
      • Templates
  • Pricing
  • Docs
  • Log in
Log in
Sign up
Get a demo

Quickstart: Playwright

Connect to a cloud browser via Playwright and Browserbase, navigate a real website, interact with UI elements, and extract page content.

Quickstart: Playwright demo

Works with

TypeScriptTypeScriptPythonPythonPlaywrightPlaywright

Built by

Browserbase

Support

support@browserbase.com

Resources

Browserbase docsStagehand websiteStagehand docs
Copy prompt to run with your AI agent
npx create-browser-app --template quickstart-playwright
uvx create-browser-app --template quickstart-playwright

Send this template to your email, or view it on your desktop for the source code.

Get started with Playwright + Browserbase

Get up and running with Playwright and Browserbase in a single script. Connect to a cloud browser via CDP, navigate to a real website (SFMOMA), interact with UI elements like search overlays and navigation links, and extract structured content from the page. No AI model required — just Playwright and your Browserbase API key.

Steps

  1. Create a Browserbase cloud browser session and connect via CDP using Playwright
  2. Navigate to the SFMOMA homepage and print the page title
  3. Open and close the search overlay by clicking UI buttons
  4. Click the Membership link and navigate to the membership page
  5. Extract the heading and intro text from the membership page

Most Popular Templates

Verify nurse licenses

Verify nurse licenses and extract status, expiration, and holder details automatically

Verify nurse licenses

Extract company data from websites

Extract company value propositions from websites for lead enrichment and outreach

Extract company data from websites

Getting started with Browserbase

Get started with Browserbase in a single script covering the Search API, Fetch, and browser sessions powered by Playwright.

Getting started with Browserbase
Browserbase

Primitives

  • Browsers
  • Web APIs
  • Runtime
  • Identity
  • Model Gateway
  • Observability
  • Stagehand
  • MCP

Industries

  • AI
  • Healthcare
  • GTM
  • Tax
  • Legal

Developers

  • Docs
  • Templates
  • APIs & SDKs
  • Changelog
  • Status
  • Github

Company

  • Careers
  • Customers
  • Partner with Us
  • Trust & Security

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service

Community

TwitterLinkedinYoutube
  • Privacy Policy
  • Terms of Service