Table of Contents

Class ChromeDriverService

Namespace
OpenQA.Selenium.Chrome
Assembly
WebDriver.dll

Exposes the service provided by the native ChromeDriver executable.

public sealed class ChromeDriverService : DriverService, ICommandServer, IDisposable
Inheritance
ChromeDriverService
Implements
Inherited Members

Properties

AndroidDebugBridgePort

Gets or sets the port on which the Android Debug Bridge is listening for commands.

public int AndroidDebugBridgePort { get; set; }

Property Value

int

CommandLineArguments

Gets the command-line arguments for the driver service.

protected override string CommandLineArguments { get; }

Property Value

string

EnableVerboseLogging

Gets or sets a value indicating whether to enable verbose logging for the ChromeDriver executable. Defaults to false.

public bool EnableVerboseLogging { get; set; }

Property Value

bool

LogPath

Gets or sets the location of the log file written to by the ChromeDriver executable.

public string LogPath { get; set; }

Property Value

string

PortServerAddress

Gets or sets the address of a server to contact for reserving a port.

public string PortServerAddress { get; set; }

Property Value

string

UrlPathPrefix

Gets or sets the base URL path prefix for commands (e.g., "wd/url").

public string UrlPathPrefix { get; set; }

Property Value

string

Methods

CreateDefaultService()

Creates a default instance of the ChromeDriverService.

public static ChromeDriverService CreateDefaultService()

Returns

ChromeDriverService

A ChromeDriverService that implements default settings.

CreateDefaultService(string)

Creates a default instance of the ChromeDriverService using a specified path to the ChromeDriver executable.

public static ChromeDriverService CreateDefaultService(string driverPath)

Parameters

driverPath string

The directory containing the ChromeDriver executable.

Returns

ChromeDriverService

A ChromeDriverService using a random port.

CreateDefaultService(string, string)

Creates a default instance of the ChromeDriverService using a specified path to the ChromeDriver executable with the given name.

public static ChromeDriverService CreateDefaultService(string driverPath, string driverExecutableFileName)

Parameters

driverPath string

The directory containing the ChromeDriver executable.

driverExecutableFileName string

The name of the ChromeDriver executable file.

Returns

ChromeDriverService

A ChromeDriverService using a random port.