C# Class Selenium.Core.RemoteServer

ファイルを表示 Open project: florentbr/SeleniumBasic Class Usage Examples

Public Methods

Method Description
GetSessions ( ) : List

Returns a list of the currently active sessions.

GetStatus ( ) : Dictionary

Query the server's current status.

Send ( RequestMethod method, string relativeUri ) : Dictionary

Sends a request to the server

Send ( RequestMethod method, string relativeUri, Dictionary param ) : Dictionary

Sends a requests with parameters to the server

SendAgain ( ) : Dictionary

Execute again the previous execution

ShutDown ( ) : void

Protected Methods

Method Description
SendRequest ( RequestMethod method, string uri, JSON data ) : Dictionary

Private Methods

Method Description
CreateHttpWebRequest ( RequestMethod method, string url, JSON data ) : HttpWebRequest
FormatRequestMethod ( RequestMethod method ) : string
GetHttpWebResponseContent ( HttpWebResponse response ) : Dictionary
IsJsonResponse ( WebResponse response ) : bool
RemoteServer ( string serverAddress, bool isLocal, int timeout ) : Selenium.Serializer

Method Details

GetSessions() public method

Returns a list of the currently active sessions.
public GetSessions ( ) : List
return List

GetStatus() public method

Query the server's current status.
public GetStatus ( ) : Dictionary
return Dictionary

Send() public method

Sends a request to the server
public Send ( RequestMethod method, string relativeUri ) : Dictionary
method RequestMethod
relativeUri string
return Dictionary

Send() public method

Sends a requests with parameters to the server
public Send ( RequestMethod method, string relativeUri, Dictionary param ) : Dictionary
method RequestMethod
relativeUri string
param Dictionary
return Dictionary

SendAgain() public method

Execute again the previous execution
public SendAgain ( ) : Dictionary
return Dictionary

SendRequest() protected method

protected SendRequest ( RequestMethod method, string uri, JSON data ) : Dictionary
method RequestMethod
uri string
data JSON
return Dictionary

ShutDown() public method

public ShutDown ( ) : void
return void