pl.wendigo.chrome / Browser / Builder

Builder

class Builder (source)

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

Constructors

<init>

Builder()

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

Functions

build

fun build(): Browser

Creates new instance of Browser with configuration passed to builder

incognito

fun incognito(enabled: Boolean): Browser.Builder

Enables incognito mode by default while creating sessions (default: false)

multiplexConnections

fun multiplexConnections(enabled: Boolean): Browser.Builder

Enables Manager to share single, underlying connection to debugger with multiple sessions (default: false)

withAddress

fun withAddress(address: String): Browser.Builder

Sets browser debugger address (default: localhost:8222)

withBlankPage

fun withBlankPage(address: String): Browser.Builder

Sets default blank page location (default: about:blank)

withEventsBufferSize

fun withEventsBufferSize(size: Int): Browser.Builder

Sets frames buffer size for underlying DebuggerFramesStream's reactive replaying subject (default: 128)

withViewportHeight

fun withViewportHeight(height: Int): Browser.Builder

Sets default viewport height while creating sessions (default; 768, min: 100)

withViewportWidth

fun withViewportWidth(width: Int): Browser.Builder

Sets default viewport width while creating sessions (default: 1024, min: 100)