Table of Contents

Class TargetInfo

Namespace
OpenQA.Selenium.DevTools.V150.Target
Assembly
Selenium.WebDriver.dll

TargetInfo

public sealed class TargetInfo
Inheritance
TargetInfo
Inherited Members

Properties

Attached

Whether the target has an attached client.

[JsonPropertyName("attached")]
public bool Attached { get; set; }

Property Value

bool

BrowserContextId

browserContextId

[JsonPropertyName("browserContextId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? BrowserContextId { get; set; }

Property Value

string

CanAccessOpener

Whether the target has access to the originating window.

[JsonPropertyName("canAccessOpener")]
public bool CanAccessOpener { get; set; }

Property Value

bool

EmbedderData

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

[JsonPropertyName("embedderData")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public object? EmbedderData { get; set; }

Property Value

object

OpenerFrameId

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

[JsonPropertyName("openerFrameId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? OpenerFrameId { get; set; }

Property Value

string

OpenerId

Opener target Id

[JsonPropertyName("openerId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? OpenerId { get; set; }

Property Value

string

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.

[JsonPropertyName("parentFrameId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ParentFrameId { get; set; }

Property Value

string

ParentId

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

[JsonPropertyName("parentId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ParentId { get; set; }

Property Value

string

Subtype

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

[JsonPropertyName("subtype")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Subtype { get; set; }

Property Value

string

TargetId

targetId

[JsonPropertyName("targetId")]
public string TargetId { get; set; }

Property Value

string

Title

title

[JsonPropertyName("title")]
public string Title { get; set; }

Property Value

string

Type

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

string

Url

url

[JsonPropertyName("url")]
public string Url { get; set; }

Property Value

string