C# Class OpenQA.Selenium.Chrome.ChromeExtension

Provides a mechanism to Add the WebDriver Extension
ファイルを表示 Open project: epall/selenium Class Usage Examples

Public Methods

Method Description
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}.

Private Methods

Method Description
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

Method Details

ChromeExtension() public method

Initializes a new instance of the ChromeExtension class. Assumes that the directory exists and has the required
public ChromeExtension ( ) : System
return System

ChromeExtension() public method

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.
return System

FindChromeExtensionDir() public static method

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
return string