Expand description
Supports additional targets discovery and allows to attach to them.
Structs§
- Activate
Target Params - Activates (focuses) the target. activateTarget
- Activate
Target Params Builder - Activate
Target Returns - Activates (focuses) the target. activateTarget
- Attach
ToBrowser Target Params - Attaches to the browser target, only uses flat sessionId mode. attachToBrowserTarget
- Attach
ToBrowser Target Returns - Attaches to the browser target, only uses flat sessionId mode. attachToBrowserTarget
- Attach
ToBrowser Target Returns Builder - Attach
ToTarget Params - Attaches to the target with given id. attachToTarget
- Attach
ToTarget Params Builder - Attach
ToTarget Returns - Attaches to the target with given id. attachToTarget
- Attach
ToTarget Returns Builder - Auto
Attach Related Params - Adds the specified target to the list of targets that will be monitored for any related target
creation (such as child frames, child workers and new versions of service worker) and reported
through
attachedToTarget
. The specified target is also auto-attached. This cancels the effect of any previoussetAutoAttach
and is also cancelled by subsequentsetAutoAttach
. Only available at the Browser target. autoAttachRelated - Auto
Attach Related Params Builder - Auto
Attach Related Returns - Adds the specified target to the list of targets that will be monitored for any related target
creation (such as child frames, child workers and new versions of service worker) and reported
through
attachedToTarget
. The specified target is also auto-attached. This cancels the effect of any previoussetAutoAttach
and is also cancelled by subsequentsetAutoAttach
. Only available at the Browser target. autoAttachRelated - Close
Target Params - Closes the target. If the target is a page that gets closed too. closeTarget
- Close
Target Params Builder - Close
Target Returns - Closes the target. If the target is a page that gets closed too. closeTarget
- Create
Browser Context Params - Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
- Create
Browser Context Params Builder - Create
Browser Context Returns - Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
- Create
Browser Context Returns Builder - Create
Target Params - Creates a new page. createTarget
- Create
Target Params Builder - Create
Target Returns - Creates a new page. createTarget
- Create
Target Returns Builder - Detach
From Target Params - Detaches session with given id. detachFromTarget
- Detach
From Target Params Builder - Detach
From Target Returns - Detaches session with given id. detachFromTarget
- Dispose
Browser Context Params - Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. disposeBrowserContext
- Dispose
Browser Context Params Builder - Dispose
Browser Context Returns - Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. disposeBrowserContext
- Event
Attached ToTarget - Issued when attached to target because of auto-attach or
attachToTarget
command. attachedToTarget - Event
Detached From Target - 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. detachedFromTarget - Event
Received Message From Target - Notifies about a new protocol message received from the session (as reported in
attachedToTarget
event). receivedMessageFromTarget - Event
Target Crashed - Issued when a target has crashed. targetCrashed
- Event
Target Created - Issued when a possible inspection target is created. targetCreated
- Event
Target Destroyed - Issued when a target is destroyed. targetDestroyed
- Event
Target Info Changed - Issued when some information about a target has changed. This only happens between
targetCreated
andtargetDestroyed
. targetInfoChanged - Expose
DevTools Protocol Params - Inject object to the target’s main frame that provides a communication channel with browser target.
- Expose
DevTools Protocol Params Builder - Expose
DevTools Protocol Returns - Inject object to the target’s main frame that provides a communication channel with browser target.
- Filter
Entry - A filter used by target query/discovery/auto-attach operations. FilterEntry
- Filter
Entry Builder - GetBrowser
Contexts Params - Returns all browser contexts created with
Target.createBrowserContext
method. getBrowserContexts - GetBrowser
Contexts Returns - Returns all browser contexts created with
Target.createBrowserContext
method. getBrowserContexts - GetBrowser
Contexts Returns Builder - GetTarget
Info Params - Returns information about a target. getTargetInfo
- GetTarget
Info Params Builder - GetTarget
Info Returns - Returns information about a target. getTargetInfo
- GetTarget
Info Returns Builder - GetTargets
Params - Retrieves a list of available targets. getTargets
- GetTargets
Params Builder - GetTargets
Returns - Retrieves a list of available targets. getTargets
- GetTargets
Returns Builder - Remote
Location - Remote
Location Builder - Session
Id - Unique identifier of attached debugging session. SessionID
- SetAuto
Attach Params - 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.
This also clears all targets added by
autoAttachRelated
from the list of targets to watch for creation of related targets. setAutoAttach - SetAuto
Attach Params Builder - SetAuto
Attach Returns - 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.
This also clears all targets added by
autoAttachRelated
from the list of targets to watch for creation of related targets. setAutoAttach - SetDiscover
Targets Params - Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events. setDiscoverTargets - SetDiscover
Targets Params Builder - SetDiscover
Targets Returns - Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events. setDiscoverTargets - SetRemote
Locations Params - Enables target discovery for the specified locations, when
setDiscoverTargets
was set totrue
. setRemoteLocations - SetRemote
Locations Params Builder - SetRemote
Locations Returns - Enables target discovery for the specified locations, when
setDiscoverTargets
was set totrue
. setRemoteLocations - Target
Filter - The entries in TargetFilter are matched sequentially against targets and
the first entry that matches determines if the target is included or not,
depending on the value of
exclude
field in the entry. If filter is not specified, the one assumed is [{type: “browser”, exclude: true}, {type: “tab”, exclude: true}, {}] (i.e. include everything butbrowser
andtab
). TargetFilter - Target
Id - Target
Info - Target
Info Builder