Table of Contents

Class HttpCommandInfo

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Provides the execution information for a DriverCommand.

public class HttpCommandInfo : CommandInfo, IEquatable<CommandInfo>
Inheritance
HttpCommandInfo
Implements
Inherited Members

Constructors

HttpCommandInfo(string, string)

Initializes a new instance of the HttpCommandInfo class

public HttpCommandInfo(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

CommandIdentifier

Gets the unique identifier for this command within the scope of its protocol definition

public override string CommandIdentifier { get; }

Property Value

string

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.