chrome-devtools-kotlin / org.hildan.chrome.devtools.protocol / use

use

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

Attaches to this target via a new web socket connection, and performs the given operation before closing the connection.