Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.55 KB

File metadata and controls

48 lines (32 loc) · 1.55 KB

Browserbase logo

Documentation  ·  Playground


Parallel Playwright tasks with Browserbase

This repo is a template for the Parallelization Guide.

The processBrowserbaseTasks(tasks) utility is provided to process multiple Playwright tasks in parallel by leveraging a pool of Browser instances.

Setup

1. Install dependencies and launch TypeScript in watch mode:

npm install
tsc -w

2. Get your Browserbase API Key and Project ID:

3. Run the script:

BROWSERBASE_PROJECT_ID=xxx BROWSERBASE_API_KEY=xxxx node dist/index.js

Further reading