class ChromePageSession : AbstractTargetSession, RenderFrameTarget
A page session, usually created when attaching to a page from the root browser session.
metaData |
Info about the underlying page target. val metaData: ChromePageMetaData |
parent |
The parent session which created this page target. val parent: ChromeBrowserSession |
close |
Closes this page session. suspend fun close(): Unit |
detach |
Detaches from this page session, leaving the tab open. suspend fun detach(): Unit |
getTargetInfo |
Retrieves information about this session's page target. suspend fun ChromePageSession.getTargetInfo(): TargetInfo |
navigateAndAwaitPageLoad |
Navigates the current page according to the provided url, and suspends until the corresponding
suspend fun ChromePageSession.navigateAndAwaitPageLoad(: String): Unit
Navigates the current page according to the provided navigateRequest, and suspends until the
corresponding suspend fun ChromePageSession.navigateAndAwaitPageLoad(: NavigateRequest): Unit |
use |
Performs the given operation in this session and closes the target. suspend fun <T> ChromePageSession.use(block: (ChromePageSession) -> T): T |