module selenium-webdriver/firefox/extension

Utilities for working with Firefox extensions.

Functions

install(extension, dir)code ยป

Installs an extension to the given directory.

Parameters
extensionstring

Path to the extension to install, as either a xpi file or a directory.

dirstring

Path to the directory to install the extension in.

Returns
webdriver.promise.Promise

A promise for the add-on ID once installed.