Table of Contents

Interface ICommandExecutor

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides a way to send commands to the remote server

public interface ICommandExecutor : IDisposable
Inherited Members

Methods

Execute(Command)

Executes a command

Response Execute(Command commandToExecute)

Parameters

commandToExecute Command

The command you wish to execute

Returns

Response

A response from the browser

ExecuteAsync(Command)

Executes a command as an asynchronous task.

Task<Response> ExecuteAsync(Command commandToExecute)

Parameters

commandToExecute Command

The command you wish to execute

Returns

Task<Response>

A task object representing the asynchronous operation

TryAddCommand(string, CommandInfo)

Attempts to add a command to the repository of commands known to this executor.

bool TryAddCommand(string commandName, CommandInfo info)

Parameters

commandName string

The name of the command to attempt to add.

info CommandInfo

The CommandInfo describing the commnd to add.

Returns

bool

true if the new command has been added successfully; otherwise, false.