pl.wendigo.chrome

Package pl.wendigo.chrome

Contains library main API (Browser and DevToolsProtocol)

Types

Browser

class Browser : AutoCloseable, Closeable

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

DevToolsProtocol

open class DevToolsProtocol : Closeable

DevToolsProtocol represents all operations on all domains that can be issued to control Chrome via DevTools Protocol.

Exceptions

BrowserInfoDiscoveryFailedException

class BrowserInfoDiscoveryFailedException : RuntimeException

BrowserInfoDiscoveryFailedException is thrown when there's no possibility to query browser for debugger websocket endpoint.

Type Aliases

FlowableBlock

typealias FlowableBlock<T> = () -> Flowable<T>

SingleBlock

typealias SingleBlock<T> = () -> Single<T>

Functions

await

fun <T : Any> await(block: SingleBlock<T>): T

awaitMany

fun <T> awaitMany(block: FlowableBlock<T>): List<T>