Class Response
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
SessionIdSession ID in use
Properties
SessionId
Gets or sets the session ID.
public string SessionId { get; set; }
Property Value
Status
Gets or sets the status value of the response.
public WebDriverResult Status { get; set; }
Property Value
Value
Gets or sets the value from JSON.
public object Value { get; set; }
Property Value
Methods
FromJson(string)
Returns a new Response from a JSON-encoded string.
public static Response FromJson(string value)
Parameters
Returns
FromJson(string, int)
Returns a new Response from a JSON-encoded string.
public static Response FromJson(string value, int protocolSpecLevel)
Parameters
value
stringThe JSON string to deserialize into a Response.
protocolSpecLevel
intThe specification level of the protocol from which to create the response.
Returns
ToJson()
Returns this object as a JSON-encoded string.
public string ToJson()
Returns
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.