suspend inline fun <T> ChromeBrowserSession.use(block: (ChromeBrowserSession) -> T): T
Performs the given operation in this session and closes the web socket connection.
Note: This effectively closes every session based on the same web socket connection.
suspend inline fun <T> ChromePageSession.use(block: (ChromePageSession) -> T): T
Performs the given operation in this session and closes the target.
This preserves the underlying web socket connection (of the parent browser session), because it could be used by other page sessions.