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

Function extensionId

javascript/selenium-webdriver/lib/web_extension.js:101–108  ·  view source on GitHub ↗

* @param {*} extension the value passed to uninstallWebExtension. * @return {string} the wrapped id. * @throws {error.InvalidArgumentError} if `extension` is not a WebExtension.

(extension)

Source from the content-addressed store, hash-verified

99 * @throws {error.InvalidArgumentError} if `extension` is not a {@link WebExtension}.
100 */
101function extensionId(extension) {
102 if (!(extension instanceof WebExtension)) {
103 throw new error.InvalidArgumentError(
104 'uninstallWebExtension expects the WebExtension returned by installWebExtension',
105 )
106 }
107 return extension.id
108}
109
110/**
111 * The extension as base64 bytes: a directory is zipped, a file read, and anything else is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected