cdp-0.0.2.0: A library for the Chrome Devtools Protocol
Safe HaskellNone
LanguageHaskell2010

CDP.Domains.BrowserTarget

Description

Browser

The Browser domain defines methods and events for browser managing. = Target

Supports additional targets discovery and allows to attach to them.

Synopsis

Documentation

data PTargetSetRemoteLocations Source #

Enables target discovery for the specified locations, when setDiscoverTargets was set to true.

Parameters of the setRemoteLocations command.

data PTargetSetDiscoverTargets Source #

Controls whether to discover available targets and notify via `targetCreatedtargetInfoChangedtargetDestroyed` events.

Parameters of the setDiscoverTargets command.

Constructors

PTargetSetDiscoverTargets 

Fields

data PTargetAutoAttachRelated Source #

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.

Parameters of the autoAttachRelated command.

Constructors

PTargetAutoAttachRelated 

Fields

data PTargetSetAutoAttach Source #

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.

Parameters of the setAutoAttach command.

Constructors

PTargetSetAutoAttach 

Fields

data PTargetGetTargets Source #

Retrieves a list of available targets.

Parameters of the getTargets command.

Constructors

PTargetGetTargets 

Fields

data PTargetDisposeBrowserContext Source #

Deletes a BrowserContext. All the belonging pages will be closed without calling their beforeunload hooks.

Parameters of the disposeBrowserContext command.

data PTargetDetachFromTarget Source #

Detaches session with given id.

Parameters of the detachFromTarget command.

data PTargetCreateTarget Source #

Creates a new page.

Parameters of the createTarget command.

Constructors

PTargetCreateTarget 

Fields

data PTargetGetBrowserContexts Source #

Returns all browser contexts created with createBrowserContext method.

Parameters of the getBrowserContexts command.

data PTargetCreateBrowserContext Source #

Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.

Parameters of the createBrowserContext command.

Constructors

PTargetCreateBrowserContext 

Fields

data PTargetExposeDevToolsProtocol Source #

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 follwing 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.

Parameters of the exposeDevToolsProtocol command.

data PTargetAttachToBrowserTarget Source #

Attaches to the browser target, only uses flat sessionId mode.

Parameters of the attachToBrowserTarget command.

data PTargetAttachToTarget Source #

Attaches to the target with given id.

Parameters of the attachToTarget command.

Constructors

PTargetAttachToTarget 

Fields

type TargetTargetFilter = [TargetFilterEntry] Source #

Type 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).

data TargetFilterEntry Source #

Type FilterEntry. A filter used by target querydiscoveryauto-attach operations.

Constructors

TargetFilterEntry 

Fields

data TargetTargetInfo Source #

Constructors

TargetTargetInfo 

Fields

type TargetSessionID = Text Source #

Type SessionID. Unique identifier of attached debugging session.

data PBrowserExecuteBrowserCommand Source #

Invoke custom browser commands used by telemetry.

Parameters of the executeBrowserCommand command.

data PBrowserSetDockTile Source #

Set dock tile details, platform-specific.

Parameters of the setDockTile command.

Constructors

PBrowserSetDockTile 

Fields

data PBrowserSetWindowBounds Source #

Set position and/or size of the browser window.

Parameters of the setWindowBounds command.

Constructors

PBrowserSetWindowBounds 

Fields

data PBrowserGetWindowForTarget Source #

Get the browser window that contains the devtools target.

Parameters of the getWindowForTarget command.

Constructors

PBrowserGetWindowForTarget 

Fields

data PBrowserGetWindowBounds Source #

Get position and size of the browser window.

Parameters of the getWindowBounds command.

data PBrowserGetHistogram Source #

Get a Chrome histogram by name.

Parameters of the getHistogram command.

Constructors

PBrowserGetHistogram 

Fields

data PBrowserGetHistograms Source #

Get Chrome histograms.

Parameters of the getHistograms command.

Constructors

PBrowserGetHistograms 

Fields

data PBrowserGetBrowserCommandLine Source #

Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.

Parameters of the getBrowserCommandLine command.

data PBrowserCancelDownload Source #

Cancel a download if in progress

Parameters of the cancelDownload command.

Constructors

PBrowserCancelDownload 

Fields

data PBrowserSetDownloadBehavior Source #

Constructors

PBrowserSetDownloadBehavior 

Fields

data PBrowserSetDownloadBehaviorBehavior Source #

Set the behavior when downloading a file.

Parameters of the setDownloadBehavior command.

Instances

Instances details
Eq PBrowserSetDownloadBehaviorBehavior Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Ord PBrowserSetDownloadBehaviorBehavior Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Read PBrowserSetDownloadBehaviorBehavior Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Show PBrowserSetDownloadBehaviorBehavior Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

ToJSON PBrowserSetDownloadBehaviorBehavior Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

FromJSON PBrowserSetDownloadBehaviorBehavior Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

data PBrowserResetPermissions Source #

Reset all permission management for all origins.

Parameters of the resetPermissions command.

Constructors

PBrowserResetPermissions 

Fields

data PBrowserGrantPermissions Source #

Grant specific permissions to the given origin and reject all others.

Parameters of the grantPermissions command.

Constructors

PBrowserGrantPermissions 

Fields

data PBrowserSetPermission Source #

Set permission settings for given origin.

Parameters of the setPermission command.

Constructors

PBrowserSetPermission 

Fields

data BrowserDownloadProgressState Source #

Type of the downloadProgress event.

Instances

Instances details
Eq BrowserDownloadProgressState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Ord BrowserDownloadProgressState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Read BrowserDownloadProgressState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Show BrowserDownloadProgressState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

ToJSON BrowserDownloadProgressState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

FromJSON BrowserDownloadProgressState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

data BrowserDownloadWillBegin Source #

Type of the downloadWillBegin event.

Constructors

BrowserDownloadWillBegin 

Fields

data BrowserBucket Source #

Type Bucket. Chrome histogram bucket.

Constructors

BrowserBucket 

Fields

data BrowserBrowserCommandId Source #

Type BrowserCommandId. Browser command ids used by executeBrowserCommand.

Instances

Instances details
Eq BrowserBrowserCommandId Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Ord BrowserBrowserCommandId Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Read BrowserBrowserCommandId Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Show BrowserBrowserCommandId Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

ToJSON BrowserBrowserCommandId Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

FromJSON BrowserBrowserCommandId Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

data BrowserPermissionDescriptor Source #

Type PermissionDescriptor. Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

Constructors

BrowserPermissionDescriptor 

Fields

data BrowserPermissionSetting Source #

Instances

Instances details
Eq BrowserPermissionSetting Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Ord BrowserPermissionSetting Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Read BrowserPermissionSetting Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Show BrowserPermissionSetting Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

ToJSON BrowserPermissionSetting Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

FromJSON BrowserPermissionSetting Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

data BrowserPermissionType Source #

Instances

Instances details
Eq BrowserPermissionType Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Ord BrowserPermissionType Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Read BrowserPermissionType Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Show BrowserPermissionType Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

ToJSON BrowserPermissionType Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

FromJSON BrowserPermissionType Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

data BrowserBounds Source #

Type Bounds. Browser window bounds information

Constructors

BrowserBounds 

Fields

data BrowserWindowState Source #

Type WindowState. The state of the browser window.

Instances

Instances details
Eq BrowserWindowState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Ord BrowserWindowState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Read BrowserWindowState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

Show BrowserWindowState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

ToJSON BrowserWindowState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget

FromJSON BrowserWindowState Source # 
Instance details

Defined in CDP.Domains.BrowserTarget