browserbase / quickstart-playwright-js-parallelism
Run Playwright tasks in parallel with Browserbase
README
<br/>
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:
- Create an account or log in to Browserbase
- Copy your API Key and Project ID from your Settings page
3. Run the script:
BROWSERBASE_PROJECT_ID=xxx BROWSERBASE_API_KEY=xxxx node dist/index.js
