puppeteer/website/versioned_docs/version-22.2.0/browsers-api/browsers.installoptions.md
release-please[bot] 19fe78f797
chore: release main (#11949)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-02-22 09:09:03 +01:00

4.2 KiB

sidebar_label
InstallOptions

InstallOptions interface

Signature:

export interface InstallOptions

Properties

Property Modifiers Type Description Default
baseUrl optional string Determines the host that will be used for downloading.

Either

- https://storage.googleapis.com/chrome-for-testing-public or - https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central

browser Browser Determines which browser to install.
buildId string Determines which buildId to download. BuildId should uniquely identify binaries and they are used for caching.
buildIdAlias optional string An alias for the provided buildId. It will be used to maintain local metadata to support aliases in the launch command.
cacheDir string Determines the path to download browsers to.
downloadProgressCallback optional (downloadedBytes: number, totalBytes: number) => void Provides information about the progress of the download.
platform optional BrowserPlatform Determines which platform the browser will be suited for. Auto-detected.
unpack optional boolean Whether to unpack and install browser archives. true