MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / uninstallAddon

Method uninstallAddon

javascript/selenium-webdriver/firefox.js:590–597  ·  view source on GitHub ↗

* Uninstalls an addon from the current browser session's profile. * * @param {(string|!Promise )} id ID of the addon to uninstall. * @return {!Promise} A promise that will resolve when the operation has * completed. * @see #installAddon * @deprecated Use {@link #uninstal

(id)

Source from the content-addressed store, hash-verified

588 * @deprecated Use {@link #uninstallWebExtension} instead.
589 */
590 async uninstallAddon(id) {
591 webdriver.WebDriver.logger.deprecate(
592 'firefox-uninstallAddon',
593 'firefox.Driver#uninstallAddon() is deprecated. Use driver.uninstallWebExtension() instead.',
594 )
595 id = await Promise.resolve(id)
596 return this.execute(new command.Command(ExtensionCommand.UNINSTALL_ADDON).setParameter('id', id))
597 }
598
599 /**
600 * Installs a browser extension. Works with remote (Grid) sessions. Uses BiDi when the session

Callers 1

addon_test.jsFile · 0.80

Calls 4

setParameterMethod · 0.80
executeMethod · 0.65
deprecateMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected