C# Class OpenQA.Selenium.DriverService

Exposes the service provided by a native WebDriver server executable.
Inheritance: IDisposable
显示文件 Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases all resources associated with this DriverService.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases all resources associated with this DriverService.

DriverService ( string servicePath, int port, string driverServiceExecutableName, Uri driverServiceDownloadUrl ) : System

Initializes a new instance of the DriverService class.

FindDriverServiceExecutable ( string executableName, Uri downloadUrl ) : string

Finds the specified driver service executable.

Private Methods

Method Description
Start ( ) : void
Stop ( ) : void

Method Details

Dispose() public method

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

Dispose() protected method

Releases all resources associated with this DriverService.
protected Dispose ( bool disposing ) : void
disposing bool if the Dispose method was explicitly called; otherwise, .
return void

DriverService() protected method

Initializes a new instance of the DriverService class.
/// If the path specified is or an empty string. /// /// If the specified driver service executable does not exist in the specified directory. ///
protected DriverService ( string servicePath, int port, string driverServiceExecutableName, Uri driverServiceDownloadUrl ) : System
servicePath string The full path to the directory containing the executable providing the service to drive the browser.
port int The port on which the driver executable should listen.
driverServiceExecutableName string The file name of the driver service executable.
driverServiceDownloadUrl System.Uri A URL at which the driver service executable may be downloaded.
return System

FindDriverServiceExecutable() protected static method

Finds the specified driver service executable.
/// If the specified driver service executable does not exist in the current directory or in a directory on the system path. ///
protected static FindDriverServiceExecutable ( string executableName, Uri downloadUrl ) : string
executableName string The file name of the executable to find.
downloadUrl System.Uri A URL at which the driver service executable may be downloaded.
return string