Table of Contents

Class CreateCommandResult

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Result for creating a new browsing context using the browsingContext.create command.

public record CreateCommandResult : CommandResult, IEquatable<CommandResult>, IEquatable<CreateCommandResult>
Inheritance
CreateCommandResult
Implements
Inherited Members

Constructors

CreateCommandResult(CreateCommandResult)

protected CreateCommandResult(CreateCommandResult original)

Parameters

original CreateCommandResult

Properties

BrowsingContextId

Gets the ID of the created browsing context.

[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

UserContextId

Gets the ID of the user context where the browsing context is created.

[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(CreateCommandResult?)

public virtual bool Equals(CreateCommandResult? other)

Parameters

other CreateCommandResult

Returns

bool

Equals(CommandResult?)

public override sealed bool Equals(CommandResult? other)

Parameters

other CommandResult

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CreateCommandResult?, CreateCommandResult?)

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

Parameters

left CreateCommandResult
right CreateCommandResult

Returns

bool

operator !=(CreateCommandResult?, CreateCommandResult?)

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

Parameters

left CreateCommandResult
right CreateCommandResult

Returns

bool