Skip to main content
Version: 24.38.0

Options 接口

🌐 Options interface

语法

🌐 Signature

export interface ComputeExecutablePathOptions

属性

🌐 Properties

属性

🌐 Property

修饰符

🌐 Modifiers

类型

🌐 Type

描述

🌐 Description

默认

🌐 Default

browser

浏览器

确定要启动的浏览器。

🌐 Determines which browser to launch.

buildId

string

确定要下载哪个 buildId。BuildId 应该唯一标识二进制文件,并且它们用于缓存。

🌐 Determines which buildId to download. BuildId should uniquely identify binaries and they are used for caching.

cacheDir

字符串 | 空

🌐 string | null

存储目录的根路径。

🌐 Root path to the storage directory.

如果可执行文件路径应相对于解压后的下载位置,可以设置为 null。例如 ./chrome-linux64/chrome

🌐 Can be set to null if the executable path should be relative to the extracted download location. E.g. ./chrome-linux64/chrome.

platform

optional

浏览器平台

确定浏览器适合哪个平台。

🌐 Determines which platform the browser will be suited for.

自动检测。