class Browser
(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 activate(page: InspectablePage): String
Activates given page. |
|
fun close(page: InspectablePage): String
Closes given page. |
|
fun findTab(tabUrl: String): InspectablePage
Finds opened page by its' url. |
|
fun headlessSession(url: String, eventBufferSize: Int = 128, width: Int = 1024, height: Int = 768): HeadlessChromeProtocol
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. |