Class FirefoxDriverService
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
CommandLineArguments
Gets the command-line arguments for the driver service.
protected override string CommandLineArguments { get; }
Property Value
FirefoxBinaryPath
Gets or sets the location of the Firefox binary executable.
public string FirefoxBinaryPath { get; set; }
Property Value
IgnoreMissingStatusEndPoint
Gets a value indicating whether to ignore the absence of a status end point.
protected override bool IgnoreMissingStatusEndPoint { get; }
Property Value
InitialConnectionTimeout
Gets a value indicating the time to wait for an initial connection before timing out.
protected override TimeSpan InitialConnectionTimeout { get; }
Property Value
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
stringThe 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
stringThe directory containing the Firefox driver executable.
driverExecutableFileName
stringThe name of th Firefox driver executable file.
Returns
- FirefoxDriverService
A FirefoxDriverService using a random port.