Skip to content

browserbase/quickstart-playwright-js-parallelism

Repository files navigation

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