-
public final class ChromeDPTarget
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.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
id
private final String
title
private final String
type
private final String
description
private final String
devtoolsFrontendUrl
private final String
webSocketDebuggerUrl
-
Method Summary
Modifier and Type Method Description final String
getId()
final String
getTitle()
final String
getType()
final String
getDescription()
final String
getDevtoolsFrontendUrl()
final String
getWebSocketDebuggerUrl()
final ChromePageSession
attach(WebSocketClient webSocketClient)
Attaches to this target via a new web socket connection to this target's debugger URL. -
-
Method Detail
-
getDescription
final String getDescription()
-
getDevtoolsFrontendUrl
final String getDevtoolsFrontendUrl()
-
getWebSocketDebuggerUrl
final String getWebSocketDebuggerUrl()
-
attach
@Deprecated(message = this method provides no way of closing the created websocket connection, prefer using ChromeDPClient.webSocket and using the richer websocket API to interact with targets (ChromeBrowserSession.target)) final ChromePageSession attach(WebSocketClient webSocketClient)
Attaches to this target via a new web socket connection to this target's debugger URL. This establishes a new protocol session to this target.
-
-
-
-