Table of Contents

Class CapabilitiesRequest

Namespace
WebDriverBiDi.Session
Assembly
WebDriverBiDi.dll

Represents the capabilities requested for a session.

public class CapabilitiesRequest
Inheritance
CapabilitiesRequest
Inherited Members

Constructors

CapabilitiesRequest()

public CapabilitiesRequest()

Properties

AlwaysMatch

Gets or sets the set of capabilities that must be matched to create a new session.

[JsonPropertyName("alwaysMatch")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public CapabilityRequest? AlwaysMatch { get; set; }

Property Value

CapabilityRequest

FirstMatch

Gets the list of sets of capabilities any of which may be matched to create a new session.

[JsonIgnore]
public List<CapabilityRequest> FirstMatch { get; }

Property Value

List<CapabilityRequest>

Remarks

The WebDriver BiDi specification states that the firstMatch property is optional, and, when present, can contain zero or more members. However, the remote end algorithm for processing the new session command delegates capability processing to the WebDriver Classic specification's capabilities handling, which returns an error if firstMatch is an empty array. This property will not be sent with the payload if it contains no CapabilityRequest entries.