Skip to main content

Puppeteer Integration

Puppeteer connects to Meshbrow browsers via the standard CDP WebSocket endpoint.

Basic Connection

With the SDK

Intercepting Requests

Extracting Data

Using Cookies from Profiles

Session Recording

Handling Dynamic Content

Tips

Always call browser.disconnect() (not browser.close()) when done. Closing would kill the Meshbrow session. Use the SDK’s destroy() method instead.
  • Use puppeteer-core (not puppeteer) since the browser is remote
  • Set defaultViewport: null to use Meshbrow’s configured viewport
  • Add --disable-web-security only in test mode, never in production