Table of Contents

Class CapabilitiesResult

Namespace
WebDriverBiDi.Session
Assembly
WebDriverBiDi.dll

Object containing the capabilities returned by a new session.

public record CapabilitiesResult : IEquatable<CapabilitiesResult>
Inheritance
CapabilitiesResult
Implements
Inherited Members

Constructors

CapabilitiesResult(CapabilitiesResult)

protected CapabilitiesResult(CapabilitiesResult original)

Parameters

original CapabilitiesResult

Properties

AcceptInsecureCerts

Gets a value indicating whether the browser should accept insecure (self-signed) SSL certificates.

[JsonPropertyName("acceptInsecureCerts")]
[JsonRequired]
[JsonInclude]
public bool AcceptInsecureCerts { get; }

Property Value

bool

AdditionalCapabilities

Gets a read-only dictionary of additional capabilities specified by this session.

[JsonIgnore]
public ReceivedDataDictionary AdditionalCapabilities { get; }

Property Value

ReceivedDataDictionary

BrowserName

Gets the name of the browser.

[JsonPropertyName("browserName")]
[JsonRequired]
[JsonInclude]
public string BrowserName { get; }

Property Value

string

BrowserVersion

Gets the version of the browser.

[JsonPropertyName("browserVersion")]
[JsonRequired]
[JsonInclude]
public string BrowserVersion { get; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

PlatformName

Gets the platform name.

[JsonPropertyName("platformName")]
[JsonRequired]
[JsonInclude]
public string PlatformName { get; }

Property Value

string

Proxy

Gets the proxy used by this session.

[JsonIgnore]
public ProxyConfigurationResult? Proxy { get; }

Property Value

ProxyConfigurationResult

SetWindowRect

Gets a value indicating whether this session supports setting the size of the browser window.

[JsonPropertyName("setWindowRect")]
[JsonRequired]
[JsonInclude]
public bool SetWindowRect { get; }

Property Value

bool

UnhandledPromptBehavior

Gets the behavior of the session for unhandled user prompts.

[JsonIgnore]
public UserPromptHandlerResult? UnhandledPromptBehavior { get; }

Property Value

UserPromptHandlerResult

UserAgent

Gets a value containing the default user agent string for this browser.

[JsonPropertyName("userAgent")]
[JsonRequired]
[JsonInclude]
public string UserAgent { get; }

Property Value

string

WebSocketUrl

Gets a value indicating the WebSocket URL used by this connection.

[JsonPropertyName("webSocketUrl")]
[JsonInclude]
public string? WebSocketUrl { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(CapabilitiesResult?)

public virtual bool Equals(CapabilitiesResult? other)

Parameters

other CapabilitiesResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CapabilitiesResult?, CapabilitiesResult?)

public static bool operator ==(CapabilitiesResult? left, CapabilitiesResult? right)

Parameters

left CapabilitiesResult
right CapabilitiesResult

Returns

bool

operator !=(CapabilitiesResult?, CapabilitiesResult?)

public static bool operator !=(CapabilitiesResult? left, CapabilitiesResult? right)

Parameters

left CapabilitiesResult
right CapabilitiesResult

Returns

bool