install() 函数
🌐 install() function
install(): Promise<InstalledBrowser>
根据 InstallOptions 下载并解压浏览器归档文件。
🌐 Downloads and unpacks the browser archive according to the InstallOptions.
语法
🌐 Signature
export declare function install(
options: InstallOptions & {
unpack?: true;
},
): Promise<InstalledBrowser>;
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
options | InstallOptions & { unpack?: true; } |
返回:
Promise<InstalledBrowser>
一个 InstalledBrowser 实例。
🌐 a InstalledBrowser instance.
install(): Promise<string>
根据 InstallOptions 下载浏览器存档而不进行解压。
🌐 Downloads the browser archive according to the InstallOptions without unpacking.
语法
🌐 Signature
export declare function install(
options: InstallOptions & {
unpack: false;
},
): Promise<string>;
参数
🌐 Parameters
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
options | InstallOptions & { unpack: false; } |
返回:
Promise<string>
存档的绝对路径。
🌐 the absolute path to the archive.