Expand description
Supports additional targets discovery and allows to attach to them.
Method names for the Target domain, for use with
CdpClient::call.
Constants§
- ACTIVATE_
TARGET - Activates (focuses) the target.
- ATTACH_
TO_ BROWSER_ TARGET - Attaches to the browser target, only uses flat sessionId mode.
- ATTACH_
TO_ TARGET - Attaches to the target with given id.
- AUTO_
ATTACH_ RELATED - 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 - Closes the target. If the target is a page that gets closed too.
- CREATE_
BROWSER_ CONTEXT - Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
- CREATE_
TARGET - Creates a new page.
- DETACH_
FROM_ TARGET - Detaches session with given id.
- DISPOSE_
BROWSER_ CONTEXT - Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
- EXPOSE_
DEV_ TOOLS_ PROTOCOL - 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. - GET_
BROWSER_ CONTEXTS - Returns all browser contexts created with
Target.createBrowserContextmethod. - GET_
DEV_ TOOLS_ TARGET - Gets the targetId of the DevTools page target opened for the given target (if any).
- GET_
TARGETS - Retrieves a list of available targets.
- GET_
TARGET_ INFO - Returns information about a target.
- OPEN_
DEV_ TOOLS - Opens a DevTools window for the target.
- SEND_
MESSAGE_ TO_ TARGET - Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.
- SET_
AUTO_ ATTACH - 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. - SET_
DISCOVER_ TARGETS - Controls whether to discover available targets and notify via
targetCreated/targetInfoChanged/targetDestroyedevents. - SET_
REMOTE_ LOCATIONS - Enables target discovery for the specified locations, when
setDiscoverTargetswas set totrue.