C# Class OpenQA.Selenium.Remote.Command

Provides a way to send commands to the remote server
显示文件 Open project: asynchrony/Selenium2 Class Usage Examples

Public Methods

Method Description
Command ( DriverCommand name, string jsonParameters ) : System.Collections.Generic

Initializes a new instance of the Command class using a command name and a JSON-encoded string for the parameters.

Command ( SessionId sessionId, DriverCommand name, object>.Dictionary parameters ) : System.Collections.Generic

Initializes a new instance of the Command class for a Session

ToString ( ) : string

Returns a string of the Command object

Private Methods

Method Description
ConvertParametersFromJson ( string value ) : object>.Dictionary

Gets the command parameters as a Dictionary{K, V}, with a string key, and an object value.

Method Details

Command() public method

Initializes a new instance of the Command class using a command name and a JSON-encoded string for the parameters.
public Command ( DriverCommand name, string jsonParameters ) : System.Collections.Generic
name DriverCommand Name of the command
jsonParameters string Parameters for the command as a JSON-encoded string.
return System.Collections.Generic

Command() public method

Initializes a new instance of the Command class for a Session
public Command ( SessionId sessionId, DriverCommand name, object>.Dictionary parameters ) : System.Collections.Generic
sessionId SessionId Session ID the driver is using
name DriverCommand Name of the command
parameters object>.Dictionary Parameters for that command
return System.Collections.Generic

ToString() public method

Returns a string of the Command object
public ToString ( ) : string
return string