Handles responses from the browser
Response
Initializes a new instance of the Response class
public Response(string? sessionId, object? value, WebDriverResult status)
Parameters
sessionId
string
The Session ID in use, if any.
value
object
The JSON payload of the response.
status
WebDriverResult
The WebDriver result status of the response.
Gets or sets the session ID.
public string? SessionId { get; }
Property Value
Gets or sets the status value of the response.
public WebDriverResult Status { get; }
Property Value
Gets or sets the value from JSON.
public object? Value { get; }
Property Value
Returns a new Response from a JSON-encoded string.
public static Response FromErrorJson(string value)
Parameters
value
string
The JSON string to deserialize into a Response.
A Response object described by the JSON string.
If value
is null.
If value
is not a valid JSON object.
If the JSON dictionary is not in the expected state, per spec.
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.
A Response object described by the JSON string.
If value
is null.
If value
is not a valid JSON object.
Returns this object as a JSON-encoded string.
ReturnsA JSON-encoded string representing this Response object.
Returns the object as a string.
public override string ToString()
Returns
A string with the Session ID, status value, and the value from JSON.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4