pl.wendigo.chrome / Browser

Browser

class Browser : AutoCloseable, Closeable (source)

Creates new browser that allows querying remote chrome instance for debugging sessions

Types

Builder

class Builder

Builder is responsible for setting options and defaults while creating new instance of Browser.

Functions

attach

fun attach(target: TargetInfo): Target

Attaches to existing target creating new session if multiplexed connections is used.

close

fun close(target: Target): Unit

Closes target releasing all resources on the browser side and connections.

fun close(): Unit

Closes session manager and all established connections to debugger.

target

fun target(url: String = options.blankPage, incognito: Boolean = options.incognito, width: Int = options.viewportWidth, height: Int = options.viewportHeight): Target

Creates new target and opens new debugging session via debugging protocol.

targets

fun targets(): List<TargetInfo>

Lists all targets that can be attached to.

toString

fun toString(): String

Companion Object Functions

builder

fun builder(): Browser.Builder