Skip to main content
Version: Next

LaunchContext <Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>

Index

Constructors

constructor

  • new LaunchContext(options: LaunchContextOptions<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>): LaunchContext<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>
  • Parameters

    Returns LaunchContext<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>

Properties

optionalbrowserPerProxy

browserPerProxy?: boolean

browserPlugin

browserPlugin: BrowserPlugin<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>

experimentalContainers

experimentalContainers: boolean

optionalfingerprint

fingerprint?: BrowserFingerprintWithHeaders

optionalid

id?: string

launchOptions

launchOptions: LibraryOptions

optionalproxyTier

proxyTier?: number

useIncognitoPages

useIncognitoPages: boolean

userDataDir

userDataDir: string

Accessors

proxyUrl

  • get proxyUrl(): undefined | string
  • set proxyUrl(url: undefined | string): void
  • Returns the proxy URL of the browser.


    Returns undefined | string

  • Sets a proxy URL for the browser. Use undefined to unset existing proxy URL.


    Parameters

    • url: undefined | string

    Returns void

Methods

extend

  • extend(fields: T): void
  • Extend the launch context with any extra fields. This is useful to keep state information relevant to the browser being launched. It ensures that no internal fields are overridden and should be used instead of property assignment.


    Parameters

    • fields: T

    Returns void