Module cdp::target
[−]
[src]
[Experimental] Supports additional targets discovery and allows to attach to them.
Target
Commands
Target.setDiscoverTargetsExperimentalControls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyedevents.Target.setAutoAttachExperimentalControls 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.setAttachToFramesExperimentalTarget.setRemoteLocationsExperimentalEnables target discovery for the specified locations, when
setDiscoverTargetswas set totrue.Target.sendMessageToTargetExperimentalSends protocol message over session with given id.
Target.getTargetInfoExperimentalReturns information about a target.
Target.activateTargetExperimentalActivates (focuses) the target.
Target.closeTargetExperimentalCloses the target. If the target is a page that gets closed too.
Target.attachToTargetExperimentalAttaches to the target with given id.
Target.detachFromTargetExperimentalDetaches session with given id.
Target.createBrowserContextExperimentalCreates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
Target.disposeBrowserContextExperimentalDeletes a BrowserContext, will fail of any open page uses it.
Target.createTargetExperimentalCreates a new page.
Target.getTargetsExperimentalRetrieves a list of available targets.
Events
Target.targetCreatedExperimentalIssued when a possible inspection target is created.
Target.targetInfoChangedExperimentalIssued when some information about a target has changed. This only happens between
targetCreatedandtargetDestroyed.Target.targetDestroyedExperimentalIssued when a target is destroyed.
Target.attachedToTargetExperimentalIssued when attached to target because of auto-attach or
attachToTargetcommand.Target.detachedFromTargetExperimentalIssued when detached from target for any reason (including
detachFromTargetcommand). Can be issued multiple times per target if multiple sessions have been attached to it.Target.receivedMessageFromTargetExperimentalNotifies about a new protocol message received from the session (as reported in
attachedToTargetevent).
Types
TargetIDExperimentalSessionIDExperimentalUnique identifier of attached debugging session.
BrowserContextIDExperimentalTargetInfoExperimentalRemoteLocationExperimental
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] |