selenium.webdriver.common.bidi.webextension

Classes

WebExtension(conn)

BiDi implementation of the webExtension module.

class selenium.webdriver.common.bidi.webextension.WebExtension(conn)[source]

BiDi implementation of the webExtension module.

install(path=None, archive_path=None, base64_value=None) Dict[source]

Installs a web extension in the remote end.

You must provide exactly one of the parameters.

Parameters:

path: Path to an extension directory archive_path: Path to an extension archive file base64_value: Base64 encoded string of the extension archive

Returns:

Dict: A dictionary containing the extension ID.

uninstall(extension_id_or_result: str | Dict) None[source]

Uninstalls a web extension from the remote end.

Parameters:

extension_id_or_result: Either the extension ID as a string or the result dictionary

from a previous install() call containing the extension ID.