Initializes a new instance of the DriverService class.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- servicePath
- Type:
System String
The full path to the directory containing the executable providing the service to drive the browser.
- port
- Type:
System Int32
The port on which the driver executable should listen.
- driverServiceExecutableName
- Type:
System String
The file name of the driver service executable.
- driverServiceDownloadUrl
- Type:
System Uri
A URL at which the driver service executable may be downloaded.
Exceptions
Exception | Condition |
---|---|
![]() | 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