Table of Contents

Class BrowsingContextInfo

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Provides information about a browsing context.

public record BrowsingContextInfo : IEquatable<BrowsingContextInfo>
Inheritance
BrowsingContextInfo
Implements
Derived
Inherited Members

Constructors

BrowsingContextInfo(BrowsingContextInfo)

protected BrowsingContextInfo(BrowsingContextInfo original)

Parameters

original BrowsingContextInfo

Properties

BrowsingContextId

Gets the ID of the browsing context.

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

Property Value

string

Children

Gets the read-only list of child browsing contexts for this browsing context, or null if the child contexts were not enumerated. The protocol returns null when the tree is not walked to this depth, such as in a browsingContext.contextCreated event or a browsingContext.getTree command with a maximum depth of zero. An empty list, by contrast, means the context was enumerated and has no children.

[JsonIgnore]
public IList<BrowsingContextInfo>? Children { get; }

Property Value

IList<BrowsingContextInfo>

ClientWindowId

Gets the ID of the client window that contains this browsing context.

[JsonPropertyName("clientWindow")]
[JsonRequired]
[JsonInclude]
public string ClientWindowId { get; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

OriginalOpener

Gets the browsing context ID of the original opener of this browsing context.

[JsonPropertyName("originalOpener")]
[JsonRequired]
[JsonInclude]
public string? OriginalOpener { get; }

Property Value

string

Parent

Gets the ID of the parent browsing context of this browsing context.

[JsonPropertyName("parent")]
[JsonInclude]
public string? Parent { get; }

Property Value

string

Url

Gets the URL of the browsing context.

[JsonPropertyName("url")]
[JsonRequired]
[JsonInclude]
public string Url { get; }

Property Value

string

UserContextId

Gets the ID of the user context of the browsing context.

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

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BrowsingContextInfo?)

public virtual bool Equals(BrowsingContextInfo? other)

Parameters

other BrowsingContextInfo

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 ==(BrowsingContextInfo?, BrowsingContextInfo?)

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

Parameters

left BrowsingContextInfo
right BrowsingContextInfo

Returns

bool

operator !=(BrowsingContextInfo?, BrowsingContextInfo?)

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

Parameters

left BrowsingContextInfo
right BrowsingContextInfo

Returns

bool