Class ChromiumDriverService
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
stringThe full path to the ChromeDriver executable.
executableFileName
stringThe file name of the ChromeDriver executable.
port
intThe 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. Defaults to an empty string, which means only the local loopback address can connect.
public string AllowedIPAddresses { get; set; }
Property Value
AndroidDebugBridgePort
Gets or sets the port on which the Android Debug Bridge is listening for commands.
public int AndroidDebugBridgePort { get; set; }
Property Value
CommandLineArguments
Gets the command-line arguments for the driver service.
protected override string CommandLineArguments { get; }
Property Value
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
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
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
LogPath
Gets or sets the location of the log file written to by the ChromeDriver executable.
public string LogPath { get; set; }
Property Value
PortServerAddress
Gets or sets the address of a server to contact for reserving a port.
public string PortServerAddress { get; set; }
Property Value
UrlPathPrefix
Gets or sets the base URL path prefix for commands (e.g., "wd/url").
public string UrlPathPrefix { get; set; }
Property Value
WhitelistedIPAddresses
Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver. Defaults to an empty string, which means only the local loopback address can connect.
[Obsolete("Use AllowedIPAddresses")]
public string WhitelistedIPAddresses { get; set; }
Property Value
Methods
ChromiumDriverServiceFileName(string)
Returns the Chromium driver filename for the currently running platform
protected static string ChromiumDriverServiceFileName(string fileName = "chromedriver")
Parameters
fileName
stringThe name of the Chromium executable. Default is "chromedriver".
Returns
- string
The file name of the Chromium driver service executable.