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

navigateAndAwaitPageLoad

suspend fun ChromePageSession.navigateAndAwaitPageLoad(url: String): Unit

Navigates the current page according to the provided url, and suspends until the corresponding frameStoppedLoading event is received.

suspend fun ChromePageSession.navigateAndAwaitPageLoad(navigateRequest: NavigateRequest): Unit

Navigates the current page according to the provided navigateRequest, and suspends until the corresponding frameStoppedLoading event is received.