class Browser : AutoCloseable, Closeable
(source)
Creates new browser that allows querying remote chrome instance for debugging sessions
class Builder
Builder is responsible for setting options and defaults while creating new instance of Browser. |
fun attach(target: TargetInfo): Target
Attaches to existing target creating new session if multiplexed connections is used. |
|
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. |
|
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. |
|
fun targets(): List<TargetInfo>
Lists all targets that can be attached to. |
|
fun toString(): String |
fun builder(): Browser.Builder |