Package-level declarations

Types

Link copied to clipboard

A session created when attaching to a target of type AuctionWorklet.

Link copied to clipboard

A browser session. This is the root session created when initially connecting to the browser's debugger.

Link copied to clipboard

A target session that is a child of a browser session, usually created when attaching to a target from the root browser session.

Link copied to clipboard
interface ChromeSession

A Chrome DevTools debugging session, created when attaching to a target.

Link copied to clipboard
abstract class GotoCompletionEvent

An event that a goto call can await before considering the navigation complete.

Link copied to clipboard

Defines properties that can be customized when navigating a page using goto.

Link copied to clipboard
class NavigationFailed(val request: NavigateRequest, val response: NavigateResponse) : Exception

Thrown to indicate that the navigation to a page has failed.

Link copied to clipboard

Defines properties that can be customized when creating a new page.

Link copied to clipboard

A session created when attaching to a target of type Page.

Link copied to clipboard

A session created when attaching to a target of type ServiceWorker.

Link copied to clipboard
interface SessionMetaData

Info about a session and its underlying target.

Link copied to clipboard

A session created when attaching to a target of type SharedStorageWorklet.

Link copied to clipboard

A session created when attaching to a target of type SharedWorker.

Link copied to clipboard

A session created when attaching to a target of type WebContents.

Link copied to clipboard

A session created when attaching to a target of type Worker.

Link copied to clipboard

A session created when attaching to a target of type Worklet.

Functions

Link copied to clipboard

Adapts this ChildSession to a AuctionWorkletSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a PageSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a ServiceWorkerSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a SharedStorageWorkletSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a SharedWorkerSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a WebContentsSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a WorkerSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Adapts this ChildSession to a WorkletSession. If the attached target is not of a compatible type, this function throws an exception.

Link copied to clipboard

Finds page targets that were opened by this page.

Link copied to clipboard
suspend fun PageSession.goto(url: String, configure: GotoConfigBuilder.() -> Unit = {})

Navigates the current page to the provided url, and suspends until the configured completion events are fired. By default, this function suspends until the GotoCompletionEvent.Load event is fired.

Link copied to clipboard
suspend fun BrowserSession.newPage(configure: NewPageConfigBuilder.() -> Unit = {}): PageSession

Creates a new page and attaches to it, then returns the new child PageSession. The underlying web socket connection of this BrowserSession is reused for the new child PageSession.

Link copied to clipboard
inline suspend fun <S : ChildSession, T> S.use(block: (S) -> T): T

Performs the given operation in this ChildSession and closes this session and its children, as well as the corresponding targets.

inline suspend fun <T> BrowserSession.use(block: (BrowserSession) -> T): T

Performs the given operation in this session and closes the web socket connection.