C# Class OpenQA.Selenium.Chrome.ChromeOptions

Class to manage options specific to ChromeDriver
Used with ChromeDriver.exe v17.0.963.0 and higher.
Afficher le fichier Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Méthodes publiques

Свойство Type Description
Capability string

Private Properties

Свойство Type Description
ToCapabilities ICapabilities

Méthodes publiques

Méthode Description
AddAdditionalCapability ( string capabilityName, object capabilityValue ) : void

Provides a means to add additional capabilities not yet added as type safe options for the Chrome driver.

Calling AddAdditionalCapability where capabilityName has already been added will overwrite the existing value with the new value in capabilityValue

AddArgument ( string argument ) : void

Adds a single argument to the list of arguments to be appended to the Chrome.exe command line.

AddArguments ( ) : void

Adds arguments to be appended to the Chrome.exe command line.

AddArguments ( IEnumerable arguments ) : void

Adds arguments to be appended to the Chrome.exe command line.

AddExtension ( string pathToExtension ) : void

Adds a path to a packed Chrome extension (.crx file) to the list of extensions to be installed in the instance of Chrome.

AddExtensions ( ) : void

Adds a list of paths to packed Chrome extensions (.crx files) to be installed in the instance of Chrome.

AddExtensions ( IEnumerable extensions ) : void

Adds a list of paths to packed Chrome extensions (.crx files) to be installed in the instance of Chrome.

Private Methods

Méthode Description
ToCapabilities ( ) : ICapabilities

Returns DesiredCapabilities for Chrome with these options included as capabilities. This does not copy the options. Further changes will be reflected in the returned capabilities.

Method Details

AddAdditionalCapability() public méthode

Provides a means to add additional capabilities not yet added as type safe options for the Chrome driver.
Calling AddAdditionalCapability where capabilityName has already been added will overwrite the existing value with the new value in capabilityValue
/// thrown when attempting to add a capability for which there is already a type safe option, or /// when is or the empty string. ///
public AddAdditionalCapability ( string capabilityName, object capabilityValue ) : void
capabilityName string The name of the capability to add.
capabilityValue object The value of the capability to add.
Résultat void

AddArgument() public méthode

Adds a single argument to the list of arguments to be appended to the Chrome.exe command line.
public AddArgument ( string argument ) : void
argument string The argument to add.
Résultat void

AddArguments() public méthode

Adds arguments to be appended to the Chrome.exe command line.
public AddArguments ( ) : void
Résultat void

AddArguments() public méthode

Adds arguments to be appended to the Chrome.exe command line.
public AddArguments ( IEnumerable arguments ) : void
arguments IEnumerable An object of arguments to add.
Résultat void

AddExtension() public méthode

Adds a path to a packed Chrome extension (.crx file) to the list of extensions to be installed in the instance of Chrome.
public AddExtension ( string pathToExtension ) : void
pathToExtension string The full path to the extension to add.
Résultat void

AddExtensions() public méthode

Adds a list of paths to packed Chrome extensions (.crx files) to be installed in the instance of Chrome.
public AddExtensions ( ) : void
Résultat void

AddExtensions() public méthode

Adds a list of paths to packed Chrome extensions (.crx files) to be installed in the instance of Chrome.
public AddExtensions ( IEnumerable extensions ) : void
extensions IEnumerable An of full paths to the extensions to add.
Résultat void

Property Details

Capability public_oe static_oe property

Gets the name of the capability used to store Chrome options in a DesiredCapabilities object.
public static string Capability
Résultat string