C# Class OpenQA.Selenium.Chrome.ChromeExtension

Provides a mechanism to Add the WebDriver Extension
Afficher le fichier Open project: epall/selenium Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ChromeExtension() public méthode

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.
Résultat System

FindChromeExtensionDir() public static méthode

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
Résultat string