website/versioned_docs/version-24.40.0/browsers-api/browsers.install.md
Downloads and unpacks the browser archive according to the InstallOptions.
export declare function install(
options: InstallOptions & {
unpack?: true;
},
): Promise<InstalledBrowser>;
Parameter
</th><th>Type
</th><th>Description
</th></tr></thead> <tbody><tr><td>options
</td><td>InstallOptions & { unpack?: true; }
</td><td> </td></tr> </tbody></table>Returns:
Promise<InstalledBrowser>
a InstalledBrowser instance.
<h2 id="overload-2">install(): Promise<string></h2>Downloads the browser archive according to the InstallOptions without unpacking.
export declare function install(
options: InstallOptions & {
unpack: false;
},
): Promise<string>;
Parameter
</th><th>Type
</th><th>Description
</th></tr></thead> <tbody><tr><td>options
</td><td>InstallOptions & { unpack: false; }
</td><td> </td></tr> </tbody></table>Returns:
Promise<string>
the absolute path to the archive.