install() function

install(): Promise<InstalledBrowser>

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](./browsers.installoptions.md) & { unpack?: true; }

Returns:

Promise<InstalledBrowser>

a InstalledBrowser instance.

install(): Promise<string>

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](./browsers.installoptions.md) & { unpack: false; }

Returns:

Promise<string>

the absolute path to the archive.