C# Class OpenQA.Selenium.Firefox.FirefoxExtension

Provides the ability to install extensions into a FirefoxProfile.
显示文件 Open project: asynchrony/Selenium2 Class Usage Examples

Public Methods

Method Description
FirefoxExtension ( string fileName ) : System

Initializes a new instance of the FirefoxExtension class.

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.

Install ( string profileDir ) : void

Installs the extension into a profile directory.

Private Methods

Method Description
FirefoxExtension ( string fileName, string resourceId ) : System

Initializes a new instance of the FirefoxExtension class.

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. If the file is not found in the file system, WebDriver attempts to locate a resource in the executing assembly with the name specified by the resourceId parameter.

ReadIdFromInstallRdf ( string root ) : string

Method Details

FirefoxExtension() public method

Initializes a new instance of the FirefoxExtension class.
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.
public FirefoxExtension ( string fileName ) : System
fileName string The name of the file containing the Firefox extension.
return System

Install() public method

Installs the extension into a profile directory.
public Install ( string profileDir ) : void
profileDir string The Firefox profile directory into which to install the extension.
return void