Table of Contents

Class FirefoxDriverService

Namespace
OpenQA.Selenium.Firefox
Assembly
WebDriver.dll

Exposes the service provided by the native FirefoxDriver executable.

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

Properties

BrowserCommunicationPort

Gets or sets the port used by the driver executable to communicate with the browser.

public int BrowserCommunicationPort { get; set; }

Property Value

int

CommandLineArguments

Gets the command-line arguments for the driver service.

protected override string CommandLineArguments { get; }

Property Value

string

FirefoxBinaryPath

Gets or sets the location of the Firefox binary executable.

public string FirefoxBinaryPath { get; set; }

Property Value

string

IgnoreMissingStatusEndPoint

Gets a value indicating whether to ignore the absence of a status end point.

protected override bool IgnoreMissingStatusEndPoint { get; }

Property Value

bool

InitialConnectionTimeout

Gets a value indicating the time to wait for an initial connection before timing out.

protected override TimeSpan InitialConnectionTimeout { get; }

Property Value

TimeSpan

Methods

CreateDefaultService()

Creates a default instance of the FirefoxDriverService.

public static FirefoxDriverService CreateDefaultService()

Returns

FirefoxDriverService

A FirefoxDriverService that implements default settings.

CreateDefaultService(string)

Creates a default instance of the FirefoxDriverService using a specified path to the Firefox driver executable.

public static FirefoxDriverService CreateDefaultService(string driverPath)

Parameters

driverPath string

The directory containing the Firefox driver executable.

Returns

FirefoxDriverService

A FirefoxDriverService using a random port.

CreateDefaultService(string, string)

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

public static FirefoxDriverService CreateDefaultService(string driverPath, string driverExecutableFileName)

Parameters

driverPath string

The directory containing the Firefox driver executable.

driverExecutableFileName string

The name of th Firefox driver executable file.

Returns

FirefoxDriverService

A FirefoxDriverService using a random port.