class Browser : Closeable
(source)
Creates new browser that allows querying remote chrome instance for debugging sessions
Browser(chromeAddress: String, client: OkHttpClient, mapper: FrameMapper)
Creates new browser that allows querying remote chrome instance for debugging sessions |
fun activatePage(page: InspectablePage): String
Activates given page. |
|
fun close(): Unit |
|
fun closePage(page: InspectablePage): String
Closes given page. |
|
fun findPageByUrl(url: String): InspectablePage
Finds opened page by its' url. |
|
fun headlessSession(url: String, eventBufferSize: Int = 128, width: Int = 1024, height: Int = 768): HeadlessDevToolsProtocol
Opens new headless debugging session via chrome debugging protocol. |
|
fun openedPages(): List<InspectablePage>
Returns currently opened pages and associated data (debugger connection uris) |
|
fun openNewPage(url: String? = null): InspectablePage
Opens new page. |
|
fun version(): ProtocolVersion
Fetches protocol version information. |
fun connect(chromeAddress: String): Browser
Creates new Browser instance by connecting to remote chrome debugger. |