C# Class OpenQA.Selenium.Chrome.ChromeDriverService

Exposes the service provided by the native ChromeDriver executable.
Inheritance: IDisposable
ファイルを表示 Open project: asynchrony/Selenium2 Class Usage Examples

Public Methods

Method 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

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

Creates a default instance of the ChromeDriverService.
public static CreateDefaultService ( ) : ChromeDriverService
return ChromeDriverService

CreateDefaultService() public static method

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

Dispose() public method

Releases all resources associated with this ChromeDriverService.
public Dispose ( ) : void
return void