TargetInfo

data class TargetInfo(targetId: TargetID, type: String, title: String, url: String, attached: Boolean, openerId: TargetID?, canAccessOpener: Boolean, openerFrameId: FrameId?, browserContextId: BrowserContextID?)

Constructors

TargetInfo
Link copied to clipboard
fun TargetInfo(targetId: TargetID, type: String, title: String, url: String, attached: Boolean, openerId: TargetID? = null, canAccessOpener: Boolean, openerFrameId: FrameId? = null, browserContextId: BrowserContextID? = null)

Properties

attached
Link copied to clipboard
val attached: Boolean
Whether the target has an attached client.
browserContextId
Link copied to clipboard
val browserContextId: BrowserContextID? = null
canAccessOpener
Link copied to clipboard
val canAccessOpener: Boolean
Whether the target has access to the originating window.
openerFrameId
Link copied to clipboard
val openerFrameId: FrameId? = null
Frame id of originating window (is only set if target has an opener).
openerId
Link copied to clipboard
val openerId: TargetID? = null
Opener target Id
targetId
Link copied to clipboard
val targetId: TargetID
title
Link copied to clipboard
val title: String
type
Link copied to clipboard
val type: String
url
Link copied to clipboard
val url: String

Extensions

isPage
Link copied to clipboard
fun TargetInfo.isPage(): Boolean
Returns true if TargetInfo represents page.
toTarget
Link copied to clipboard
fun TargetInfo.toTarget(sessionId: SessionID): SessionTarget
Converts TargetInfo to SessionTarget for given sessionID

Sources

jvm source
Link copied to clipboard