Class ContextTarget
- Namespace
- WebDriverBiDi.Script
- Assembly
- WebDriverBiDi.dll
Object representing a script target that is a browsing context.
public record ContextTarget : Target, IEquatable<Target>, IEquatable<ContextTarget>
- Inheritance
-
ContextTarget
- Implements
- Inherited Members
Constructors
ContextTarget(string)
Initializes a new instance of the ContextTarget class.
[JsonConstructor]
public ContextTarget(string browsingContextId)
Parameters
browsingContextIdstringThe ID of the browsing context of the script target.
ContextTarget(ContextTarget)
protected ContextTarget(ContextTarget original)
Parameters
originalContextTarget
Properties
BrowsingContextId
Gets the ID of the browsing context used as a script target.
[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string BrowsingContextId { get; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Sandbox
Gets or sets the name of the sandbox.
[JsonPropertyName("sandbox")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Sandbox { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ContextTarget?)
public virtual bool Equals(ContextTarget? other)
Parameters
otherContextTarget
Returns
Equals(Target?)
public override sealed bool Equals(Target? other)
Parameters
otherTarget
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 ==(ContextTarget?, ContextTarget?)
public static bool operator ==(ContextTarget? left, ContextTarget? right)
Parameters
leftContextTargetrightContextTarget
Returns
operator !=(ContextTarget?, ContextTarget?)
public static bool operator !=(ContextTarget? left, ContextTarget? right)
Parameters
leftContextTargetrightContextTarget