Module target

Module target 

Source
Available on crate feature Target only.
Expand description

Supports additional targets discovery and allows to attach to them.

Structs§

ActivateTargetCommand
Activates (focuses) the target.
ActivateTargetReturn
Activates (focuses) the target.
AttachToBrowserTargetCommandexperimental
Attaches to the browser target, only uses flat sessionId mode.
AttachToBrowserTargetReturnexperimental
Attaches to the browser target, only uses flat sessionId mode.
AttachToTargetCommand
Attaches to the target with given id.
AttachToTargetReturn
Attaches to the target with given id.
AttachedToTargetEventexperimental
Issued when attached to target because of auto-attach or attachToTarget command.
CloseTargetCommand
Closes the target. If the target is a page that gets closed too.
CloseTargetReturn
Closes the target. If the target is a page that gets closed too.
CreateBrowserContextCommandexperimental
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
CreateBrowserContextReturnexperimental
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.
CreateTargetCommand
Creates a new page.
CreateTargetCommandBuilder
CreateTargetReturn
Creates a new page.
DetachFromTargetCommand
Detaches session with given id.
DetachFromTargetReturn
Detaches session with given id.
DetachedFromTargetEventexperimental
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.
DisposeBrowserContextCommandexperimental
Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
DisposeBrowserContextReturnexperimental
Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.
ExposeDevToolsProtocolCommandexperimental
Inject object to the target’s main frame that provides a communication channel with browser target.
ExposeDevToolsProtocolReturnexperimental
Inject object to the target’s main frame that provides a communication channel with browser target.
GetBrowserContextsCommandexperimental
Returns all browser contexts created with Target.createBrowserContext method.
GetBrowserContextsReturnexperimental
Returns all browser contexts created with Target.createBrowserContext method.
GetTargetInfoCommandexperimental
Returns information about a target.
GetTargetInfoReturnexperimental
Returns information about a target.
GetTargetsCommand
Retrieves a list of available targets.
GetTargetsReturn
Retrieves a list of available targets.
ReceivedMessageFromTargetEvent
Notifies about a new protocol message received from the session (as reported in attachedToTarget event).
RemoteLocationexperimental
SendMessageToTargetCommandDeprecated
Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.
SendMessageToTargetReturnDeprecated
Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.
SessionId
Unique identifier of attached debugging session.
SetAutoAttachCommandexperimental
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.
SetAutoAttachReturnexperimental
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.
SetDiscoverTargetsCommand
Controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events.
SetDiscoverTargetsReturn
Controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events.
SetRemoteLocationsCommandexperimental
Enables target discovery for the specified locations, when setDiscoverTargets was set to true.
SetRemoteLocationsReturnexperimental
Enables target discovery for the specified locations, when setDiscoverTargets was set to true.
TargetCrashedEvent
Issued when a target has crashed.
TargetCreatedEvent
Issued when a possible inspection target is created.
TargetDestroyedEvent
Issued when a target is destroyed.
TargetId
TargetInfo
TargetInfoBuilder
TargetInfoChangedEvent
Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.