Table of Contents

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

browsingContextId string

The ID of the browsing context of the script target.

ContextTarget(ContextTarget)

protected ContextTarget(ContextTarget original)

Parameters

original ContextTarget

Properties

BrowsingContextId

Gets the ID of the browsing context used as a script target.

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

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Sandbox

Gets or sets the name of the sandbox.

[JsonPropertyName("sandbox")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Sandbox { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ContextTarget?)

public virtual bool Equals(ContextTarget? other)

Parameters

other ContextTarget

Returns

bool

Equals(Target?)

public override sealed bool Equals(Target? other)

Parameters

other Target

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

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

Parameters

left ContextTarget
right ContextTarget

Returns

bool

operator !=(ContextTarget?, ContextTarget?)

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

Parameters

left ContextTarget
right ContextTarget

Returns

bool