Table of Contents

Class TargetInfo

Namespace
OpenQA.Selenium.DevTools
Assembly
WebDriver.dll

Represents information about the target of a DevTools Protocol command

public class TargetInfo
Inheritance
TargetInfo
Inherited Members

Constructors

TargetInfo(string, string, string, string, bool, string?, string?)

Initializes a new instance of the TargetInfo type.

public TargetInfo(string targetId, string type, string title, string url, bool isAttached, string? openerId, string? browserContextId)

Parameters

targetId string

The ID of the target.

type string

The type of target.

title string

The title of the target.

url string

The URL of the target.

isAttached bool

Whether the protocol is attached to the target.

openerId string

The ID of the opener of the target.

browserContextId string

The browser context ID.

Properties

BrowserContextId

Gets the browser context ID.

public string? BrowserContextId { get; }

Property Value

string

IsAttached

Gets a value indicating if the protocol is attached to the target.

public bool IsAttached { get; }

Property Value

bool

OpenerId

Gets the ID of the opener of the target.

public string? OpenerId { get; }

Property Value

string

TargetId

Gets the ID of the target.

public string TargetId { get; }

Property Value

string

Title

Gets the title of the target.

public string Title { get; }

Property Value

string

Type

Gets the type of target.

public string Type { get; }

Property Value

string

Url

Gets the URL of the target.

public string Url { get; }

Property Value

string