Quickstart: Puppeteer + Browserbase

Run Puppeteer against a cloud browser. No AI, no infrastructure, no local browser required.

Quickstart: Puppeteer + Browserbase demo
Copy prompt to run with your AI agent

Get started with Puppeteer and Browserbase

Connect Puppeteer to a cloud browser on Browserbase and automate anything. No local Chrome install, no infrastructure to manage, no headless quirks. Open a WebSocket connection and use the same Puppeteer API you already know to navigate pages, interact with elements, and extract data. Perfect for scraping, testing, and workflow automation at scale.

Steps

  1. Spin up a Browserbase cloud session and connect Puppeteer over WebSocket

  2. Navigate to any page and verify it loaded successfully

  3. Interact with on-page elements using standard Puppeteer selectors and clicks

  4. Move between pages and confirm each navigation

  5. Extract the content you need, whether that's headings, copy, or structured data