Skip to main content
Version: 24.38.0

FirefoxSettings 接口

🌐 FirefoxSettings interface

语法

🌐 Signature

export interface FirefoxSettings

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

downloadBaseUrl

optional

string

指定用于下载浏览器的 URL 前缀。

🌐 Specifies the URL prefix that is used to download the browser.

可以被 PUPPETEER_FIREFOX_DOWNLOAD_BASE_URL 覆盖。

🌐 Can be overridden by PUPPETEER_FIREFOX_DOWNLOAD_BASE_URL.

附注

这必须包括协议,甚至可能需要路径前缀。这不得包含类似默认值的尾部斜杠。

🌐 This must include the protocol and may even need a path prefix. This must not include a trailing slash similar to the default.

https://archive.mozilla.org/pub/firefox/releases

skipDownload

optional

boolean

告诉 Puppeteer 在安装期间不要下载浏览器。

🌐 Tells Puppeteer to not download the browser during installation.

可以被 PUPPETEER_FIREFOX_SKIP_DOWNLOAD 覆盖。

🌐 Can be overridden by PUPPETEER_FIREFOX_SKIP_DOWNLOAD.

true

version

optional

string

指定你希望 Puppeteer 使用的浏览器的特定版本。

🌐 Specifies a certain version of the browser you'd like Puppeteer to use.

可以被 PUPPETEER_FIREFOX_VERSION 覆盖。

🌐 Can be overridden by PUPPETEER_FIREFOX_VERSION.

请参见 puppeteer.launch 了解可执行路径是如何推断的。

🌐 See puppeteer.launch on how executable path is inferred.

当前 Puppeteer 版本支持的固定浏览器版本。

🌐 The pinned browser version supported by the current Puppeteer version.