DriverService Constructor WebDriver
Initializes a new instance of the DriverService class.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

protected DriverService(
	string servicePath,
	int port,
	string driverServiceExecutableName,
	Uri driverServiceDownloadUrl
)

Parameters

servicePath
Type: OnlineSystem String
The full path to the directory containing the executable providing the service to drive the browser.
port
Type: OnlineSystem Int32
The port on which the driver executable should listen.
driverServiceExecutableName
Type: OnlineSystem String
The file name of the driver service executable.
driverServiceDownloadUrl
Type: OnlineSystem Uri
A URL at which the driver service executable may be downloaded.
Exceptions

ExceptionCondition
OnlineSystem ArgumentException If the path specified is   or an empty string.
OpenQA.Selenium DriverServiceNotFoundException If the specified driver service executable does not exist in the specified directory.
See Also