Class HttpCommandExecutor
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
UriAddress of the WebDriver Server
timeout
TimeSpanThe 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
UriAddress of the WebDriver Server
timeout
TimeSpanThe timeout within which the server must respond.
enableKeepAlive
booltrue 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
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
Execute(Command)
Executes a command
public virtual Response Execute(Command commandToExecute)
Parameters
commandToExecute
CommandThe 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
SendingRemoteHttpRequestEventArgsA SendingRemoteHttpRequestEventArgs that contains the event data.
Events
SendingRemoteHttpRequest
public event EventHandler<SendingRemoteHttpRequestEventArgs> SendingRemoteHttpRequest