chrome-devtools-kotlin / org.hildan.chrome.devtools.targets / AbstractTargetSession

AbstractTargetSession

sealed class AbstractTargetSession

A protocol session, created when attached to a target.

Functions

closeWebSocket

Closes the underlying web socket connection, effectively closing every session based on the same web socket connection.

suspend fun closeWebSocket(): Unit

unsafe

Gives access to all domains of the protocol, regardless of the type of this session.

fun unsafe(): AllDomainsTarget

Inheritors

ChromeBrowserSession

A browser session, usually created when initially connecting to the browser's debugger.

class ChromeBrowserSession : AbstractTargetSession, BrowserTarget

ChromePageSession

A page session, usually created when attaching to a page from the root browser session.

class ChromePageSession : AbstractTargetSession, RenderFrameTarget