puppeteer/new-docs/puppeteer.protocol.target.md
2020-07-13 14:01:35 +01:00

3.9 KiB

Home > puppeteer > Protocol > Target

Protocol.Target namespace

Supports additional targets discovery and allows to attach to them.

Signature:

export namespace Target 

Interfaces

Interface Description
ActivateTargetRequest
AttachedToTargetEvent Issued when attached to target because of auto-attach or attachToTarget command.
AttachToBrowserTargetResponse
AttachToTargetRequest
AttachToTargetResponse
CloseTargetRequest
CloseTargetResponse
CreateBrowserContextRequest
CreateBrowserContextResponse
CreateTargetRequest
CreateTargetResponse
DetachedFromTargetEvent Issued 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.
DetachFromTargetRequest
DisposeBrowserContextRequest
ExposeDevToolsProtocolRequest
GetBrowserContextsResponse
GetTargetInfoRequest
GetTargetInfoResponse
GetTargetsResponse
ReceivedMessageFromTargetEvent Notifies about a new protocol message received from the session (as reported in attachedToTarget event).
RemoteLocation
SendMessageToTargetRequest
SetAutoAttachRequest
SetDiscoverTargetsRequest
SetRemoteLocationsRequest
TargetCrashedEvent Issued when a target has crashed.
TargetCreatedEvent Issued when a possible inspection target is created.
TargetDestroyedEvent Issued when a target is destroyed.
TargetInfo
TargetInfoChangedEvent Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.

Type Aliases

Type Alias Description
SessionID Unique identifier of attached debugging session.
TargetID