ChromeSettings 接口
🌐 ChromeSettings interface
语法
🌐 Signature
export interface ChromeSettings
属性
🌐 Properties
|
属性 🌐 Property |
修饰符 🌐 Modifiers |
类型 🌐 Type |
描述 🌐 Description |
默认 🌐 Default |
|---|---|---|---|---|
|
downloadBaseUrl |
|
string |
指定用于下载浏览器的 URL 前缀。 🌐 Specifies the URL prefix that is used to download the browser. 可以被 🌐 Can be overridden by 附注 这必须包括协议,甚至可能需要路径前缀。这不得包含类似默认值的尾部斜杠。 🌐 This must include the protocol and may even need a path prefix. This must not include a trailing slash similar to the default. | |
|
skipDownload |
|
boolean |
告诉 Puppeteer 在安装期间不要下载浏览器。 🌐 Tells Puppeteer to not download the browser during installation. 可以被 🌐 Can be overridden by |
false |
|
version |
|
string |
指定你希望 Puppeteer 使用的浏览器的特定版本。 🌐 Specifies a certain version of the browser you'd like Puppeteer to use. 可以被 🌐 Can be overridden by 请参见 puppeteer.launch 了解可执行路径是如何推断的。 🌐 See puppeteer.launch on how executable path is inferred. |
当前 Puppeteer 版本支持的固定浏览器版本。 🌐 The pinned browser version supported by the current Puppeteer version. |