chrome-devtools-kotlin / org.hildan.chrome.devtools.protocol / ChromeDPTarget / <init>

<init>

ChromeDPTarget(id: String, title: String, type: String, description: String, devtoolsFrontendUrl: String, webSocketDebuggerUrl: String)

Targets are the parts of the browser that the Chrome DevTools Protocol can interact with. This includes for instance pages, serviceworkers and extensions (and also the browser itself).

When a client wants to interact with a target using CDP, it has to first attach to the target using ChromeDPTarget.attach. This will establish a protocol session to the given target. The client can then interact with the target using the ChromePageSession.