Table of Contents

Class ContextDestroyedEventArgs

Namespace
WebDriverBiDi.BrowsingContext
Assembly
WebDriverBiDi.dll

Object containing event data for the browsingContext.contextDestroyed event.

public record ContextDestroyedEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<ContextDestroyedEventArgs>
Inheritance
ContextDestroyedEventArgs
Implements
Inherited Members

Constructors

ContextDestroyedEventArgs(BrowsingContextInfo)

Initializes a new instance of the ContextDestroyedEventArgs class.

public ContextDestroyedEventArgs(BrowsingContextInfo info)

Parameters

info BrowsingContextInfo

The BrowsingContextInfo describing the destroyed browsing context.

ContextDestroyedEventArgs(ContextDestroyedEventArgs)

protected ContextDestroyedEventArgs(ContextDestroyedEventArgs original)

Parameters

original ContextDestroyedEventArgs

Properties

BrowsingContextId

Gets the browsing context ID of the browsing context.

public string BrowsingContextId { get; }

Property Value

string

Children

Gets the list of the child browsing contexts of the browsing context, or null if the child contexts were not enumerated. An empty list means the context was enumerated and has no children.

public IList<BrowsingContextInfo>? Children { get; }

Property Value

IList<BrowsingContextInfo>

ClientWindowId

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

public string ClientWindowId { get; }

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

OriginalOpener

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

public string? OriginalOpener { get; }

Property Value

string

Parent

Gets the browsing context ID of the parent browsing context.

public string? Parent { get; }

Property Value

string

Url

Gets the URL of the browsing context.

public string Url { get; }

Property Value

string

UserContextId

Gets the user context ID of the browsing context.

public string UserContextId { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ContextDestroyedEventArgs?)

public virtual bool Equals(ContextDestroyedEventArgs? other)

Parameters

other ContextDestroyedEventArgs

Returns

bool

Equals(WebDriverBiDiEventArgs?)

public override sealed bool Equals(WebDriverBiDiEventArgs? other)

Parameters

other WebDriverBiDiEventArgs

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

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

Parameters

left ContextDestroyedEventArgs
right ContextDestroyedEventArgs

Returns

bool

operator !=(ContextDestroyedEventArgs?, ContextDestroyedEventArgs?)

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

Parameters

left ContextDestroyedEventArgs
right ContextDestroyedEventArgs

Returns

bool