C# Класс OpenQA.Selenium.DriverService

Exposes the service provided by a native WebDriver server executable.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Releases all resources associated with this DriverService.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
Start ( ) : void
Stop ( ) : void

Описание методов

Dispose() публичный Метод

Releases all resources associated with this DriverService.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases all resources associated with this DriverService.
protected Dispose ( bool disposing ) : void
disposing bool if the Dispose method was explicitly called; otherwise, .
Результат void

DriverService() защищенный Метод

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.
Результат System

FindDriverServiceExecutable() защищенный статический Метод

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.
Результат string