RemotePlaywrightBrowserPoolOptions
Hierarchy
- Pick<PlaywrightBrowserPoolOptions, launchContext | headless | configuration>
- Omit<RemoteBrowserPoolOptions, browserPlugins>
- RemotePlaywrightBrowserPoolOptions
Index
Properties
optionalinheritedbrowserPoolOptions
optionalinheritedconfiguration
Configuration to read the browser defaults from. Defaults to the global configuration.
optionalinheritedconnection
Static connect() parameters (Playwright protocol selection, headers, timeouts, …).
inheritedendpoint
The remote browser endpoint: a static URL, a function returning one per launch, or a RemoteBrowserProvider instance encapsulating a session create/release lifecycle.
optionalinheritedheadless
Whether to run the browser in headless mode. Shorthand for launchContext.launchOptions.headless.
Defaults to true, and can also be set via Configuration.
optionalinheritedlaunchContext
How to launch the browser: which Playwright browser type, proxy, user data dir, ...
optionalinheritedmaxOpenBrowsers
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.
optionalinheritedrelease
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
optionalinheritedslotPollIntervalMillis
Fallback poll interval (ms) while waiting for a free browser slot. The wait is event-driven; this only bounds it.
Extra BrowserPool options (lifecycle hooks, page limits, fingerprinting, …).