Table of Contents

Class TargetInfo

Namespace
Selenium.WebDriver.BiDi.Cdp.Target
Assembly
Selenium.WebDriver.BiDi.Cdp.dll
public sealed record TargetInfo : IEquatable<TargetInfo>
Inheritance
TargetInfo
Implements
Inherited Members

Constructors

TargetInfo(TargetID, string, string, string, bool, bool)

public TargetInfo(TargetID TargetId, string Type, string Title, string Url, bool Attached, bool CanAccessOpener)

Parameters

TargetId TargetID
Type string

List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22

Title string
Url string
Attached bool

Whether the target has an attached client.

CanAccessOpener bool

Whether the target has access to the originating window.

Properties

Attached

Whether the target has an attached client.

public bool Attached { get; init; }

Property Value

bool

BrowserContextId

public BrowserContextID? BrowserContextId { get; init; }

Property Value

BrowserContextID

CanAccessOpener

Whether the target has access to the originating window.

public bool CanAccessOpener { get; init; }

Property Value

bool

EmbedderData

Embedder-specific target metadata. This is only set for targets of type "tab".

public JsonElement? EmbedderData { get; init; }

Property Value

JsonElement?

OpenerFrameId

Frame id of originating window (is only set if target has an opener).

public FrameId? OpenerFrameId { get; init; }

Property Value

FrameId

OpenerId

Opener target Id

public TargetID? OpenerId { get; init; }

Property Value

TargetID

ParentFrameId

Id of the parent frame, present for "iframe" and "worker" targets. For nested workers, this is the "ancestor" frame that created the first worker in the nested chain.

public FrameId? ParentFrameId { get; init; }

Property Value

FrameId

ParentId

Id of the parent target, if any. For example, "iframe" target may have a "page" parent.

public TargetID? ParentId { get; init; }

Property Value

TargetID

Subtype

Provides additional details for specific target types. For example, for the type of "page", this may be set to "prerender".

public string? Subtype { get; init; }

Property Value

string

TargetId

public TargetID TargetId { get; init; }

Property Value

TargetID

Title

public string Title { get; init; }

Property Value

string

Type

public string Type { get; init; }

Property Value

string

Url

public string Url { get; init; }

Property Value

string