Back to Puppeteer

Browser.installExtension() method

website/versioned_docs/version-24.40.0/api/puppeteer.browser.installextension.md

19.2.2558 B
Original Source

Browser.installExtension() method

Installs an extension and returns the ID. In Chrome, this is only available if the browser was created using pipe: true and the --enable-unsafe-extension-debugging flag is set.

Signature

typescript
class Browser {
  abstract installExtension(path: string): Promise<string>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

path

</td><td>

string

</td><td> </td></tr> </tbody></table>

Returns:

Promise<string>