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

Method uninstallWebExtension

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

* Uninstalls a browser extension installed with #installWebExtension. Uses BiDi when * the session has it enabled, and otherwise geckodriver's classic addon endpoint. * * @param {!webExtension.WebExtension} extension the extension returned by * #installWebExtension.

(extension)

Source from the content-addressed store, hash-verified

646 * @override
647 */
648 async uninstallWebExtension(extension) {
649 const id = webExtension.extensionId(extension)
650 if (await webExtension.isBidiEnabled(this)) {
651 return super.uninstallWebExtension(extension)
652 }
653 await this.execute(new command.Command(ExtensionCommand.UNINSTALL_ADDON).setParameter('id', id))
654 }
655
656 /**
657 * Take full page screenshot of the visible region

Callers

nothing calls this directly

Calls 2

setParameterMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected