pl.wendigo.chrome.api.target / TargetInfo

TargetInfo

data class TargetInfo (source)

Link
Target#TargetInfo type documentation.

Constructors

<init>

TargetInfo(targetId: TargetID, type: String, title: String, url: String, attached: Boolean, openerId: TargetID? = null, browserContextId: BrowserContextID? = null)

Properties

attached

val attached: Boolean

Whether the target has an attached client.

browserContextId

val browserContextId: BrowserContextID?

openerId

val openerId: TargetID?

Opener target Id

targetId

val targetId: TargetID

title

val title: String

type

val type: String

url

val url: String

Extension Functions

isPage

fun TargetInfo.isPage(): Boolean

Returns true if TargetInfo represents page.

toTarget

fun TargetInfo.toTarget(sessionId: SessionID): Target

Converts TargetInfo to Target for given sessionID