Table of Contents

Class FirefoxExtension

Namespace
OpenQA.Selenium.Firefox
Assembly
WebDriver.dll

Provides the ability to install extensions into a FirefoxProfile.

public class FirefoxExtension
Inheritance
FirefoxExtension
Inherited Members

Constructors

FirefoxExtension(string)

Initializes a new instance of the FirefoxExtension class.

public FirefoxExtension(string fileName)

Parameters

fileName string

The name of the file containing the Firefox extension.

Remarks

WebDriver attempts to resolve the fileName parameter by looking first for the specified file in the directory of the calling assembly, then using the full path to the file, if a full path is provided.

Exceptions

ArgumentNullException

If fileName is null.

Methods

Install(string)

Installs the extension into a profile directory.

public void Install(string profileDirectory)

Parameters

profileDirectory string

The Firefox profile directory into which to install the extension.

Exceptions

ArgumentNullException

If profileDirectory is null.