Skip to main content
Version: Next

PuppeteerPlugin

The BrowserPlugin serves two purposes. First, it is the base class that specialized controllers like PuppeteerPlugin or PlaywrightPlugin extend. Second, it allows the user to configure the automation libraries and feed them to BrowserPool for use.

Hierarchy

  • BrowserPlugin<typeof Puppeteer, PuppeteerTypes.LaunchOptions, PuppeteerTypes.Browser, PuppeteerNewPageOptions>
    • PuppeteerPlugin

Index

Constructors

constructor

Properties

optionalreadonlyinheritedbrowserPerProxy

browserPerProxy?: boolean

optionalreadonlyinheritedignoreProxyCertificate

ignoreProxyCertificate?: boolean

readonlyinheritedlaunchOptions

launchOptions: LaunchOptions

readonlyinheritedlibrary

library: PuppeteerNode

readonlyinheritedname

name: string = ...

optionalreadonlyinheritedproxyUrl

proxyUrl?: string

inheriteduseIncognitoPages

useIncognitoPages: boolean

optionalreadonlyinheriteduserDataDir

userDataDir?: string

Methods

createController

inheritedcreateLaunchContext

  • createLaunchContext(options): LaunchContext<PuppeteerNode, LaunchOptions, Browser, PuppeteerNewPageOptions, Page>
  • Creates a LaunchContext with all the information needed to launch a browser. Aside from library specific launch options, it also includes internal properties used by BrowserPool for management of the pool and extra features.


    Parameters

    Returns LaunchContext<PuppeteerNode, LaunchOptions, Browser, PuppeteerNewPageOptions, Page>

inheritedlaunch

  • launch(launchContext): Promise<Browser>
  • Launches the browser using provided launch context.


    Parameters

    • launchContext: LaunchContext<PuppeteerNode, LaunchOptions, Browser, PuppeteerNewPageOptions, Page> = ...

    Returns Promise<Browser>

useRemoteConnection

  • useRemoteConnection(connection, parameters): void
  • Pages share cookies/storage on the remote browser (Puppeteer defaults to non-incognito).


    Parameters

    Returns void