TargetInfo

@Serializable
data class TargetInfo(val targetId: String, val type: String, val title: String, val url: String, val attached: Boolean, val openerId: String? = null, val canAccessOpener: Boolean, val openerFrameId: String? = null, val browserContextId: String? = null, val subtype: String? = null)

Constructors

Link copied to clipboard
constructor(targetId: String, type: String, title: String, url: String, attached: Boolean, openerId: String? = null, canAccessOpener: Boolean, openerFrameId: String? = null, browserContextId: String? = null, subtype: String? = null)

Properties

Link copied to clipboard

Whether the target has an attached client.

Link copied to clipboard
Link copied to clipboard

Whether the target has access to the originating window.

Link copied to clipboard
val openerFrameId: String? = null

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

Link copied to clipboard
val openerId: String? = null

Opener target Id

Link copied to clipboard
val subtype: String? = null

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val url: String