LaunchContext <Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>
Indexable
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Type parameters
- Library: CommonLibrary = CommonLibrary
- LibraryOptions: undefined | Dictionary = Parameters<Library[launch]>[0]
- LaunchResult: CommonBrowser = UnwrapPromise<ReturnType<Library[launch]>>
- NewPageOptions = Parameters<LaunchResult[newPage]>[0]
- NewPageResult = UnwrapPromise<ReturnType<LaunchResult[newPage]>>
Parameters
options: LaunchContextOptions<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>
Returns LaunchContext<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>
Properties
optionalbrowserPerProxy
browserPlugin
experimentalContainers
optionalfingerprint
optionalid
launchOptions
optionalproxyTier
useIncognitoPages
userDataDir
Accessors
proxyUrl
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 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.
Type parameters
- T: Record<PropertyKey, unknown>
Parameters
fields: T
Returns void
Returns the proxy URL of the browser.