-
public final class ChromeDPTargetTargets 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 Stringidprivate final Stringtitleprivate final Stringtypeprivate final Stringdescriptionprivate final StringdevtoolsFrontendUrlprivate final StringwebSocketDebuggerUrl
-
Method Summary
Modifier and Type Method Description final ChromePageSessionattach(WebSocketClient webSocketClient)Attaches to this target via a new web socket connection to this target's debugger URL. final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final Stringcomponent4()final Stringcomponent5()final Stringcomponent6()final ChromeDPTargetcopy(String id, String title, String type, String description, String devtoolsFrontendUrl, String webSocketDebuggerUrl)final StringgetId()final StringgetTitle()final StringgetType()final StringgetDescription()final StringgetDevtoolsFrontendUrl()final StringgetWebSocketDebuggerUrl()-
-
Method Detail
-
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.
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final String component4()
-
component5
final String component5()
-
component6
final String component6()
-
copy
final ChromeDPTarget copy(String id, String title, String type, String description, String devtoolsFrontendUrl, String webSocketDebuggerUrl)
-
getDescription
final String getDescription()
-
getDevtoolsFrontendUrl
final String getDevtoolsFrontendUrl()
-
getWebSocketDebuggerUrl
final String getWebSocketDebuggerUrl()
-
-
-
-