Table of Contents

Class CommandInfo

Namespace
OpenQA.Selenium.Remote
Assembly
WebDriver.dll

Provides the execution information for a DriverCommand.

public class CommandInfo
Inheritance
CommandInfo
Inherited Members

Constructors

CommandInfo(string, string)

Initializes a new instance of the CommandInfo class

public CommandInfo(string method, string resourcePath)

Parameters

method string

Method of the Command

resourcePath string

Relative URL path to the resource used to execute the command

Fields

DeleteCommand

DELETE verb for the command info

public const string DeleteCommand = "DELETE"

Field Value

string

GetCommand

GET verb for the command info

public const string GetCommand = "GET"

Field Value

string

PostCommand

POST verb for the command info

public const string PostCommand = "POST"

Field Value

string

Properties

Method

Gets the HTTP method associated with the command.

public string Method { get; }

Property Value

string

ResourcePath

Gets the URL representing the path to the resource.

public string ResourcePath { get; }

Property Value

string

Methods

CreateCommandUri(Uri, Command)

Creates the full URI associated with this command, substituting command parameters for tokens in the URI template.

public Uri CreateCommandUri(Uri baseUri, Command commandToExecute)

Parameters

baseUri Uri

The base URI associated with the command.

commandToExecute Command

The command containing the parameters with which to substitute the tokens in the template.

Returns

Uri

The full URI for the command, with the parameters of the command substituted for the tokens in the template.