chromiumoxide::cdp::browser_protocol

Module target

Source
Expand description

Supports additional targets discovery and allows to attach to them.

Structs§

ActivateTargetParams
Activates (focuses) the target. activateTarget
ActivateTargetParamsBuilder
ActivateTargetReturns
Activates (focuses) the target. activateTarget
AttachToBrowserTargetParams
Attaches to the browser target, only uses flat sessionId mode. attachToBrowserTarget
AttachToBrowserTargetReturns
Attaches to the browser target, only uses flat sessionId mode. attachToBrowserTarget
AttachToBrowserTargetReturnsBuilder
AttachToTargetParams
Attaches to the target with given id. attachToTarget
AttachToTargetParamsBuilder
AttachToTargetReturns
Attaches to the target with given id. attachToTarget
AttachToTargetReturnsBuilder
AutoAttachRelatedParams
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 previous setAutoAttach and is also cancelled by subsequent setAutoAttach. Only available at the Browser target. autoAttachRelated
AutoAttachRelatedParamsBuilder
AutoAttachRelatedReturns
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 previous setAutoAttach and is also cancelled by subsequent setAutoAttach. Only available at the Browser target. autoAttachRelated
CloseTargetParams
Closes the target. If the target is a page that gets closed too. closeTarget
CloseTargetParamsBuilder
CloseTargetReturns
Closes the target. If the target is a page that gets closed too. closeTarget
CreateBrowserContextParams
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
CreateBrowserContextParamsBuilder
CreateBrowserContextReturns
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. createBrowserContext
CreateBrowserContextReturnsBuilder
CreateTargetParams
Creates a new page. createTarget
CreateTargetParamsBuilder
CreateTargetReturns
Creates a new page. createTarget
CreateTargetReturnsBuilder
DetachFromTargetParams
Detaches session with given id. detachFromTarget
DetachFromTargetParamsBuilder
DetachFromTargetReturns
Detaches session with given id. detachFromTarget
DisposeBrowserContextParams
Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. disposeBrowserContext
DisposeBrowserContextParamsBuilder
DisposeBrowserContextReturns
Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks. disposeBrowserContext
EventAttachedToTarget
Issued when attached to target because of auto-attach or attachToTarget command. attachedToTarget
EventDetachedFromTarget
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
EventReceivedMessageFromTarget
Notifies about a new protocol message received from the session (as reported in attachedToTarget event). receivedMessageFromTarget
EventTargetCrashed
Issued when a target has crashed. targetCrashed
EventTargetCreated
Issued when a possible inspection target is created. targetCreated
EventTargetDestroyed
Issued when a target is destroyed. targetDestroyed
EventTargetInfoChanged
Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed. targetInfoChanged
ExposeDevToolsProtocolParams
Inject object to the target’s main frame that provides a communication channel with browser target.
ExposeDevToolsProtocolParamsBuilder
ExposeDevToolsProtocolReturns
Inject object to the target’s main frame that provides a communication channel with browser target.
FilterEntry
A filter used by target query/discovery/auto-attach operations. FilterEntry
FilterEntryBuilder
GetBrowserContextsParams
Returns all browser contexts created with Target.createBrowserContext method. getBrowserContexts
GetBrowserContextsReturns
Returns all browser contexts created with Target.createBrowserContext method. getBrowserContexts
GetBrowserContextsReturnsBuilder
GetTargetInfoParams
Returns information about a target. getTargetInfo
GetTargetInfoParamsBuilder
GetTargetInfoReturns
Returns information about a target. getTargetInfo
GetTargetInfoReturnsBuilder
GetTargetsParams
Retrieves a list of available targets. getTargets
GetTargetsParamsBuilder
GetTargetsReturns
Retrieves a list of available targets. getTargets
GetTargetsReturnsBuilder
RemoteLocation
RemoteLocationBuilder
SessionId
Unique identifier of attached debugging session. SessionID
SetAutoAttachParams
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
SetAutoAttachParamsBuilder
SetAutoAttachReturns
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
SetDiscoverTargetsParams
Controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events. setDiscoverTargets
SetDiscoverTargetsParamsBuilder
SetDiscoverTargetsReturns
Controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events. setDiscoverTargets
SetRemoteLocationsParams
Enables target discovery for the specified locations, when setDiscoverTargets was set to true. setRemoteLocations
SetRemoteLocationsParamsBuilder
SetRemoteLocationsReturns
Enables target discovery for the specified locations, when setDiscoverTargets was set to true. setRemoteLocations
TargetFilter
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 but browser and tab). TargetFilter
TargetId
TargetInfo
TargetInfoBuilder