RemoteBrowserPoolOptions
Index
Properties
browserPlugins
optionalbrowserPoolOptions
Extra BrowserPool options (lifecycle hooks, page limits, fingerprinting, …).
optionalconnection
Static connect() parameters (Playwright protocol selection, headers, timeouts, …).
endpoint
The remote browser endpoint: a static URL, a function returning one per launch, or a RemoteBrowserProvider instance encapsulating a session create/release lifecycle.
optionalmaxOpenBrowsers
Maximum number of remote browsers open at once. When reached, newPage
waits for a browser to close before connecting a new one. Set it to your service's concurrent-session limit
to avoid 429 errors. Defaults to the provider's value, or
Infinity.
optionalrelease
Cleanup callback invoked when a browser closes, crashes, or the pool is destroyed. Receives the
context returned by a function endpoint. Errors are caught and logged. Ignored when endpoint
is a RemoteBrowserProvider (its own release() is used instead).
Type declaration
Parameters
info: { context?: Record<string, unknown>; endpoint: string }
optionalcontext: Record<string, unknown>
endpoint: string
Returns unknown
optionalslotPollIntervalMillis
Fallback poll interval (ms) while waiting for a free browser slot. The wait is event-driven; this only bounds it.
The browser plugin(s) used to connect to the remote service — e.g.
new PlaywrightPlugin(playwright.chromium)ornew PuppeteerPlugin(puppeteer). The pool configures them for remote connection; do not set a locallaunchOptionson them.