C# Class OpenQA.Selenium.Chrome.ChromeDriverService

Exposes the service provided by the native ChromeDriver executable.
Inheritance: IDisposable
Afficher le fichier Open project: asynchrony/Selenium2 Class Usage Examples

Méthodes publiques

Méthode Description
CreateDefaultService ( ) : ChromeDriverService

Creates a default instance of the ChromeDriverService.

CreateDefaultService ( string driverPath ) : ChromeDriverService

Creates a default instance of the ChromeDriverService using a specified path to the ChromeDriver executable.

Dispose ( ) : void

Releases all resources associated with this ChromeDriverService.

Private Methods

Méthode Description
ChromeDriverService ( string executable, int port ) : System

Initializes a new instance of the ChromeDriverService class.

FindFreePort ( ) : int
Start ( ) : void
Stop ( ) : void

Method Details

CreateDefaultService() public static méthode

Creates a default instance of the ChromeDriverService.
public static CreateDefaultService ( ) : ChromeDriverService
Résultat ChromeDriverService

CreateDefaultService() public static méthode

Creates a default instance of the ChromeDriverService using a specified path to the ChromeDriver executable.
public static CreateDefaultService ( string driverPath ) : ChromeDriverService
driverPath string The directory containing the ChromeDriver executable.
Résultat ChromeDriverService

Dispose() public méthode

Releases all resources associated with this ChromeDriverService.
public Dispose ( ) : void
Résultat void