Skip to main content
Version: 24.17.0

Browser.uninstallExtension() 方法

¥Browser.uninstallExtension() method

卸载扩展程序。在 Chrome 中,仅当浏览器是使用 pipe: true 创建且设置了 --enable-unsafe-extension-debugging 标志时,此功能才可用。

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

签名

¥Signature

class Browser {
abstract uninstallExtension(id: string): Promise<void>;
}

参数

¥Parameters

范围

类型

描述

id

string

Returns:

Promise<void>