Class ContextCreatedEventArgs
- Namespace
- WebDriverBiDi.BrowsingContext
- Assembly
- WebDriverBiDi.dll
Object containing event data for the browsingContext.contextCreated event.
public record ContextCreatedEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<ContextCreatedEventArgs>
- Inheritance
-
ContextCreatedEventArgs
- Implements
- Inherited Members
Constructors
ContextCreatedEventArgs(ContextCreatedEventArgs)
protected ContextCreatedEventArgs(ContextCreatedEventArgs original)
Parameters
originalContextCreatedEventArgs
ContextCreatedEventArgs(ContextCreatedEventData)
Initializes a new instance of the ContextCreatedEventArgs class.
public ContextCreatedEventArgs(ContextCreatedEventData info)
Parameters
infoContextCreatedEventDataThe ContextCreatedEventData describing the created browsing context.
Properties
BrowsingContextId
Gets the browsing context ID of the browsing context.
public string BrowsingContextId { get; }
Property Value
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
ClientWindowId
Gets the ID of the client window of this browsing context.
public string ClientWindowId { get; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
HasPlannedNavigation
Gets a value indicating whether the browsing context will navigate after this event is raised.
public bool? HasPlannedNavigation { get; }
Property Value
- bool?
OriginalOpener
Gets the browsing context ID of the original opener of this browsing context.
public string? OriginalOpener { get; }
Property Value
Parent
Gets the browsing context ID of the parent browsing context.
public string? Parent { get; }
Property Value
Url
Gets the current URL of the browsing context.
public string Url { get; }
Property Value
UserContextId
Gets the user context ID of the browsing context.
public string UserContextId { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ContextCreatedEventArgs?)
public virtual bool Equals(ContextCreatedEventArgs? other)
Parameters
otherContextCreatedEventArgs
Returns
Equals(WebDriverBiDiEventArgs?)
public override sealed bool Equals(WebDriverBiDiEventArgs? other)
Parameters
otherWebDriverBiDiEventArgs
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ContextCreatedEventArgs?, ContextCreatedEventArgs?)
public static bool operator ==(ContextCreatedEventArgs? left, ContextCreatedEventArgs? right)
Parameters
leftContextCreatedEventArgsrightContextCreatedEventArgs
Returns
operator !=(ContextCreatedEventArgs?, ContextCreatedEventArgs?)
public static bool operator !=(ContextCreatedEventArgs? left, ContextCreatedEventArgs? right)
Parameters
leftContextCreatedEventArgsrightContextCreatedEventArgs