withPage

fun withPage(action: suspend ChromiumInteraction.Page.() -> Unit)

Starts the browser with a fresh profile, connects to its default page target, runs action against it, and finally kills the browser and cleans the profile up. Blocking call.

Parameters

action

the interaction to perform on the page