Table of Contents

Class FirefoxDriverCommandExecutor

Namespace
OpenQA.Selenium.Firefox
Assembly
WebDriver.dll

Provides a way of executing Commands using the FirefoxDriver.

public class FirefoxDriverCommandExecutor : ICommandExecutor, IDisposable
Inheritance
FirefoxDriverCommandExecutor
Implements
Inherited Members

Constructors

FirefoxDriverCommandExecutor(FirefoxBinary, FirefoxProfile, string, TimeSpan)

Initializes a new instance of the FirefoxDriverCommandExecutor class.

public FirefoxDriverCommandExecutor(FirefoxBinary binary, FirefoxProfile profile, string host, TimeSpan commandTimeout)

Parameters

binary FirefoxBinary

The FirefoxBinary on which to make the connection.

profile FirefoxProfile

The FirefoxProfile creating the connection.

host string

The name of the host on which to connect to the Firefox extension (usually "localhost").

commandTimeout TimeSpan

The maximum amount of time to wait for each command.

Properties

CommandInfoRepository

Gets the repository of objects containin information about commands.

public CommandInfoRepository CommandInfoRepository { get; }

Property Value

CommandInfoRepository

Methods

Dispose()

Releases all resources used by the FirefoxDriverCommandExecutor.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the FirefoxDriverCommandExecutor and optionally releases the managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release managed and resources; false to only release unmanaged resources.

Execute(Command)

Executes a command

public Response Execute(Command commandToExecute)

Parameters

commandToExecute Command

The command you wish to execute

Returns

Response

A response from the browser