C# Class OpenQA.Selenium.Remote.Server.CommandHandler

Represents the base class for all command handlers.
显示文件 Open project: jimevans/strontium

Public Methods

Method Description
Execute ( ) : object

Executes this command.

Protected Methods

Method Description
CommandHandler ( string>.Dictionary locatorParameters, object>.Dictionary commandParameters ) : System

Initializes a new instance of the CommandHandler class.

GetCommandParameter ( string parameterName ) : object

Gets a locator parameter from the set of parameters sent in the body of the request and used to operate on the resource.

GetLocatorParameter ( string parameterName ) : string

Gets a locator parameter from the set of parameters used to locate the resource via the URL.

HasCommandParameter ( string parameterName ) : bool

Gets a value indicating whether this command has a parameter in the set of parameters sent in the body of the request.

Method Details

CommandHandler() protected method

Initializes a new instance of the CommandHandler class.
protected CommandHandler ( string>.Dictionary locatorParameters, object>.Dictionary commandParameters ) : System
locatorParameters string>.Dictionary A containing the parameters used to match a resource in the URL.
commandParameters object>.Dictionary A containing the parameters used to operate on the resource.
return System

Execute() public abstract method

Executes this command.
public abstract Execute ( ) : object
return object

GetCommandParameter() protected method

Gets a locator parameter from the set of parameters sent in the body of the request and used to operate on the resource.
Thrown if the parameter is not found in the dictionary of parameters.
protected GetCommandParameter ( string parameterName ) : object
parameterName string The name of the parameter to get the value of.
return object

GetLocatorParameter() protected method

Gets a locator parameter from the set of parameters used to locate the resource via the URL.
Thrown if the parameter is not found in the dictionary of parameters.
protected GetLocatorParameter ( string parameterName ) : string
parameterName string The name of the parameter to get the value of.
return string

HasCommandParameter() protected method

Gets a value indicating whether this command has a parameter in the set of parameters sent in the body of the request.
protected HasCommandParameter ( string parameterName ) : bool
parameterName string The name of the parameter to query the existence of.
return bool