Expand description
Supports additional targets discovery and allows to attach to them.
Structs§
- Activates (focuses) the target. activateTarget
- Activates (focuses) the target. activateTarget
- Attaches to the browser target, only uses flat sessionId mode. attachToBrowserTarget
- Attaches to the browser target, only uses flat sessionId mode. attachToBrowserTarget
- Attaches to the target with given id. attachToTarget
- Attaches to the target with given id. attachToTarget
- 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 - 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 - Closes the target. If the target is a page that gets closed too. closeTarget
- Closes the target. If the target is a page that gets closed too. closeTarget
- Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
- Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
- Creates a new page. createTarget
- Creates a new page. createTarget
- Detaches session with given id. detachFromTarget
- Detaches session with given id. detachFromTarget
- Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. disposeBrowserContext
- Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. disposeBrowserContext
- Issued when attached to target because of auto-attach or
attachToTarget
command. attachedToTarget - 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 - Notifies about a new protocol message received from the session (as reported in
attachedToTarget
event). receivedMessageFromTarget - Issued when a target has crashed. targetCrashed
- Issued when a possible inspection target is created. targetCreated
- Issued when a target is destroyed. targetDestroyed
- Issued when some information about a target has changed. This only happens between
targetCreated
andtargetDestroyed
. targetInfoChanged - Inject object to the target’s main frame that provides a communication channel with browser target.
- Inject object to the target’s main frame that provides a communication channel with browser target.
- A filter used by target query/discovery/auto-attach operations. FilterEntry
- Returns all browser contexts created with
Target.createBrowserContext
method. getBrowserContexts - Returns all browser contexts created with
Target.createBrowserContext
method. getBrowserContexts - Returns information about a target. getTargetInfo
- Returns information about a target. getTargetInfo
- Retrieves a list of available targets. getTargets
- Retrieves a list of available targets. getTargets
- Unique identifier of attached debugging session. SessionID
- 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 - 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 - Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events. setDiscoverTargets - Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyed
events. setDiscoverTargets - Enables target discovery for the specified locations, when
setDiscoverTargets
was set totrue
. setRemoteLocations - Enables target discovery for the specified locations, when
setDiscoverTargets
was set totrue
. setRemoteLocations - 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