ChromeDPTarget

@Serializable
data class ChromeDPTarget(val id: String, val title: String, val type: String, val description: String, val devtoolsFrontendUrl: String, val webSocketDebuggerUrl: String)(source)

Targets are the parts of the browser that the Chrome DevTools Protocol can interact with. This includes pages, service workers, 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. One way to do it is to connect to Chrome via web socket using ChromeDPClient.webSocket and then using BrowserSession.attachToPage or other attach- methods. The client can then interact with the target using the ChromePageSession.

Constructors

Link copied to clipboard
constructor(id: String, title: String, type: String, description: String, devtoolsFrontendUrl: String, webSocketDebuggerUrl: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The web socket URL to use with HttpClient.chromeWebSocket to connect via the debugger to this target.