@randy.tarampi/playwright-cluster
v0.5.0
Published
Cluster management for playwright
Downloads
334
Maintainers
Readme
Playwright Cluster
puppeteer-cluster is a great library manages a puppeteer cluster. This is re-implementation to make it work with Playwright, aiming at 100% API compatibility as a turn-key replacement.
Install
npm --save @randy.tarampi/playwright-cluster
Usage
The documentation from puppeteer-cluster is still valid as the reference.
- Usage
- Examples
- Concurrency implementations
- Typings for input/output (via TypeScript Generics)
- Debugging
- API
Note
- Chromium is hardcoded as the headless browser. This library does not work with Firefox or Webkit.
BrowserContext
is not available in Puppeteer. Some options, e.g.ignoreHTTPSErrors
cannot be directly translated frompuppeteerOptions
toplaywrightOptions
. Therefore, we introducedcontextOptions
as an optional property inClusterOptions
.