Table of Contents

Class ChromiumDriverService

Namespace
OpenQA.Selenium.Chromium
Assembly
WebDriver.dll

Exposes the service provided by the native ChromiumDriver executable.

public abstract class ChromiumDriverService : DriverService, ICommandServer, IDisposable
Inheritance
ChromiumDriverService
Implements
Derived
Inherited Members

Constructors

ChromiumDriverService(string?, string?, int)

Initializes a new instance of the ChromiumDriverService class.

protected ChromiumDriverService(string? executablePath, string? executableFileName, int port)

Parameters

executablePath string

The full path to the ChromeDriver executable.

executableFileName string

The file name of the ChromeDriver executable.

port int

The port on which the ChromeDriver executable should listen.

Properties

AllowedIPAddresses

Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver.

A value of null or Empty means only the local loopback address can connect.

public string? AllowedIPAddresses { get; set; }

Property Value

string

AndroidDebugBridgePort

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

A value less than or equal to 0, or null, indicates no Android Debug Bridge specified.

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

DisableBuildCheck

Gets or sets a value indicating whether to skip version compatibility check between the driver and the browser. Defaults to false.

public bool DisableBuildCheck { get; set; }

Property Value

bool

EnableAppendLog

Gets or sets a value indicating whether to enable appending to an existing ChromeDriver log file. Defaults to false.

public bool EnableAppendLog { get; set; }

Property Value

bool

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.

null or Empty signify no log path.

public string? LogPath { get; set; }

Property Value

string

PortServerAddress

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

null or Empty signify no port server.

public string? PortServerAddress { get; set; }

Property Value

string

UrlPathPrefix

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

null or Empty signify no prefix.

public string? UrlPathPrefix { get; set; }

Property Value

string

WhitelistedIPAddresses

Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver.

A value of null or Empty means only the local loopback address can connect.

[Obsolete("Use AllowedIPAddresses")]
public string? WhitelistedIPAddresses { get; set; }

Property Value

string

Methods

ChromiumDriverServiceFileName(string)

Returns the Chromium driver filename for the currently running platform

protected static string ChromiumDriverServiceFileName(string fileName = "chromedriver")

Parameters

fileName string

The name of the Chromium executable. Default is "chromedriver".

Returns

string

The file name of the Chromium driver service executable.