A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://seleniumhq.github.io/selenium/docs/api/dotnet/webdriver/OpenQA.Selenium.Response.html below:

Class Response

Class Response
Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Handles responses from the browser

Inheritance

Response

Inherited Members
Constructors Response(string?, object?, WebDriverResult)

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.

Properties SessionId

Gets or sets the session ID.

public string? SessionId { get; }
Property Value
string
Status

Gets or sets the status value of the response.

public WebDriverResult Status { get; }
Property Value
WebDriverResult
Value

Gets or sets the value from JSON.

public object? Value { get; }
Property Value
object
Methods FromErrorJson(string)

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.

Returns
Response

A Response object described by the JSON string.

Exceptions
ArgumentNullException

If value is null.

JsonException

If value is not a valid JSON object.

WebDriverException

If the JSON dictionary is not in the expected state, per spec.

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.

Exceptions
ArgumentNullException

If value is null.

JsonException

If value is not a valid JSON object.

ToJson()

Returns this object as a JSON-encoded string.

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.


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