Package-level declarations

Types

Link copied to clipboard

Represents a fictional (unsafe) target with access to all possible domain APIs in all targets. The domains in this target type are not guaranteed to be supported by the debugger server, and runtime errors could occur.

Link copied to clipboard
interface BrowserTarget

Represents the available domain APIs in Browser targets

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface PageTarget

Represents the available domain APIs in Page targets

Link copied to clipboard
Link copied to clipboard

Represents the available domain APIs in ServiceWorker targets

Link copied to clipboard

Represents the available domain APIs in SharedWorker targets

Link copied to clipboard
interface WorkerTarget

Represents the available domain APIs in Worker targets

Functions

Link copied to clipboard
suspend fun BrowserSession.attachToNewPage(url: String = "about:blank", incognito: Boolean = true, width: Int = 1024, height: Int = 768, background: Boolean = false): PageSession
Link copied to clipboard
suspend fun BrowserSession.attachToNewPageAndAwaitPageLoad(url: String, incognito: Boolean = true, width: Int = 1024, height: Int = 768, background: Boolean = false): PageSession
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T> BrowserSession.use(block: (BrowserSession) -> T): T
inline suspend fun <T> PageSession.use(block: (PageSession) -> T): T
Link copied to clipboard
suspend fun BrowserSession.watchTargetsIn(coroutineScope: CoroutineScope): StateFlow<Map<TargetID, TargetInfo>>