pl.wendigo.chrome.targets

Package pl.wendigo.chrome.targets

Targets management related classes (Manager, TargetSession)

Types

Manager

class Manager : Closeable

Manager is responsible for querying, creating, closing, attaching to debuggable targets on the browser side.

SessionTarget

data class SessionTarget

SessionTarget represents session we are currently connected to.

Target

class Target : DevToolsProtocol, AutoCloseable, Closeable

Represents browser Target that can be controlled via DevTools Protocol API

Functions

isPage

fun TargetInfo.isPage(): Boolean

Returns true if TargetInfo represents page.

toTarget

fun TargetInfo.toTarget(sessionId: SessionID): SessionTarget

Converts TargetInfo to SessionTarget for given sessionID