newTab

suspend fun newTab(url: String = "about:blank"): ChromeDPTarget(source)

Deprecated

Prefer richer API via web socket

Replace with

import org.hildan.chrome.devtools.sessions.newPage
import org.hildan.chrome.devtools.sessions.goto
webSocket().newPage().goto(url)

Opens a new tab, and returns the websocket target data for the new tab.