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

CreateWebRequest(Uri, Command)

Creates a web request for your command

public HttpWebRequest CreateWebRequest(Uri baseUri, Command commandToExecute)

Parameters

baseUri Uri

Uri that will have the command run against

commandToExecute Command

Command to execute

Returns

HttpWebRequest

A web request of what has been run