C# Class OpenQA.Selenium.DriverService

Exposes the service provided by a native WebDriver server executable.
Inheritance: IDisposable
Afficher le fichier Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Releases all resources associated with this DriverService.

Méthodes protégées

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

Méthode Description
Start ( ) : void
Stop ( ) : void

Method Details

Dispose() public méthode

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

Dispose() protected méthode

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

DriverService() protected méthode

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

FindDriverServiceExecutable() protected static méthode

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