Browser.installExtension() 方法
🌐 Browser.installExtension() method
安装扩展并返回其 ID。
🌐 Installs an extension and returns the ID.
语法
🌐 Signature
class Browser {
abstract installExtension(
path: string,
options?: ExtensionInstallOptions,
): Promise<string>;
}
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
path |
string | |
|
options |
(可选) 🌐 (Optional) |
返回:
Promise<string>