C# Класс OpenQA.Selenium.Firefox.FirefoxExtension

Provides the ability to install extensions into a FirefoxProfile.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FirefoxExtension() публичный Метод

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.
Результат System

Install() публичный Метод

Installs the extension into a profile directory.
public Install ( string profileDir ) : void
profileDir string The Firefox profile directory into which to install the extension.
Результат void