Table of Contents

Class HttpCommandExecutor

Namespace
OpenQA.Selenium.Remote
Assembly
WebDriver.dll

Provides a way of executing Commands over HTTP

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

Constructors

HttpCommandExecutor(Uri, TimeSpan)

Initializes a new instance of the HttpCommandExecutor class

public HttpCommandExecutor(Uri addressOfRemoteServer, TimeSpan timeout)

Parameters

addressOfRemoteServer Uri

Address of the WebDriver Server

timeout TimeSpan

The timeout within which the server must respond.

HttpCommandExecutor(Uri, TimeSpan, bool)

Initializes a new instance of the HttpCommandExecutor class

public HttpCommandExecutor(Uri addressOfRemoteServer, TimeSpan timeout, bool enableKeepAlive)

Parameters

addressOfRemoteServer Uri

Address of the WebDriver Server

timeout TimeSpan

The timeout within which the server must respond.

enableKeepAlive bool

true if the KeepAlive header should be sent with HTTP requests; otherwise, false.

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 HttpCommandExecutor.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the HttpCommandExecutor 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 virtual Response Execute(Command commandToExecute)

Parameters

commandToExecute Command

The command you wish to execute

Returns

Response

A response from the browser

OnSendingRemoteHttpRequest(SendingRemoteHttpRequestEventArgs)

Raises the SendingRemoteHttpRequest event.

protected virtual void OnSendingRemoteHttpRequest(SendingRemoteHttpRequestEventArgs eventArgs)

Parameters

eventArgs SendingRemoteHttpRequestEventArgs

A SendingRemoteHttpRequestEventArgs that contains the event data.

Events

SendingRemoteHttpRequest

public event EventHandler<SendingRemoteHttpRequestEventArgs> SendingRemoteHttpRequest

Event Type

EventHandler<SendingRemoteHttpRequestEventArgs>