computeSystemExecutablePath() 函数
根据发布渠道名称,通过检查已知的安装位置(使用 https://pptr.dev/browsers-api/browsers.computesystemexecutablepath)返回系统级 Chrome 安装的路径。如果在预期路径中找不到 Chrome 实例,则抛出错误。
签名
export declare function computeSystemExecutablePath(
options: SystemOptions,
validatePath?: boolean,
): string;
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
options | ||
|
validatePath |
boolean |
(可选) |
返回值:
string