C# Класс OpenQA.Selenium.Chrome.ChromeExtension

Provides a mechanism to Add the WebDriver Extension
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ChromeExtension ( ) : System

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required

ChromeExtension ( string directory ) : System

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required

FindChromeExtensionDir ( ) : string

Searches for the Chrome extension directory to use. Will first check the directory specified by the {@code webdriver.chrome.extensiondir} system property, and then will check the current classpath for {@code chrome-extension.zip}.

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

Метод Описание
CheckExtensionForManifest ( string directory ) : string

Verifies that the given {@code directory} is a valid Chrome extension directory. Will check if the directory has the required {@code manifest.json} file. If not, it will check for the correct platform manifest and copy it over.

LoadExtension ( ) : string

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

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

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required
public ChromeExtension ( ) : System
Результат System

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

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required
public ChromeExtension ( string directory ) : System
directory string The directory to use as the Chrome extension.
Результат System

FindChromeExtensionDir() публичный статический Метод

Searches for the Chrome extension directory to use. Will first check the directory specified by the {@code webdriver.chrome.extensiondir} system property, and then will check the current classpath for {@code chrome-extension.zip}.
public static FindChromeExtensionDir ( ) : string
Результат string