Expand description
Supports additional targets discovery and allows to attach to them.
Types, command parameters and event payloads for the Target
domain. The method-name constants for the same domain are in
crate::methods.
Structs§
- Activate
Target Params - Activates (focuses) the target.
- Attach
ToBrowser Target Params - Attaches to the browser target, only uses flat sessionId mode.
- Attach
ToBrowser Target Returns - What
Target.attachToBrowserTargetanswers with. - Attach
ToTarget Params - Attaches to the target with given id.
- Attach
ToTarget Returns - What
Target.attachToTargetanswers with. - Attached
ToTarget Event - Issued when attached to target because of auto-attach or
attachToTargetcommand. - 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 previoussetAutoAttachand is also cancelled by subsequentsetAutoAttach. Only available at the Browser target. - Close
Target Params - Closes the target. If the target is a page that gets closed too.
- Close
Target Returns - What
Target.closeTargetanswers with. - Create
Browser Context Params - Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
- Create
Browser Context Returns - What
Target.createBrowserContextanswers with. - Create
Target Params - Creates a new page.
- Create
Target Returns - What
Target.createTargetanswers with. - Detach
From Target Params - Detaches session with given id.
- Detached
From Target Event - Issued when detached from target for any reason (including
detachFromTargetcommand). Can be issued multiple times per target if multiple sessions have been attached to it. - Dispose
Browser Context Params - Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
- Expose
DevTools Protocol Params - Inject object to the target’s main frame that provides a communication
channel with browser target. Injected object will be available as
window\[bindingName\]. The object has the following API: -binding.send(json)- a method to send messages over the remote debugging protocol -binding.onmessage = json =\> handleMessage(json)- a callback that will be called for the protocol notifications and command responses. - Filter
Entry - A filter used by target query/discovery/auto-attach operations.
- GetBrowser
Contexts Params - Returns all browser contexts created with
Target.createBrowserContextmethod. - GetBrowser
Contexts Returns - What
Target.getBrowserContextsanswers with. - GetDev
Tools Target Params - Gets the targetId of the DevTools page target opened for the given target (if any).
- GetDev
Tools Target Returns - What
Target.getDevToolsTargetanswers with. - GetTarget
Info Params - Returns information about a target.
- GetTarget
Info Returns - What
Target.getTargetInfoanswers with. - GetTargets
Params - Retrieves a list of available targets.
- GetTargets
Returns - What
Target.getTargetsanswers with. - Open
DevTools Params - Opens a DevTools window for the target.
- Open
DevTools Returns - What
Target.openDevToolsanswers with. - Received
Message From Target Event - Notifies about a new protocol message received from the session (as
reported in
attachedToTargetevent). - Remote
Location - Experimental: may change without notice.
- Send
Message ToTarget Params - Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.
- SetAuto
Attach Params - Controls whether to automatically attach to new targets which are
considered to be directly related to this one (for example, iframes or
workers). 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
autoAttachRelatedfrom the list of targets to watch for creation of related targets. You might want to call this recursively for auto-attached targets to attach to all available targets. - SetDiscover
Targets Params - Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyedevents. - SetRemote
Locations Params - Enables target discovery for the specified locations, when
setDiscoverTargetswas set totrue. - Target
Crashed Event - Issued when a target has crashed.
- Target
Created Event - Issued when a possible inspection target is created.
- Target
Destroyed Event - Issued when a target is destroyed.
- Target
Info - Target
Info Changed Event - Issued when some information about a target has changed. This only happens
between
targetCreatedandtargetDestroyed.
Enums§
- Window
State - The state of the target window.
Type Aliases§
- Session
Id - Unique identifier of attached debugging session.
- 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
excludefield in the entry. If filter is not specified, the one assumed is [{type: “browser”, exclude: true}, {type: “tab”, exclude: true}, {}] (i.e. include everything butbrowserandtab). - Target
Id