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
originalBrowsingContextInfo
Properties
BrowsingContextId
Gets the ID of the browsing context.
[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }
Property Value
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
ClientWindowId
Gets the ID of the client window that contains this browsing context.
[JsonPropertyName("clientWindow")]
[JsonRequired]
[JsonInclude]
public string ClientWindowId { get; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
OriginalOpener
Gets the browsing context ID of the original opener of this browsing context.
[JsonPropertyName("originalOpener")]
[JsonRequired]
[JsonInclude]
public string? OriginalOpener { get; }
Property Value
Parent
Gets the ID of the parent browsing context of this browsing context.
[JsonPropertyName("parent")]
[JsonInclude]
public string? Parent { get; }
Property Value
Url
Gets the URL of the browsing context.
[JsonPropertyName("url")]
[JsonRequired]
[JsonInclude]
public string Url { get; }
Property Value
UserContextId
Gets the ID of the user context of the browsing context.
[JsonPropertyName("userContext")]
[JsonRequired]
[JsonInclude]
public string UserContextId { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BrowsingContextInfo?)
public virtual bool Equals(BrowsingContextInfo? other)
Parameters
otherBrowsingContextInfo
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BrowsingContextInfo?, BrowsingContextInfo?)
public static bool operator ==(BrowsingContextInfo? left, BrowsingContextInfo? right)
Parameters
leftBrowsingContextInforightBrowsingContextInfo
Returns
operator !=(BrowsingContextInfo?, BrowsingContextInfo?)
public static bool operator !=(BrowsingContextInfo? left, BrowsingContextInfo? right)
Parameters
leftBrowsingContextInforightBrowsingContextInfo