Module cdp::target
[−]
[src]
[Experimental] Supports additional targets discovery and allows to attach to them.
Target
Commands
Target.setDiscoverTargets
ExperimentalControls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events.Target.setAutoAttach
ExperimentalControls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets.
Target.setAttachToFrames
ExperimentalTarget.setRemoteLocations
ExperimentalEnables target discovery for the specified locations, when
setDiscoverTargets
was set totrue
.Target.sendMessageToTarget
ExperimentalSends protocol message over session with given id.
Target.getTargetInfo
ExperimentalReturns information about a target.
Target.activateTarget
ExperimentalActivates (focuses) the target.
Target.closeTarget
ExperimentalCloses the target. If the target is a page that gets closed too.
Target.attachToTarget
ExperimentalAttaches to the target with given id.
Target.detachFromTarget
ExperimentalDetaches session with given id.
Target.createBrowserContext
ExperimentalCreates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
Target.disposeBrowserContext
ExperimentalDeletes a BrowserContext, will fail of any open page uses it.
Target.createTarget
ExperimentalCreates a new page.
Target.getTargets
ExperimentalRetrieves a list of available targets.
Events
Target.targetCreated
ExperimentalIssued when a possible inspection target is created.
Target.targetInfoChanged
ExperimentalIssued when some information about a target has changed. This only happens between
targetCreated
andtargetDestroyed
.Target.targetDestroyed
ExperimentalIssued when a target is destroyed.
Target.attachedToTarget
ExperimentalIssued when attached to target because of auto-attach or
attachToTarget
command.Target.detachedFromTarget
ExperimentalIssued when detached from target for any reason (including
detachFromTarget
command). Can be issued multiple times per target if multiple sessions have been attached to it.Target.receivedMessageFromTarget
ExperimentalNotifies about a new protocol message received from the session (as reported in
attachedToTarget
event).
Types
TargetID
ExperimentalSessionID
ExperimentalUnique identifier of attached debugging session.
BrowserContextID
ExperimentalTargetInfo
ExperimentalRemoteLocation
Experimental
Structs
ActivateTargetCommand |
[Experimental] Activates (focuses) the target. |
ActivateTargetResponse |
[Experimental] Activates (focuses) the target. |
AttachToTargetCommand |
[Experimental] Attaches to the target with given id. |
AttachToTargetResponse |
[Experimental] Attaches to the target with given id. |
AttachedToTargetEvent |
[Experimental] Issued when attached to target because of auto-attach or |
CloseTargetCommand |
[Experimental] Closes the target. If the target is a page that gets closed too. |
CloseTargetResponse |
[Experimental] Closes the target. If the target is a page that gets closed too. |
CreateBrowserContextCommand |
[Experimental] Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. |
CreateBrowserContextResponse |
[Experimental] Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. |
CreateTargetCommand |
[Experimental] Creates a new page. |
CreateTargetResponse |
[Experimental] Creates a new page. |
DetachFromTargetCommand |
[Experimental] Detaches session with given id. |
DetachFromTargetResponse |
[Experimental] Detaches session with given id. |
DetachedFromTargetEvent |
[Experimental] Issued when detached from target for any reason (including |
DisposeBrowserContextCommand |
[Experimental] Deletes a BrowserContext, will fail of any open page uses it. |
DisposeBrowserContextResponse |
[Experimental] Deletes a BrowserContext, will fail of any open page uses it. |
GetTargetInfoCommand |
[Experimental] Returns information about a target. |
GetTargetInfoResponse |
[Experimental] Returns information about a target. |
GetTargetsCommand |
[Experimental] Retrieves a list of available targets. |
GetTargetsResponse |
[Experimental] Retrieves a list of available targets. |
ReceivedMessageFromTargetEvent |
[Experimental] Notifies about a new protocol message received from the session (as reported in |
RemoteLocation |
[Experimental] |
SendMessageToTargetCommand |
[Experimental] Sends protocol message over session with given id. |
SendMessageToTargetResponse |
[Experimental] Sends protocol message over session with given id. |
SetAttachToFramesCommand |
[Experimental] |
SetAttachToFramesResponse |
[Experimental] |
SetAutoAttachCommand |
[Experimental] Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. |
SetAutoAttachResponse |
[Experimental] Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. |
SetDiscoverTargetsCommand |
[Experimental] Controls whether to discover available targets and notify via |
SetDiscoverTargetsResponse |
[Experimental] Controls whether to discover available targets and notify via |
SetRemoteLocationsCommand |
[Experimental] Enables target discovery for the specified locations, when |
SetRemoteLocationsResponse |
[Experimental] Enables target discovery for the specified locations, when |
TargetCreatedEvent |
[Experimental] Issued when a possible inspection target is created. |
TargetDestroyedEvent |
[Experimental] Issued when a target is destroyed. |
TargetInfo |
[Experimental] |
TargetInfoChangedEvent |
[Experimental] Issued when some information about a target has changed. This only happens between |
Type Definitions
BrowserContextId |
[Experimental] |
SessionId |
[Experimental] Unique identifier of attached debugging session. |
TargetId |
[Experimental] |