Table of Contents

Class Response

Namespace
OpenQA.Selenium.Remote
Assembly
WebDriver.dll

Handles reponses from the browser

public class Response
Inheritance
Response
Inherited Members

Constructors

Response()

Initializes a new instance of the Response class

public Response()

Response(SessionId)

Initializes a new instance of the Response class

public Response(SessionId sessionId)

Parameters

sessionId SessionId

Session ID in use

Properties

SessionId

Gets or sets the session ID.

public string SessionId { get; set; }

Property Value

string

Status

Gets or sets the status value of the response.

public WebDriverResult Status { get; set; }

Property Value

WebDriverResult

Value

Gets or sets the value from JSON.

public object Value { get; set; }

Property Value

object

Methods

FromJson(string)

Returns a new Response from a JSON-encoded string.

public static Response FromJson(string value)

Parameters

value string

The JSON string to deserialize into a Response.

Returns

Response

A Response object described by the JSON string.

FromJson(string, int)

Returns a new Response from a JSON-encoded string.

public static Response FromJson(string value, int protocolSpecLevel)

Parameters

value string

The JSON string to deserialize into a Response.

protocolSpecLevel int

The specification level of the protocol from which to create the response.

Returns

Response

A Response object described by the JSON string.

ToJson()

Returns this object as a JSON-encoded string.

public string ToJson()

Returns

string

A JSON-encoded string representing this Response object.

ToString()

Returns the object as a string.

public override string ToString()

Returns

string

A string with the Session ID, status value, and the value from JSON.