Skip to main content
Version: Next

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

Hierarchy

  • Partial<Omit<LaunchContextOptions<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>, browserPlugin>>
    • CreateLaunchContextOptions

Index

Properties

optionalinheritedbrowserPerProxy

browserPerProxy?: boolean

If set to true, the crawler respects the proxy url generated for the given request. This aligns the browser-based crawlers with the HttpCrawler.

Might cause performance issues, as Crawlee might launch too many browser instances.

optionalinheritedid

id?: string

To make identification of LaunchContext easier, BrowserPool assigns the LaunchContext an id that's equal to the id of the page that triggered the browser launch. This is useful, because many pages share a single launch context (single browser).

optionalinheritedignoreProxyCertificate

ignoreProxyCertificate?: boolean

If set to true, TLS certificate errors from the upstream proxy will be ignored. This is useful when using HTTPS proxies with self-signed certificates.

optionalinheritedisRemote

isRemote?: boolean = false

Whether this launch context represents a connection to a remote browser rather than a locally launched one.

optionalinheritedlaunchOptions

launchOptions?: LibraryOptions

The actual options the browser was launched with, after changes. Those changes would be typically made in pre-launch hooks.

optionalinheritedproxyUrl

proxyUrl?: string

optionalinheriteduseIncognitoPages

useIncognitoPages?: boolean

By default pages share the same browser context. If set to true each page uses its own context that is destroyed once the page is closed or crashes.

optionalinheriteduserDataDir

userDataDir?: string

Path to a User Data Directory, which stores browser session data like cookies and local storage.