proto

原文:https://pkg.go.dev/github.com/go-rod/rod/lib/proto

收录该文档时间:2024-11-20T18:02:07+08:00

Version: v0.116.2

A lib to encode/decode the data of the cdp protocol.

​ 一个用于编码/解码 CDP 协议数据的库。

This lib is standalone and stateless, you can use it independently. Such as use it to encode/decode JSON with other libs that can drive browsers.

​ 此库是独立且无状态的,可以单独使用。例如,可以与其他能够驱动浏览器的库一起使用,用于编码/解码 JSON。

Here’s an usage example.

​ 这是一个使用示例

Package proto is a lib to encode/decode the data of the cdp protocol.https://pkg.go.dev/github.com/go-rod/rod/lib/proto#WebAuthnVirtualAuthenticatorOptions)

proto 包是一个用于编码/解码 CDP 协议数据的库。参考链接

常量

View Source

1
const Version = "v1.3"

Version of cdp protocol.

Version 表示 CDP 协议的版本。

变量

This section is empty.

函数

func GetType

1
func GetType(methodName string) reflect.Type

GetType from method name of this package, such as proto.GetType(“Page.enable”) will return the type of proto.PageEnable.

GetType 根据方法名称获取类型。例如,proto.GetType("Page.enable") 将返回 proto.PageEnable 的类型。

func ParseMethodName

1
func ParseMethodName(method string) (domain, name string)

ParseMethodName to domain and name.

ParseMethodName 将方法名称解析为域和名称。

func PatternToReg

1
func PatternToReg(pattern string) string

PatternToReg FetchRequestPattern.URLPattern to regular expression.

PatternToRegFetchRequestPattern.URLPattern 转换为正则表达式。

类型

type AccessibilityAXNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
type AccessibilityAXNode struct {
	// NodeID Unique identifier for this node.
	NodeID AccessibilityAXNodeID `json:"nodeId"`

	// Ignored Whether this node is ignored for accessibility
	Ignored bool `json:"ignored"`

	// IgnoredReasons (optional) Collection of reasons why this node is hidden.
	IgnoredReasons []*AccessibilityAXProperty `json:"ignoredReasons,omitempty"`

	// Role (optional) This `Node`'s role, whether explicit or implicit.
	Role *AccessibilityAXValue `json:"role,omitempty"`

	// ChromeRole (optional) This `Node`'s Chrome raw role.
	ChromeRole *AccessibilityAXValue `json:"chromeRole,omitempty"`

	// Name (optional) The accessible name for this `Node`.
	Name *AccessibilityAXValue `json:"name,omitempty"`

	// Description (optional) The accessible description for this `Node`.
	Description *AccessibilityAXValue `json:"description,omitempty"`

	// Value (optional) The value for this `Node`.
	Value *AccessibilityAXValue `json:"value,omitempty"`

	// Properties (optional) All other properties
	Properties []*AccessibilityAXProperty `json:"properties,omitempty"`

	// ParentID (optional) ID for this node's parent.
	ParentID AccessibilityAXNodeID `json:"parentId,omitempty"`

	// ChildIDs (optional) IDs for each of this node's child nodes.
	ChildIDs []AccessibilityAXNodeID `json:"childIds,omitempty"`

	// BackendDOMNodeID (optional) The backend ID for the associated DOM node, if any.
	BackendDOMNodeID DOMBackendNodeID `json:"backendDOMNodeId,omitempty"`

	// FrameID (optional) The frame ID for the frame associated with this nodes document.
	FrameID PageFrameID `json:"frameId,omitempty"`
}

AccessibilityAXNode A node in the accessibility tree.

type AccessibilityAXNodeID

1
type AccessibilityAXNodeID string

AccessibilityAXNodeID Unique accessibility node identifier.

type AccessibilityAXProperty

1
2
3
4
5
6
7
type AccessibilityAXProperty struct {
	// Name The name of this property.
	Name AccessibilityAXPropertyName `json:"name"`

	// Value The value of this property.
	Value *AccessibilityAXValue `json:"value"`
}

AccessibilityAXProperty …

type AccessibilityAXPropertyName

1
type AccessibilityAXPropertyName string

AccessibilityAXPropertyName Values of AXProperty name: - from ‘busy’ to ‘roledescription’: states which apply to every AX node - from ’live’ to ‘root’: attributes which apply to nodes in live regions - from ‘autocomplete’ to ‘valuetext’: attributes which apply to widgets - from ‘checked’ to ‘selected’: states which apply to widgets - from ‘activedescendant’ to ‘owns’ - relationships between elements other than parent/child/sibling.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
const (
	// AccessibilityAXPropertyNameBusy enum const.
	AccessibilityAXPropertyNameBusy AccessibilityAXPropertyName = "busy"

	// AccessibilityAXPropertyNameDisabled enum const.
	AccessibilityAXPropertyNameDisabled AccessibilityAXPropertyName = "disabled"

	// AccessibilityAXPropertyNameEditable enum const.
	AccessibilityAXPropertyNameEditable AccessibilityAXPropertyName = "editable"

	// AccessibilityAXPropertyNameFocusable enum const.
	AccessibilityAXPropertyNameFocusable AccessibilityAXPropertyName = "focusable"

	// AccessibilityAXPropertyNameFocused enum const.
	AccessibilityAXPropertyNameFocused AccessibilityAXPropertyName = "focused"

	// AccessibilityAXPropertyNameHidden enum const.
	AccessibilityAXPropertyNameHidden AccessibilityAXPropertyName = "hidden"

	// AccessibilityAXPropertyNameHiddenRoot enum const.
	AccessibilityAXPropertyNameHiddenRoot AccessibilityAXPropertyName = "hiddenRoot"

	// AccessibilityAXPropertyNameInvalid enum const.
	AccessibilityAXPropertyNameInvalid AccessibilityAXPropertyName = "invalid"

	// AccessibilityAXPropertyNameKeyshortcuts enum const.
	AccessibilityAXPropertyNameKeyshortcuts AccessibilityAXPropertyName = "keyshortcuts"

	// AccessibilityAXPropertyNameSettable enum const.
	AccessibilityAXPropertyNameSettable AccessibilityAXPropertyName = "settable"

	// AccessibilityAXPropertyNameRoledescription enum const.
	AccessibilityAXPropertyNameRoledescription AccessibilityAXPropertyName = "roledescription"

	// AccessibilityAXPropertyNameLive enum const.
	AccessibilityAXPropertyNameLive AccessibilityAXPropertyName = "live"

	// AccessibilityAXPropertyNameAtomic enum const.
	AccessibilityAXPropertyNameAtomic AccessibilityAXPropertyName = "atomic"

	// AccessibilityAXPropertyNameRelevant enum const.
	AccessibilityAXPropertyNameRelevant AccessibilityAXPropertyName = "relevant"

	// AccessibilityAXPropertyNameRoot enum const.
	AccessibilityAXPropertyNameRoot AccessibilityAXPropertyName = "root"

	// AccessibilityAXPropertyNameAutocomplete enum const.
	AccessibilityAXPropertyNameAutocomplete AccessibilityAXPropertyName = "autocomplete"

	// AccessibilityAXPropertyNameHasPopup enum const.
	AccessibilityAXPropertyNameHasPopup AccessibilityAXPropertyName = "hasPopup"

	// AccessibilityAXPropertyNameLevel enum const.
	AccessibilityAXPropertyNameLevel AccessibilityAXPropertyName = "level"

	// AccessibilityAXPropertyNameMultiselectable enum const.
	AccessibilityAXPropertyNameMultiselectable AccessibilityAXPropertyName = "multiselectable"

	// AccessibilityAXPropertyNameOrientation enum const.
	AccessibilityAXPropertyNameOrientation AccessibilityAXPropertyName = "orientation"

	// AccessibilityAXPropertyNameMultiline enum const.
	AccessibilityAXPropertyNameMultiline AccessibilityAXPropertyName = "multiline"

	// AccessibilityAXPropertyNameReadonly enum const.
	AccessibilityAXPropertyNameReadonly AccessibilityAXPropertyName = "readonly"

	// AccessibilityAXPropertyNameRequired enum const.
	AccessibilityAXPropertyNameRequired AccessibilityAXPropertyName = "required"

	// AccessibilityAXPropertyNameValuemin enum const.
	AccessibilityAXPropertyNameValuemin AccessibilityAXPropertyName = "valuemin"

	// AccessibilityAXPropertyNameValuemax enum const.
	AccessibilityAXPropertyNameValuemax AccessibilityAXPropertyName = "valuemax"

	// AccessibilityAXPropertyNameValuetext enum const.
	AccessibilityAXPropertyNameValuetext AccessibilityAXPropertyName = "valuetext"

	// AccessibilityAXPropertyNameChecked enum const.
	AccessibilityAXPropertyNameChecked AccessibilityAXPropertyName = "checked"

	// AccessibilityAXPropertyNameExpanded enum const.
	AccessibilityAXPropertyNameExpanded AccessibilityAXPropertyName = "expanded"

	// AccessibilityAXPropertyNameModal enum const.
	AccessibilityAXPropertyNameModal AccessibilityAXPropertyName = "modal"

	// AccessibilityAXPropertyNamePressed enum const.
	AccessibilityAXPropertyNamePressed AccessibilityAXPropertyName = "pressed"

	// AccessibilityAXPropertyNameSelected enum const.
	AccessibilityAXPropertyNameSelected AccessibilityAXPropertyName = "selected"

	// AccessibilityAXPropertyNameActivedescendant enum const.
	AccessibilityAXPropertyNameActivedescendant AccessibilityAXPropertyName = "activedescendant"

	// AccessibilityAXPropertyNameControls enum const.
	AccessibilityAXPropertyNameControls AccessibilityAXPropertyName = "controls"

	// AccessibilityAXPropertyNameDescribedby enum const.
	AccessibilityAXPropertyNameDescribedby AccessibilityAXPropertyName = "describedby"

	// AccessibilityAXPropertyNameDetails enum const.
	AccessibilityAXPropertyNameDetails AccessibilityAXPropertyName = "details"

	// AccessibilityAXPropertyNameErrormessage enum const.
	AccessibilityAXPropertyNameErrormessage AccessibilityAXPropertyName = "errormessage"

	// AccessibilityAXPropertyNameFlowto enum const.
	AccessibilityAXPropertyNameFlowto AccessibilityAXPropertyName = "flowto"

	// AccessibilityAXPropertyNameLabelledby enum const.
	AccessibilityAXPropertyNameLabelledby AccessibilityAXPropertyName = "labelledby"

	// AccessibilityAXPropertyNameOwns enum const.
	AccessibilityAXPropertyNameOwns AccessibilityAXPropertyName = "owns"

	// AccessibilityAXPropertyNameURL enum const.
	AccessibilityAXPropertyNameURL AccessibilityAXPropertyName = "url"
)

type AccessibilityAXRelatedNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AccessibilityAXRelatedNode struct {
	// BackendDOMNodeID The BackendNodeId of the related DOM node.
	BackendDOMNodeID DOMBackendNodeID `json:"backendDOMNodeId"`

	// Idref (optional) The IDRef value provided, if any.
	Idref string `json:"idref,omitempty"`

	// Text (optional) The text alternative of this node in the current context.
	Text string `json:"text,omitempty"`
}

AccessibilityAXRelatedNode …

type AccessibilityAXValue

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AccessibilityAXValue struct {
	// Type The type of this value.
	Type AccessibilityAXValueType `json:"type"`

	// Value (optional) The computed value of this property.
	Value gson.JSON `json:"value,omitempty"`

	// RelatedNodes (optional) One or more related nodes, if applicable.
	RelatedNodes []*AccessibilityAXRelatedNode `json:"relatedNodes,omitempty"`

	// Sources (optional) The sources which contributed to the computation of this property.
	Sources []*AccessibilityAXValueSource `json:"sources,omitempty"`
}

AccessibilityAXValue A single computed AX property.

type AccessibilityAXValueNativeSourceType

1
type AccessibilityAXValueNativeSourceType string

AccessibilityAXValueNativeSourceType Enum of possible native property sources (as a subtype of a particular AXValueSourceType).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const (
	// AccessibilityAXValueNativeSourceTypeDescription enum const.
	AccessibilityAXValueNativeSourceTypeDescription AccessibilityAXValueNativeSourceType = "description"

	// AccessibilityAXValueNativeSourceTypeFigcaption enum const.
	AccessibilityAXValueNativeSourceTypeFigcaption AccessibilityAXValueNativeSourceType = "figcaption"

	// AccessibilityAXValueNativeSourceTypeLabel enum const.
	AccessibilityAXValueNativeSourceTypeLabel AccessibilityAXValueNativeSourceType = "label"

	// AccessibilityAXValueNativeSourceTypeLabelfor enum const.
	AccessibilityAXValueNativeSourceTypeLabelfor AccessibilityAXValueNativeSourceType = "labelfor"

	// AccessibilityAXValueNativeSourceTypeLabelwrapped enum const.
	AccessibilityAXValueNativeSourceTypeLabelwrapped AccessibilityAXValueNativeSourceType = "labelwrapped"

	// AccessibilityAXValueNativeSourceTypeLegend enum const.
	AccessibilityAXValueNativeSourceTypeLegend AccessibilityAXValueNativeSourceType = "legend"

	// AccessibilityAXValueNativeSourceTypeRubyannotation enum const.
	AccessibilityAXValueNativeSourceTypeRubyannotation AccessibilityAXValueNativeSourceType = "rubyannotation"

	// AccessibilityAXValueNativeSourceTypeTablecaption enum const.
	AccessibilityAXValueNativeSourceTypeTablecaption AccessibilityAXValueNativeSourceType = "tablecaption"

	// AccessibilityAXValueNativeSourceTypeTitle enum const.
	AccessibilityAXValueNativeSourceTypeTitle AccessibilityAXValueNativeSourceType = "title"

	// AccessibilityAXValueNativeSourceTypeOther enum const.
	AccessibilityAXValueNativeSourceTypeOther AccessibilityAXValueNativeSourceType = "other"
)

type AccessibilityAXValueSource

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
type AccessibilityAXValueSource struct {
	// Type What type of source this is.
	Type AccessibilityAXValueSourceType `json:"type"`

	// Value (optional) The value of this property source.
	Value *AccessibilityAXValue `json:"value,omitempty"`

	// Attribute (optional) The name of the relevant attribute, if any.
	Attribute string `json:"attribute,omitempty"`

	// AttributeValue (optional) The value of the relevant attribute, if any.
	AttributeValue *AccessibilityAXValue `json:"attributeValue,omitempty"`

	// Superseded (optional) Whether this source is superseded by a higher priority source.
	Superseded bool `json:"superseded,omitempty"`

	// NativeSource (optional) The native markup source for this value, e.g. a `<label>` element.
	NativeSource AccessibilityAXValueNativeSourceType `json:"nativeSource,omitempty"`

	// NativeSourceValue (optional) The value, such as a node or node list, of the native source.
	NativeSourceValue *AccessibilityAXValue `json:"nativeSourceValue,omitempty"`

	// Invalid (optional) Whether the value for this property is invalid.
	Invalid bool `json:"invalid,omitempty"`

	// InvalidReason (optional) Reason for the value being invalid, if it is.
	InvalidReason string `json:"invalidReason,omitempty"`
}

AccessibilityAXValueSource A single source for a computed AX property.

type AccessibilityAXValueSourceType

1
type AccessibilityAXValueSourceType string

AccessibilityAXValueSourceType Enum of possible property sources.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// AccessibilityAXValueSourceTypeAttribute enum const.
	AccessibilityAXValueSourceTypeAttribute AccessibilityAXValueSourceType = "attribute"

	// AccessibilityAXValueSourceTypeImplicit enum const.
	AccessibilityAXValueSourceTypeImplicit AccessibilityAXValueSourceType = "implicit"

	// AccessibilityAXValueSourceTypeStyle enum const.
	AccessibilityAXValueSourceTypeStyle AccessibilityAXValueSourceType = "style"

	// AccessibilityAXValueSourceTypeContents enum const.
	AccessibilityAXValueSourceTypeContents AccessibilityAXValueSourceType = "contents"

	// AccessibilityAXValueSourceTypePlaceholder enum const.
	AccessibilityAXValueSourceTypePlaceholder AccessibilityAXValueSourceType = "placeholder"

	// AccessibilityAXValueSourceTypeRelatedElement enum const.
	AccessibilityAXValueSourceTypeRelatedElement AccessibilityAXValueSourceType = "relatedElement"
)

type AccessibilityAXValueType

1
type AccessibilityAXValueType string

AccessibilityAXValueType Enum of possible property types.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const (
	// AccessibilityAXValueTypeBoolean enum const.
	AccessibilityAXValueTypeBoolean AccessibilityAXValueType = "boolean"

	// AccessibilityAXValueTypeTristate enum const.
	AccessibilityAXValueTypeTristate AccessibilityAXValueType = "tristate"

	// AccessibilityAXValueTypeBooleanOrUndefined enum const.
	AccessibilityAXValueTypeBooleanOrUndefined AccessibilityAXValueType = "booleanOrUndefined"

	// AccessibilityAXValueTypeIdref enum const.
	AccessibilityAXValueTypeIdref AccessibilityAXValueType = "idref"

	// AccessibilityAXValueTypeIdrefList enum const.
	AccessibilityAXValueTypeIdrefList AccessibilityAXValueType = "idrefList"

	// AccessibilityAXValueTypeInteger enum const.
	AccessibilityAXValueTypeInteger AccessibilityAXValueType = "integer"

	// AccessibilityAXValueTypeNode enum const.
	AccessibilityAXValueTypeNode AccessibilityAXValueType = "node"

	// AccessibilityAXValueTypeNodeList enum const.
	AccessibilityAXValueTypeNodeList AccessibilityAXValueType = "nodeList"

	// AccessibilityAXValueTypeNumber enum const.
	AccessibilityAXValueTypeNumber AccessibilityAXValueType = "number"

	// AccessibilityAXValueTypeString enum const.
	AccessibilityAXValueTypeString AccessibilityAXValueType = "string"

	// AccessibilityAXValueTypeComputedString enum const.
	AccessibilityAXValueTypeComputedString AccessibilityAXValueType = "computedString"

	// AccessibilityAXValueTypeToken enum const.
	AccessibilityAXValueTypeToken AccessibilityAXValueType = "token"

	// AccessibilityAXValueTypeTokenList enum const.
	AccessibilityAXValueTypeTokenList AccessibilityAXValueType = "tokenList"

	// AccessibilityAXValueTypeDomRelation enum const.
	AccessibilityAXValueTypeDomRelation AccessibilityAXValueType = "domRelation"

	// AccessibilityAXValueTypeRole enum const.
	AccessibilityAXValueTypeRole AccessibilityAXValueType = "role"

	// AccessibilityAXValueTypeInternalRole enum const.
	AccessibilityAXValueTypeInternalRole AccessibilityAXValueType = "internalRole"

	// AccessibilityAXValueTypeValueUndefined enum const.
	AccessibilityAXValueTypeValueUndefined AccessibilityAXValueType = "valueUndefined"
)

type AccessibilityDisable

1
type AccessibilityDisable struct{}

AccessibilityDisable Disables the accessibility domain.

(AccessibilityDisable) Call

1
func (m AccessibilityDisable) Call(c Client) error

Call sends the request.

(AccessibilityDisable) ProtoReq <- 0.74.0

1
func (m AccessibilityDisable) ProtoReq() string

ProtoReq name.

type AccessibilityEnable

1
type AccessibilityEnable struct{}

AccessibilityEnable Enables the accessibility domain which causes AXNodeIds to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled.

(AccessibilityEnable) Call

1
func (m AccessibilityEnable) Call(c Client) error

Call sends the request.

(AccessibilityEnable) ProtoReq <- 0.74.0

1
func (m AccessibilityEnable) ProtoReq() string

ProtoReq name.

type AccessibilityGetAXNodeAndAncestors <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AccessibilityGetAXNodeAndAncestors struct {
	// NodeID (optional) Identifier of the node to get.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node to get.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper to get.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

AccessibilityGetAXNodeAndAncestors (experimental) Fetches a node and all ancestors up to and including the root. Requires enable() to have been called previously.

(AccessibilityGetAXNodeAndAncestors) Call <- 0.102.0

1
func (m AccessibilityGetAXNodeAndAncestors) Call(c Client) (*AccessibilityGetAXNodeAndAncestorsResult, error)

Call the request.

(AccessibilityGetAXNodeAndAncestors) ProtoReq <- 0.102.0

1
func (m AccessibilityGetAXNodeAndAncestors) ProtoReq() string

ProtoReq name.

type AccessibilityGetAXNodeAndAncestorsResult <- 0.102.0

1
2
3
4
type AccessibilityGetAXNodeAndAncestorsResult struct {
	// Nodes ...
	Nodes []*AccessibilityAXNode `json:"nodes"`
}

AccessibilityGetAXNodeAndAncestorsResult (experimental) …

type AccessibilityGetChildAXNodes <- 0.90.0

1
2
3
4
5
6
7
8
type AccessibilityGetChildAXNodes struct {
	// ID ...
	ID AccessibilityAXNodeID `json:"id"`

	// FrameID (optional) The frame in whose document the node resides.
	// If omitted, the root frame is used.
	FrameID PageFrameID `json:"frameId,omitempty"`
}

AccessibilityGetChildAXNodes (experimental) Fetches a particular accessibility node by AXNodeId. Requires enable() to have been called previously.

(AccessibilityGetChildAXNodes) Call <- 0.90.0

1
func (m AccessibilityGetChildAXNodes) Call(c Client) (*AccessibilityGetChildAXNodesResult, error)

Call the request.

(AccessibilityGetChildAXNodes) ProtoReq <- 0.90.0

1
func (m AccessibilityGetChildAXNodes) ProtoReq() string

ProtoReq name.

type AccessibilityGetChildAXNodesResult <- 0.90.0

1
2
3
4
type AccessibilityGetChildAXNodesResult struct {
	// Nodes ...
	Nodes []*AccessibilityAXNode `json:"nodes"`
}

AccessibilityGetChildAXNodesResult (experimental) …

type AccessibilityGetFullAXTree

1
2
3
4
5
6
7
8
9
type AccessibilityGetFullAXTree struct {
	// Depth (optional) The maximum depth at which descendants of the root node should be retrieved.
	// If omitted, the full tree is returned.
	Depth *int `json:"depth,omitempty"`

	// FrameID (optional) The frame for whose document the AX tree should be retrieved.
	// If omitted, the root frame is used.
	FrameID PageFrameID `json:"frameId,omitempty"`
}

AccessibilityGetFullAXTree (experimental) Fetches the entire accessibility tree for the root Document.

(AccessibilityGetFullAXTree) Call

1
func (m AccessibilityGetFullAXTree) Call(c Client) (*AccessibilityGetFullAXTreeResult, error)

Call the request.

(AccessibilityGetFullAXTree) ProtoReq <- 0.74.0

1
func (m AccessibilityGetFullAXTree) ProtoReq() string

ProtoReq name.

type AccessibilityGetFullAXTreeResult

1
2
3
4
type AccessibilityGetFullAXTreeResult struct {
	// Nodes ...
	Nodes []*AccessibilityAXNode `json:"nodes"`
}

AccessibilityGetFullAXTreeResult (experimental) …

type AccessibilityGetPartialAXTree

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AccessibilityGetPartialAXTree struct {
	// NodeID (optional) Identifier of the node to get the partial accessibility tree for.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node to get the partial accessibility tree for.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper to get the partial accessibility tree for.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// FetchRelatives (optional) Whether to fetch this node's ancestors, siblings and children. Defaults to true.
	FetchRelatives bool `json:"fetchRelatives,omitempty"`
}

AccessibilityGetPartialAXTree (experimental) Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.

(AccessibilityGetPartialAXTree) Call

1
func (m AccessibilityGetPartialAXTree) Call(c Client) (*AccessibilityGetPartialAXTreeResult, error)

Call the request.

(AccessibilityGetPartialAXTree) ProtoReq <- 0.74.0

1
func (m AccessibilityGetPartialAXTree) ProtoReq() string

ProtoReq name.

type AccessibilityGetPartialAXTreeResult

1
2
3
4
5
type AccessibilityGetPartialAXTreeResult struct {
	// Nodes The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and
	// children, if requested.
	Nodes []*AccessibilityAXNode `json:"nodes"`
}

AccessibilityGetPartialAXTreeResult (experimental) …

type AccessibilityGetRootAXNode <- 0.102.0

1
2
3
4
5
type AccessibilityGetRootAXNode struct {
	// FrameID (optional) The frame in whose document the node resides.
	// If omitted, the root frame is used.
	FrameID PageFrameID `json:"frameId,omitempty"`
}

AccessibilityGetRootAXNode (experimental) Fetches the root node. Requires enable() to have been called previously.

(AccessibilityGetRootAXNode) Call <- 0.102.0

1
func (m AccessibilityGetRootAXNode) Call(c Client) (*AccessibilityGetRootAXNodeResult, error)

Call the request.

(AccessibilityGetRootAXNode) ProtoReq <- 0.102.0

1
func (m AccessibilityGetRootAXNode) ProtoReq() string

ProtoReq name.

type AccessibilityGetRootAXNodeResult <- 0.102.0

1
2
3
4
type AccessibilityGetRootAXNodeResult struct {
	// Node ...
	Node *AccessibilityAXNode `json:"node"`
}

AccessibilityGetRootAXNodeResult (experimental) …

type AccessibilityLoadComplete <- 0.102.0

1
2
3
4
type AccessibilityLoadComplete struct {
	// Root New document root node.
	Root *AccessibilityAXNode `json:"root"`
}

AccessibilityLoadComplete (experimental) The loadComplete event mirrors the load complete event sent by the browser to assistive technology when the web page has finished loading.

(AccessibilityLoadComplete) ProtoEvent <- 0.102.0

1
func (evt AccessibilityLoadComplete) ProtoEvent() string

ProtoEvent name.

type AccessibilityNodesUpdated <- 0.102.0

1
2
3
4
type AccessibilityNodesUpdated struct {
	// Nodes Updated node data.
	Nodes []*AccessibilityAXNode `json:"nodes"`
}

AccessibilityNodesUpdated (experimental) The nodesUpdated event is sent every time a previously requested node has changed the in tree.

(AccessibilityNodesUpdated) ProtoEvent <- 0.102.0

1
func (evt AccessibilityNodesUpdated) ProtoEvent() string

ProtoEvent name.

type AccessibilityQueryAXTree <- 0.82.3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type AccessibilityQueryAXTree struct {
	// NodeID (optional) Identifier of the node for the root to query.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node for the root to query.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper for the root to query.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// AccessibleName (optional) Find nodes with this computed name.
	AccessibleName string `json:"accessibleName,omitempty"`

	// Role (optional) Find nodes with this computed role.
	Role string `json:"role,omitempty"`
}

AccessibilityQueryAXTree (experimental) Query a DOM node’s accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that match the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither accessibleName or role is specified, it returns all the accessibility nodes in the subtree.

(AccessibilityQueryAXTree) Call <- 0.82.3

1
func (m AccessibilityQueryAXTree) Call(c Client) (*AccessibilityQueryAXTreeResult, error)

Call the request.

(AccessibilityQueryAXTree) ProtoReq <- 0.82.3

1
func (m AccessibilityQueryAXTree) ProtoReq() string

ProtoReq name.

type AccessibilityQueryAXTreeResult <- 0.82.3

1
2
3
4
5
type AccessibilityQueryAXTreeResult struct {
	// Nodes A list of `Accessibility.AXNode` matching the specified attributes,
	// including nodes that are ignored for accessibility.
	Nodes []*AccessibilityAXNode `json:"nodes"`
}

AccessibilityQueryAXTreeResult (experimental) …

type AnimationAnimation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
type AnimationAnimation struct {
	// ID `Animation`'s id.
	ID string `json:"id"`

	// Name `Animation`'s name.
	Name string `json:"name"`

	// PausedState `Animation`'s internal paused state.
	PausedState bool `json:"pausedState"`

	// PlayState `Animation`'s play state.
	PlayState string `json:"playState"`

	// PlaybackRate `Animation`'s playback rate.
	PlaybackRate float64 `json:"playbackRate"`

	// StartTime `Animation`'s start time.
	// Milliseconds for time based animations and
	// percentage [0 - 100] for scroll driven animations
	// (i.e. when viewOrScrollTimeline exists).
	StartTime float64 `json:"startTime"`

	// CurrentTime `Animation`'s current time.
	CurrentTime float64 `json:"currentTime"`

	// Type Animation type of `Animation`.
	Type AnimationAnimationType `json:"type"`

	// Source (optional) `Animation`'s source animation node.
	Source *AnimationAnimationEffect `json:"source,omitempty"`

	// CSSID (optional) A unique ID for `Animation` representing the sources that triggered this CSS
	// animation/transition.
	CSSID string `json:"cssId,omitempty"`

	// ViewOrScrollTimeline (optional) View or scroll timeline
	ViewOrScrollTimeline *AnimationViewOrScrollTimeline `json:"viewOrScrollTimeline,omitempty"`
}

AnimationAnimation Animation instance.

type AnimationAnimationCanceled

1
2
3
4
type AnimationAnimationCanceled struct {
	// ID Id of the animation that was cancelled.
	ID string `json:"id"`
}

AnimationAnimationCanceled Event for when an animation has been cancelled.

(AnimationAnimationCanceled) ProtoEvent <- 0.72.0

1
func (evt AnimationAnimationCanceled) ProtoEvent() string

ProtoEvent name.

type AnimationAnimationCreated

1
2
3
4
type AnimationAnimationCreated struct {
	// ID Id of the animation that was created.
	ID string `json:"id"`
}

AnimationAnimationCreated Event for each animation that has been created.

(AnimationAnimationCreated) ProtoEvent <- 0.72.0

1
func (evt AnimationAnimationCreated) ProtoEvent() string

ProtoEvent name.

type AnimationAnimationEffect

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
type AnimationAnimationEffect struct {
	// Delay `AnimationEffect`'s delay.
	Delay float64 `json:"delay"`

	// EndDelay `AnimationEffect`'s end delay.
	EndDelay float64 `json:"endDelay"`

	// IterationStart `AnimationEffect`'s iteration start.
	IterationStart float64 `json:"iterationStart"`

	// Iterations `AnimationEffect`'s iterations.
	Iterations float64 `json:"iterations"`

	// Duration `AnimationEffect`'s iteration duration.
	// Milliseconds for time based animations and
	// percentage [0 - 100] for scroll driven animations
	// (i.e. when viewOrScrollTimeline exists).
	Duration float64 `json:"duration"`

	// Direction `AnimationEffect`'s playback direction.
	Direction string `json:"direction"`

	// Fill `AnimationEffect`'s fill mode.
	Fill string `json:"fill"`

	// BackendNodeID (optional) `AnimationEffect`'s target node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// KeyframesRule (optional) `AnimationEffect`'s keyframes.
	KeyframesRule *AnimationKeyframesRule `json:"keyframesRule,omitempty"`

	// Easing `AnimationEffect`'s timing function.
	Easing string `json:"easing"`
}

AnimationAnimationEffect AnimationEffect instance.

type AnimationAnimationStarted

1
2
3
4
type AnimationAnimationStarted struct {
	// Animation that was started.
	Animation *AnimationAnimation `json:"animation"`
}

AnimationAnimationStarted Event for animation that has been started.

(AnimationAnimationStarted) ProtoEvent <- 0.72.0

1
func (evt AnimationAnimationStarted) ProtoEvent() string

ProtoEvent name.

type AnimationAnimationType

1
type AnimationAnimationType string

AnimationAnimationType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// AnimationAnimationTypeCSSTransition enum const.
	AnimationAnimationTypeCSSTransition AnimationAnimationType = "CSSTransition"

	// AnimationAnimationTypeCSSAnimation enum const.
	AnimationAnimationTypeCSSAnimation AnimationAnimationType = "CSSAnimation"

	// AnimationAnimationTypeWebAnimation enum const.
	AnimationAnimationTypeWebAnimation AnimationAnimationType = "WebAnimation"
)

type AnimationAnimationUpdated <- 0.116.0

1
2
3
4
type AnimationAnimationUpdated struct {
	// Animation that was updated.
	Animation *AnimationAnimation `json:"animation"`
}

AnimationAnimationUpdated Event for animation that has been updated.

(AnimationAnimationUpdated) ProtoEvent <- 0.116.0

1
func (evt AnimationAnimationUpdated) ProtoEvent() string

ProtoEvent name.

type AnimationDisable

1
type AnimationDisable struct{}

AnimationDisable Disables animation domain notifications.

(AnimationDisable) Call

1
func (m AnimationDisable) Call(c Client) error

Call sends the request.

(AnimationDisable) ProtoReq <- 0.74.0

1
func (m AnimationDisable) ProtoReq() string

ProtoReq name.

type AnimationEnable

1
type AnimationEnable struct{}

AnimationEnable Enables animation domain notifications.

(AnimationEnable) Call

1
func (m AnimationEnable) Call(c Client) error

Call sends the request.

(AnimationEnable) ProtoReq <- 0.74.0

1
func (m AnimationEnable) ProtoReq() string

ProtoReq name.

type AnimationGetCurrentTime

1
2
3
4
type AnimationGetCurrentTime struct {
	// ID Id of animation.
	ID string `json:"id"`
}

AnimationGetCurrentTime Returns the current time of the an animation.

(AnimationGetCurrentTime) Call

1
func (m AnimationGetCurrentTime) Call(c Client) (*AnimationGetCurrentTimeResult, error)

Call the request.

(AnimationGetCurrentTime) ProtoReq <- 0.74.0

1
func (m AnimationGetCurrentTime) ProtoReq() string

ProtoReq name.

type AnimationGetCurrentTimeResult

1
2
3
4
type AnimationGetCurrentTimeResult struct {
	// CurrentTime Current time of the page.
	CurrentTime float64 `json:"currentTime"`
}

AnimationGetCurrentTimeResult …

type AnimationGetPlaybackRate

1
type AnimationGetPlaybackRate struct{}

AnimationGetPlaybackRate Gets the playback rate of the document timeline.

(AnimationGetPlaybackRate) Call

1
func (m AnimationGetPlaybackRate) Call(c Client) (*AnimationGetPlaybackRateResult, error)

Call the request.

(AnimationGetPlaybackRate) ProtoReq <- 0.74.0

1
func (m AnimationGetPlaybackRate) ProtoReq() string

ProtoReq name.

type AnimationGetPlaybackRateResult

1
2
3
4
type AnimationGetPlaybackRateResult struct {
	// PlaybackRate Playback rate for animations on page.
	PlaybackRate float64 `json:"playbackRate"`
}

AnimationGetPlaybackRateResult …

type AnimationKeyframeStyle

1
2
3
4
5
6
7
type AnimationKeyframeStyle struct {
	// Offset Keyframe's time offset.
	Offset string `json:"offset"`

	// Easing `AnimationEffect`'s timing function.
	Easing string `json:"easing"`
}

AnimationKeyframeStyle Keyframe Style.

type AnimationKeyframesRule

1
2
3
4
5
6
7
type AnimationKeyframesRule struct {
	// Name (optional) CSS keyframed animation's name.
	Name string `json:"name,omitempty"`

	// Keyframes List of animation keyframes.
	Keyframes []*AnimationKeyframeStyle `json:"keyframes"`
}

AnimationKeyframesRule Keyframes Rule.

type AnimationReleaseAnimations

1
2
3
4
type AnimationReleaseAnimations struct {
	// Animations List of animation ids to seek.
	Animations []string `json:"animations"`
}

AnimationReleaseAnimations Releases a set of animations to no longer be manipulated.

(AnimationReleaseAnimations) Call

1
func (m AnimationReleaseAnimations) Call(c Client) error

Call sends the request.

(AnimationReleaseAnimations) ProtoReq <- 0.74.0

1
func (m AnimationReleaseAnimations) ProtoReq() string

ProtoReq name.

type AnimationResolveAnimation

1
2
3
4
type AnimationResolveAnimation struct {
	// AnimationID Animation id.
	AnimationID string `json:"animationId"`
}

AnimationResolveAnimation Gets the remote object of the Animation.

(AnimationResolveAnimation) Call

1
func (m AnimationResolveAnimation) Call(c Client) (*AnimationResolveAnimationResult, error)

Call the request.

(AnimationResolveAnimation) ProtoReq <- 0.74.0

1
func (m AnimationResolveAnimation) ProtoReq() string

ProtoReq name.

type AnimationResolveAnimationResult

1
2
3
4
type AnimationResolveAnimationResult struct {
	// RemoteObject Corresponding remote object.
	RemoteObject *RuntimeRemoteObject `json:"remoteObject"`
}

AnimationResolveAnimationResult …

type AnimationSeekAnimations

1
2
3
4
5
6
7
type AnimationSeekAnimations struct {
	// Animations List of animation ids to seek.
	Animations []string `json:"animations"`

	// CurrentTime Set the current time of each animation.
	CurrentTime float64 `json:"currentTime"`
}

AnimationSeekAnimations Seek a set of animations to a particular time within each animation.

(AnimationSeekAnimations) Call

1
func (m AnimationSeekAnimations) Call(c Client) error

Call sends the request.

(AnimationSeekAnimations) ProtoReq <- 0.74.0

1
func (m AnimationSeekAnimations) ProtoReq() string

ProtoReq name.

type AnimationSetPaused

1
2
3
4
5
6
7
type AnimationSetPaused struct {
	// Animations to set the pause state of.
	Animations []string `json:"animations"`

	// Paused state to set to.
	Paused bool `json:"paused"`
}

AnimationSetPaused Sets the paused state of a set of animations.

(AnimationSetPaused) Call

1
func (m AnimationSetPaused) Call(c Client) error

Call sends the request.

(AnimationSetPaused) ProtoReq <- 0.74.0

1
func (m AnimationSetPaused) ProtoReq() string

ProtoReq name.

type AnimationSetPlaybackRate

1
2
3
4
type AnimationSetPlaybackRate struct {
	// PlaybackRate Playback rate for animations on page
	PlaybackRate float64 `json:"playbackRate"`
}

AnimationSetPlaybackRate Sets the playback rate of the document timeline.

(AnimationSetPlaybackRate) Call

1
func (m AnimationSetPlaybackRate) Call(c Client) error

Call sends the request.

(AnimationSetPlaybackRate) ProtoReq <- 0.74.0

1
func (m AnimationSetPlaybackRate) ProtoReq() string

ProtoReq name.

type AnimationSetTiming

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AnimationSetTiming struct {
	// AnimationID Animation id.
	AnimationID string `json:"animationId"`

	// Duration of the animation.
	Duration float64 `json:"duration"`

	// Delay of the animation.
	Delay float64 `json:"delay"`
}

AnimationSetTiming Sets the timing of an animation node.

(AnimationSetTiming) Call

1
func (m AnimationSetTiming) Call(c Client) error

Call sends the request.

(AnimationSetTiming) ProtoReq <- 0.74.0

1
func (m AnimationSetTiming) ProtoReq() string

ProtoReq name.

type AnimationViewOrScrollTimeline <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type AnimationViewOrScrollTimeline struct {
	// SourceNodeID (optional) Scroll container node
	SourceNodeID DOMBackendNodeID `json:"sourceNodeId,omitempty"`

	// StartOffset (optional) Represents the starting scroll position of the timeline
	// as a length offset in pixels from scroll origin.
	StartOffset *float64 `json:"startOffset,omitempty"`

	// EndOffset (optional) Represents the ending scroll position of the timeline
	// as a length offset in pixels from scroll origin.
	EndOffset *float64 `json:"endOffset,omitempty"`

	// SubjectNodeID (optional) The element whose principal box's visibility in the
	// scrollport defined the progress of the timeline.
	// Does not exist for animations with ScrollTimeline
	SubjectNodeID DOMBackendNodeID `json:"subjectNodeId,omitempty"`

	// Axis Orientation of the scroll
	Axis DOMScrollOrientation `json:"axis"`
}

AnimationViewOrScrollTimeline Timeline instance.

type AuditsAffectedCookie

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsAffectedCookie struct {
	// Name The following three properties uniquely identify a cookie
	Name string `json:"name"`

	// Path ...
	Path string `json:"path"`

	// Domain ...
	Domain string `json:"domain"`
}

AuditsAffectedCookie Information about a cookie that is affected by an inspector issue.

type AuditsAffectedFrame <- 0.48.0

1
2
3
4
type AuditsAffectedFrame struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`
}

AuditsAffectedFrame Information about the frame affected by an inspector issue.

type AuditsAffectedRequest <- 0.48.0

1
2
3
4
5
6
7
type AuditsAffectedRequest struct {
	// RequestID The unique request id.
	RequestID NetworkRequestID `json:"requestId"`

	// URL (optional) ...
	URL string `json:"url,omitempty"`
}

AuditsAffectedRequest Information about a request that is affected by an inspector issue.

type AuditsAttributionReportingIssueDetails <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AuditsAttributionReportingIssueDetails struct {
	// ViolationType ...
	ViolationType AuditsAttributionReportingIssueType `json:"violationType"`

	// Request (optional) ...
	Request *AuditsAffectedRequest `json:"request,omitempty"`

	// ViolatingNodeID (optional) ...
	ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"`

	// InvalidParameter (optional) ...
	InvalidParameter string `json:"invalidParameter,omitempty"`
}

AuditsAttributionReportingIssueDetails Details for issues around “Attribution Reporting API” usage. Explainer: https://github.com/WICG/attribution-reporting-api

type AuditsAttributionReportingIssueType <- 0.100.0

1
type AuditsAttributionReportingIssueType string

AuditsAttributionReportingIssueType …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const (
	// AuditsAttributionReportingIssueTypePermissionPolicyDisabled enum const.
	AuditsAttributionReportingIssueTypePermissionPolicyDisabled AuditsAttributionReportingIssueType = "PermissionPolicyDisabled"

	// AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin enum const.
	AuditsAttributionReportingIssueTypeUntrustworthyReportingOrigin AuditsAttributionReportingIssueType = "UntrustworthyReportingOrigin"

	// AuditsAttributionReportingIssueTypeInsecureContext enum const.
	AuditsAttributionReportingIssueTypeInsecureContext AuditsAttributionReportingIssueType = "InsecureContext"

	// AuditsAttributionReportingIssueTypeInvalidHeader enum const.
	AuditsAttributionReportingIssueTypeInvalidHeader AuditsAttributionReportingIssueType = "InvalidHeader"

	// AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader enum const.
	AuditsAttributionReportingIssueTypeInvalidRegisterTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterTriggerHeader"

	// AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders enum const.
	AuditsAttributionReportingIssueTypeSourceAndTriggerHeaders AuditsAttributionReportingIssueType = "SourceAndTriggerHeaders"

	// AuditsAttributionReportingIssueTypeSourceIgnored enum const.
	AuditsAttributionReportingIssueTypeSourceIgnored AuditsAttributionReportingIssueType = "SourceIgnored"

	// AuditsAttributionReportingIssueTypeTriggerIgnored enum const.
	AuditsAttributionReportingIssueTypeTriggerIgnored AuditsAttributionReportingIssueType = "TriggerIgnored"

	// AuditsAttributionReportingIssueTypeOsSourceIgnored enum const.
	AuditsAttributionReportingIssueTypeOsSourceIgnored AuditsAttributionReportingIssueType = "OsSourceIgnored"

	// AuditsAttributionReportingIssueTypeOsTriggerIgnored enum const.
	AuditsAttributionReportingIssueTypeOsTriggerIgnored AuditsAttributionReportingIssueType = "OsTriggerIgnored"

	// AuditsAttributionReportingIssueTypeInvalidRegisterOsSourceHeader enum const.
	AuditsAttributionReportingIssueTypeInvalidRegisterOsSourceHeader AuditsAttributionReportingIssueType = "InvalidRegisterOsSourceHeader"

	// AuditsAttributionReportingIssueTypeInvalidRegisterOsTriggerHeader enum const.
	AuditsAttributionReportingIssueTypeInvalidRegisterOsTriggerHeader AuditsAttributionReportingIssueType = "InvalidRegisterOsTriggerHeader"

	// AuditsAttributionReportingIssueTypeWebAndOsHeaders enum const.
	AuditsAttributionReportingIssueTypeWebAndOsHeaders AuditsAttributionReportingIssueType = "WebAndOsHeaders"

	// AuditsAttributionReportingIssueTypeNoWebOrOsSupport enum const.
	AuditsAttributionReportingIssueTypeNoWebOrOsSupport AuditsAttributionReportingIssueType = "NoWebOrOsSupport"

	// AuditsAttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation enum const.
	AuditsAttributionReportingIssueTypeNavigationRegistrationWithoutTransientUserActivation AuditsAttributionReportingIssueType = "NavigationRegistrationWithoutTransientUserActivation"

	// AuditsAttributionReportingIssueTypeInvalidInfoHeader enum const.
	AuditsAttributionReportingIssueTypeInvalidInfoHeader AuditsAttributionReportingIssueType = "InvalidInfoHeader"

	// AuditsAttributionReportingIssueTypeNoRegisterSourceHeader enum const.
	AuditsAttributionReportingIssueTypeNoRegisterSourceHeader AuditsAttributionReportingIssueType = "NoRegisterSourceHeader"

	// AuditsAttributionReportingIssueTypeNoRegisterTriggerHeader enum const.
	AuditsAttributionReportingIssueTypeNoRegisterTriggerHeader AuditsAttributionReportingIssueType = "NoRegisterTriggerHeader"

	// AuditsAttributionReportingIssueTypeNoRegisterOsSourceHeader enum const.
	AuditsAttributionReportingIssueTypeNoRegisterOsSourceHeader AuditsAttributionReportingIssueType = "NoRegisterOsSourceHeader"

	// AuditsAttributionReportingIssueTypeNoRegisterOsTriggerHeader enum const.
	AuditsAttributionReportingIssueTypeNoRegisterOsTriggerHeader AuditsAttributionReportingIssueType = "NoRegisterOsTriggerHeader"
)

type AuditsBlockedByResponseIssueDetails <- 0.52.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AuditsBlockedByResponseIssueDetails struct {
	// Request ...
	Request *AuditsAffectedRequest `json:"request"`

	// ParentFrame (optional) ...
	ParentFrame *AuditsAffectedFrame `json:"parentFrame,omitempty"`

	// BlockedFrame (optional) ...
	BlockedFrame *AuditsAffectedFrame `json:"blockedFrame,omitempty"`

	// Reason ...
	Reason AuditsBlockedByResponseReason `json:"reason"`
}

AuditsBlockedByResponseIssueDetails Details for a request that has been blocked with the BLOCKED_BY_RESPONSE code. Currently only used for COEP/COOP, but may be extended to include some CSP errors in the future.

type AuditsBlockedByResponseReason <- 0.52.0

1
type AuditsBlockedByResponseReason string

AuditsBlockedByResponseReason Enum indicating the reason a response has been blocked. These reasons are refinements of the net error BLOCKED_BY_RESPONSE.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
const (
	// AuditsBlockedByResponseReasonCoepFrameResourceNeedsCoepHeader enum const.
	AuditsBlockedByResponseReasonCoepFrameResourceNeedsCoepHeader AuditsBlockedByResponseReason = "CoepFrameResourceNeedsCoepHeader"

	// AuditsBlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage enum const.
	AuditsBlockedByResponseReasonCoopSandboxedIFrameCannotNavigateToCoopPage AuditsBlockedByResponseReason = "CoopSandboxedIFrameCannotNavigateToCoopPage"

	// AuditsBlockedByResponseReasonCorpNotSameOrigin enum const.
	AuditsBlockedByResponseReasonCorpNotSameOrigin AuditsBlockedByResponseReason = "CorpNotSameOrigin"

	// AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep enum const.
	AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoep"

	// AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip enum const.
	AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByDip"

	// AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip enum const.
	AuditsBlockedByResponseReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip AuditsBlockedByResponseReason = "CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip"

	// AuditsBlockedByResponseReasonCorpNotSameSite enum const.
	AuditsBlockedByResponseReasonCorpNotSameSite AuditsBlockedByResponseReason = "CorpNotSameSite"
)

type AuditsBounceTrackingIssueDetails <- 0.112.9

1
2
3
4
type AuditsBounceTrackingIssueDetails struct {
	// TrackingSites ...
	TrackingSites []string `json:"trackingSites"`
}

AuditsBounceTrackingIssueDetails This issue warns about sites in the redirect chain of a finished navigation that may be flagged as trackers and have their state cleared if they don’t receive a user interaction. Note that in this context ‘site’ means eTLD+1. For example, if the URL https://example.test:80/bounce was in the redirect chain, the site reported would be example.test.

type AuditsCheckContrast <- 0.93.0

1
2
3
4
type AuditsCheckContrast struct {
	// ReportAAA (optional) Whether to report WCAG AAA level issues. Default is false.
	ReportAAA bool `json:"reportAAA,omitempty"`
}

AuditsCheckContrast Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event.

(AuditsCheckContrast) Call <- 0.93.0

1
func (m AuditsCheckContrast) Call(c Client) error

Call sends the request.

(AuditsCheckContrast) ProtoReq <- 0.93.0

1
func (m AuditsCheckContrast) ProtoReq() string

ProtoReq name.

type AuditsCheckFormsIssues <- 0.115.0

1
type AuditsCheckFormsIssues struct{}

AuditsCheckFormsIssues Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event.

(AuditsCheckFormsIssues) Call <- 0.115.0

1
func (m AuditsCheckFormsIssues) Call(c Client) (*AuditsCheckFormsIssuesResult, error)

Call the request.

(AuditsCheckFormsIssues) ProtoReq <- 0.115.0

1
func (m AuditsCheckFormsIssues) ProtoReq() string

ProtoReq name.

type AuditsCheckFormsIssuesResult <- 0.115.0

1
2
3
4
type AuditsCheckFormsIssuesResult struct {
	// FormIssues ...
	FormIssues []*AuditsGenericIssueDetails `json:"formIssues"`
}

AuditsCheckFormsIssuesResult …

type AuditsClientHintIssueDetails <- 0.102.0

1
2
3
4
5
6
7
type AuditsClientHintIssueDetails struct {
	// SourceCodeLocation ...
	SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`

	// ClientHintIssueReason ...
	ClientHintIssueReason AuditsClientHintIssueReason `json:"clientHintIssueReason"`
}

AuditsClientHintIssueDetails This issue tracks client hints related issues. It’s used to deprecate old features, encourage the use of new ones, and provide general guidance.

type AuditsClientHintIssueReason <- 0.102.0

1
type AuditsClientHintIssueReason string

AuditsClientHintIssueReason …

1
2
3
4
5
6
7
const (
	// AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin enum const.
	AuditsClientHintIssueReasonMetaTagAllowListInvalidOrigin AuditsClientHintIssueReason = "MetaTagAllowListInvalidOrigin"

	// AuditsClientHintIssueReasonMetaTagModifiedHTML enum const.
	AuditsClientHintIssueReasonMetaTagModifiedHTML AuditsClientHintIssueReason = "MetaTagModifiedHTML"
)

type AuditsContentSecurityPolicyIssueDetails <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type AuditsContentSecurityPolicyIssueDetails struct {
	// BlockedURL (optional) The url not included in allowed sources.
	BlockedURL string `json:"blockedURL,omitempty"`

	// ViolatedDirective Specific directive that is violated, causing the CSP issue.
	ViolatedDirective string `json:"violatedDirective"`

	// IsReportOnly ...
	IsReportOnly bool `json:"isReportOnly"`

	// ContentSecurityPolicyViolationType ...
	ContentSecurityPolicyViolationType AuditsContentSecurityPolicyViolationType `json:"contentSecurityPolicyViolationType"`

	// FrameAncestor (optional) ...
	FrameAncestor *AuditsAffectedFrame `json:"frameAncestor,omitempty"`

	// SourceCodeLocation (optional) ...
	SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation,omitempty"`

	// ViolatingNodeID (optional) ...
	ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"`
}

AuditsContentSecurityPolicyIssueDetails …

type AuditsContentSecurityPolicyViolationType <- 0.72.0

1
type AuditsContentSecurityPolicyViolationType string

AuditsContentSecurityPolicyViolationType …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// AuditsContentSecurityPolicyViolationTypeKInlineViolation enum const.
	AuditsContentSecurityPolicyViolationTypeKInlineViolation AuditsContentSecurityPolicyViolationType = "kInlineViolation"

	// AuditsContentSecurityPolicyViolationTypeKEvalViolation enum const.
	AuditsContentSecurityPolicyViolationTypeKEvalViolation AuditsContentSecurityPolicyViolationType = "kEvalViolation"

	// AuditsContentSecurityPolicyViolationTypeKURLViolation enum const.
	AuditsContentSecurityPolicyViolationTypeKURLViolation AuditsContentSecurityPolicyViolationType = "kURLViolation"

	// AuditsContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation enum const.
	AuditsContentSecurityPolicyViolationTypeKTrustedTypesSinkViolation AuditsContentSecurityPolicyViolationType = "kTrustedTypesSinkViolation"

	// AuditsContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation enum const.
	AuditsContentSecurityPolicyViolationTypeKTrustedTypesPolicyViolation AuditsContentSecurityPolicyViolationType = "kTrustedTypesPolicyViolation"

	// AuditsContentSecurityPolicyViolationTypeKWasmEvalViolation enum const.
	AuditsContentSecurityPolicyViolationTypeKWasmEvalViolation AuditsContentSecurityPolicyViolationType = "kWasmEvalViolation"
)

type AuditsCookieDeprecationMetadataIssueDetails <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AuditsCookieDeprecationMetadataIssueDetails struct {
	// AllowedSites ...
	AllowedSites []string `json:"allowedSites"`

	// OptOutPercentage ...
	OptOutPercentage float64 `json:"optOutPercentage"`

	// IsOptOutTopLevel ...
	IsOptOutTopLevel bool `json:"isOptOutTopLevel"`

	// Operation ...
	Operation AuditsCookieOperation `json:"operation"`
}

AuditsCookieDeprecationMetadataIssueDetails This issue warns about third-party sites that are accessing cookies on the current page, and have been permitted due to having a global metadata grant. Note that in this context ‘site’ means eTLD+1. For example, if the URL https://example.test:80/web_page was accessing cookies, the site reported would be example.test.

type AuditsCookieExclusionReason <- 0.103.0

1
type AuditsCookieExclusionReason string

AuditsCookieExclusionReason …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const (
	// AuditsCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax enum const.
	AuditsCookieExclusionReasonExcludeSameSiteUnspecifiedTreatedAsLax AuditsCookieExclusionReason = "ExcludeSameSiteUnspecifiedTreatedAsLax"

	// AuditsCookieExclusionReasonExcludeSameSiteNoneInsecure enum const.
	AuditsCookieExclusionReasonExcludeSameSiteNoneInsecure AuditsCookieExclusionReason = "ExcludeSameSiteNoneInsecure"

	// AuditsCookieExclusionReasonExcludeSameSiteLax enum const.
	AuditsCookieExclusionReasonExcludeSameSiteLax AuditsCookieExclusionReason = "ExcludeSameSiteLax"

	// AuditsCookieExclusionReasonExcludeSameSiteStrict enum const.
	AuditsCookieExclusionReasonExcludeSameSiteStrict AuditsCookieExclusionReason = "ExcludeSameSiteStrict"

	// AuditsCookieExclusionReasonExcludeInvalidSameParty enum const.
	AuditsCookieExclusionReasonExcludeInvalidSameParty AuditsCookieExclusionReason = "ExcludeInvalidSameParty"

	// AuditsCookieExclusionReasonExcludeSamePartyCrossPartyContext enum const.
	AuditsCookieExclusionReasonExcludeSamePartyCrossPartyContext AuditsCookieExclusionReason = "ExcludeSamePartyCrossPartyContext"

	// AuditsCookieExclusionReasonExcludeDomainNonASCII enum const.
	AuditsCookieExclusionReasonExcludeDomainNonASCII AuditsCookieExclusionReason = "ExcludeDomainNonASCII"

	// AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet enum const.
	AuditsCookieExclusionReasonExcludeThirdPartyCookieBlockedInFirstPartySet AuditsCookieExclusionReason = "ExcludeThirdPartyCookieBlockedInFirstPartySet"

	// AuditsCookieExclusionReasonExcludeThirdPartyPhaseout enum const.
	AuditsCookieExclusionReasonExcludeThirdPartyPhaseout AuditsCookieExclusionReason = "ExcludeThirdPartyPhaseout"
)

type AuditsCookieIssueDetails <- 0.103.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
type AuditsCookieIssueDetails struct {
	// Cookie (optional) If AffectedCookie is not set then rawCookieLine contains the raw
	// Set-Cookie header string. This hints at a problem where the
	// cookie line is syntactically or semantically malformed in a way
	// that no valid cookie could be created.
	Cookie *AuditsAffectedCookie `json:"cookie,omitempty"`

	// RawCookieLine (optional) ...
	RawCookieLine string `json:"rawCookieLine,omitempty"`

	// CookieWarningReasons ...
	CookieWarningReasons []AuditsCookieWarningReason `json:"cookieWarningReasons"`

	// CookieExclusionReasons ...
	CookieExclusionReasons []AuditsCookieExclusionReason `json:"cookieExclusionReasons"`

	// Operation Optionally identifies the site-for-cookies and the cookie url, which
	// may be used by the front-end as additional context.
	Operation AuditsCookieOperation `json:"operation"`

	// SiteForCookies (optional) ...
	SiteForCookies string `json:"siteForCookies,omitempty"`

	// CookieURL (optional) ...
	CookieURL string `json:"cookieUrl,omitempty"`

	// Request (optional) ...
	Request *AuditsAffectedRequest `json:"request,omitempty"`
}

AuditsCookieIssueDetails This information is currently necessary, as the front-end has a difficult time finding a specific cookie. With this, we can convey specific error information without the cookie.

type AuditsCookieOperation <- 0.103.0

1
type AuditsCookieOperation string

AuditsCookieOperation …

1
2
3
4
5
6
7
const (
	// AuditsCookieOperationSetCookie enum const.
	AuditsCookieOperationSetCookie AuditsCookieOperation = "SetCookie"

	// AuditsCookieOperationReadCookie enum const.
	AuditsCookieOperationReadCookie AuditsCookieOperation = "ReadCookie"
)

type AuditsCookieWarningReason <- 0.103.0

1
type AuditsCookieWarningReason string

AuditsCookieWarningReason …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const (
	// AuditsCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext enum const.
	AuditsCookieWarningReasonWarnSameSiteUnspecifiedCrossSiteContext AuditsCookieWarningReason = "WarnSameSiteUnspecifiedCrossSiteContext"

	// AuditsCookieWarningReasonWarnSameSiteNoneInsecure enum const.
	AuditsCookieWarningReasonWarnSameSiteNoneInsecure AuditsCookieWarningReason = "WarnSameSiteNoneInsecure"

	// AuditsCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe enum const.
	AuditsCookieWarningReasonWarnSameSiteUnspecifiedLaxAllowUnsafe AuditsCookieWarningReason = "WarnSameSiteUnspecifiedLaxAllowUnsafe"

	// AuditsCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict enum const.
	AuditsCookieWarningReasonWarnSameSiteStrictLaxDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteStrictLaxDowngradeStrict"

	// AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict enum const.
	AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteStrictCrossDowngradeStrict"

	// AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax enum const.
	AuditsCookieWarningReasonWarnSameSiteStrictCrossDowngradeLax AuditsCookieWarningReason = "WarnSameSiteStrictCrossDowngradeLax"

	// AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict enum const.
	AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeStrict AuditsCookieWarningReason = "WarnSameSiteLaxCrossDowngradeStrict"

	// AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax enum const.
	AuditsCookieWarningReasonWarnSameSiteLaxCrossDowngradeLax AuditsCookieWarningReason = "WarnSameSiteLaxCrossDowngradeLax"

	// AuditsCookieWarningReasonWarnAttributeValueExceedsMaxSize enum const.
	AuditsCookieWarningReasonWarnAttributeValueExceedsMaxSize AuditsCookieWarningReason = "WarnAttributeValueExceedsMaxSize"

	// AuditsCookieWarningReasonWarnDomainNonASCII enum const.
	AuditsCookieWarningReasonWarnDomainNonASCII AuditsCookieWarningReason = "WarnDomainNonASCII"

	// AuditsCookieWarningReasonWarnThirdPartyPhaseout enum const.
	AuditsCookieWarningReasonWarnThirdPartyPhaseout AuditsCookieWarningReason = "WarnThirdPartyPhaseout"

	// AuditsCookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion enum const.
	AuditsCookieWarningReasonWarnCrossSiteRedirectDowngradeChangesInclusion AuditsCookieWarningReason = "WarnCrossSiteRedirectDowngradeChangesInclusion"
)

type AuditsCorsIssueDetails <- 0.93.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type AuditsCorsIssueDetails struct {
	// CorsErrorStatus ...
	CorsErrorStatus *NetworkCorsErrorStatus `json:"corsErrorStatus"`

	// IsWarning ...
	IsWarning bool `json:"isWarning"`

	// Request ...
	Request *AuditsAffectedRequest `json:"request"`

	// Location (optional) ...
	Location *AuditsSourceCodeLocation `json:"location,omitempty"`

	// InitiatorOrigin (optional) ...
	InitiatorOrigin string `json:"initiatorOrigin,omitempty"`

	// ResourceIPAddressSpace (optional) ...
	ResourceIPAddressSpace NetworkIPAddressSpace `json:"resourceIPAddressSpace,omitempty"`

	// ClientSecurityState (optional) ...
	ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"`
}

AuditsCorsIssueDetails Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement.

type AuditsDeprecationIssueDetails <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsDeprecationIssueDetails struct {
	// AffectedFrame (optional) ...
	AffectedFrame *AuditsAffectedFrame `json:"affectedFrame,omitempty"`

	// SourceCodeLocation ...
	SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`

	// Type One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5
	Type string `json:"type"`
}

AuditsDeprecationIssueDetails This issue tracks information needed to print a deprecation message. https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md

type AuditsDisable

1
type AuditsDisable struct{}

AuditsDisable Disables issues domain, prevents further issues from being reported to the client.

(AuditsDisable) Call

1
func (m AuditsDisable) Call(c Client) error

Call sends the request.

(AuditsDisable) ProtoReq <- 0.74.0

1
func (m AuditsDisable) ProtoReq() string

ProtoReq name.

type AuditsEnable

1
type AuditsEnable struct{}

AuditsEnable Enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.

(AuditsEnable) Call

1
func (m AuditsEnable) Call(c Client) error

Call sends the request.

(AuditsEnable) ProtoReq <- 0.74.0

1
func (m AuditsEnable) ProtoReq() string

ProtoReq name.

type AuditsFailedRequestInfo <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsFailedRequestInfo struct {
	// URL The URL that failed to load.
	URL string `json:"url"`

	// FailureMessage The failure message for the failed request.
	FailureMessage string `json:"failureMessage"`

	// RequestID (optional) ...
	RequestID NetworkRequestID `json:"requestId,omitempty"`
}

AuditsFailedRequestInfo …

type AuditsFederatedAuthRequestIssueDetails <- 0.102.1

1
2
3
4
type AuditsFederatedAuthRequestIssueDetails struct {
	// FederatedAuthRequestIssueReason ...
	FederatedAuthRequestIssueReason AuditsFederatedAuthRequestIssueReason `json:"federatedAuthRequestIssueReason"`
}

AuditsFederatedAuthRequestIssueDetails …

type AuditsFederatedAuthRequestIssueReason <- 0.102.1

1
type AuditsFederatedAuthRequestIssueReason string

AuditsFederatedAuthRequestIssueReason Represents the failure reason when a federated authentication reason fails. Should be updated alongside RequestIdTokenStatus in third_party/blink/public/mojom/devtools/inspector_issue.mojom to include all cases except for success.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
const (
	// AuditsFederatedAuthRequestIssueReasonShouldEmbargo enum const.
	AuditsFederatedAuthRequestIssueReasonShouldEmbargo AuditsFederatedAuthRequestIssueReason = "ShouldEmbargo"

	// AuditsFederatedAuthRequestIssueReasonTooManyRequests enum const.
	AuditsFederatedAuthRequestIssueReasonTooManyRequests AuditsFederatedAuthRequestIssueReason = "TooManyRequests"

	// AuditsFederatedAuthRequestIssueReasonWellKnownHTTPNotFound enum const.
	AuditsFederatedAuthRequestIssueReasonWellKnownHTTPNotFound AuditsFederatedAuthRequestIssueReason = "WellKnownHttpNotFound"

	// AuditsFederatedAuthRequestIssueReasonWellKnownNoResponse enum const.
	AuditsFederatedAuthRequestIssueReasonWellKnownNoResponse AuditsFederatedAuthRequestIssueReason = "WellKnownNoResponse"

	// AuditsFederatedAuthRequestIssueReasonWellKnownInvalidResponse enum const.
	AuditsFederatedAuthRequestIssueReasonWellKnownInvalidResponse AuditsFederatedAuthRequestIssueReason = "WellKnownInvalidResponse"

	// AuditsFederatedAuthRequestIssueReasonWellKnownListEmpty enum const.
	AuditsFederatedAuthRequestIssueReasonWellKnownListEmpty AuditsFederatedAuthRequestIssueReason = "WellKnownListEmpty"

	// AuditsFederatedAuthRequestIssueReasonWellKnownInvalidContentType enum const.
	AuditsFederatedAuthRequestIssueReasonWellKnownInvalidContentType AuditsFederatedAuthRequestIssueReason = "WellKnownInvalidContentType"

	// AuditsFederatedAuthRequestIssueReasonConfigNotInWellKnown enum const.
	AuditsFederatedAuthRequestIssueReasonConfigNotInWellKnown AuditsFederatedAuthRequestIssueReason = "ConfigNotInWellKnown"

	// AuditsFederatedAuthRequestIssueReasonWellKnownTooBig enum const.
	AuditsFederatedAuthRequestIssueReasonWellKnownTooBig AuditsFederatedAuthRequestIssueReason = "WellKnownTooBig"

	// AuditsFederatedAuthRequestIssueReasonConfigHTTPNotFound enum const.
	AuditsFederatedAuthRequestIssueReasonConfigHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ConfigHttpNotFound"

	// AuditsFederatedAuthRequestIssueReasonConfigNoResponse enum const.
	AuditsFederatedAuthRequestIssueReasonConfigNoResponse AuditsFederatedAuthRequestIssueReason = "ConfigNoResponse"

	// AuditsFederatedAuthRequestIssueReasonConfigInvalidResponse enum const.
	AuditsFederatedAuthRequestIssueReasonConfigInvalidResponse AuditsFederatedAuthRequestIssueReason = "ConfigInvalidResponse"

	// AuditsFederatedAuthRequestIssueReasonConfigInvalidContentType enum const.
	AuditsFederatedAuthRequestIssueReasonConfigInvalidContentType AuditsFederatedAuthRequestIssueReason = "ConfigInvalidContentType"

	// AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound enum const.
	AuditsFederatedAuthRequestIssueReasonClientMetadataHTTPNotFound AuditsFederatedAuthRequestIssueReason = "ClientMetadataHttpNotFound"

	// AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse enum const.
	AuditsFederatedAuthRequestIssueReasonClientMetadataNoResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataNoResponse"

	// AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse enum const.
	AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidResponse AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidResponse"

	// AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidContentType enum const.
	AuditsFederatedAuthRequestIssueReasonClientMetadataInvalidContentType AuditsFederatedAuthRequestIssueReason = "ClientMetadataInvalidContentType"

	// AuditsFederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy enum const.
	AuditsFederatedAuthRequestIssueReasonIdpNotPotentiallyTrustworthy AuditsFederatedAuthRequestIssueReason = "IdpNotPotentiallyTrustworthy"

	// AuditsFederatedAuthRequestIssueReasonDisabledInSettings enum const.
	AuditsFederatedAuthRequestIssueReasonDisabledInSettings AuditsFederatedAuthRequestIssueReason = "DisabledInSettings"

	// AuditsFederatedAuthRequestIssueReasonDisabledInFlags enum const.
	AuditsFederatedAuthRequestIssueReasonDisabledInFlags AuditsFederatedAuthRequestIssueReason = "DisabledInFlags"

	// AuditsFederatedAuthRequestIssueReasonErrorFetchingSignin enum const.
	AuditsFederatedAuthRequestIssueReasonErrorFetchingSignin AuditsFederatedAuthRequestIssueReason = "ErrorFetchingSignin"

	// AuditsFederatedAuthRequestIssueReasonInvalidSigninResponse enum const.
	AuditsFederatedAuthRequestIssueReasonInvalidSigninResponse AuditsFederatedAuthRequestIssueReason = "InvalidSigninResponse"

	// AuditsFederatedAuthRequestIssueReasonAccountsHTTPNotFound enum const.
	AuditsFederatedAuthRequestIssueReasonAccountsHTTPNotFound AuditsFederatedAuthRequestIssueReason = "AccountsHttpNotFound"

	// AuditsFederatedAuthRequestIssueReasonAccountsNoResponse enum const.
	AuditsFederatedAuthRequestIssueReasonAccountsNoResponse AuditsFederatedAuthRequestIssueReason = "AccountsNoResponse"

	// AuditsFederatedAuthRequestIssueReasonAccountsInvalidResponse enum const.
	AuditsFederatedAuthRequestIssueReasonAccountsInvalidResponse AuditsFederatedAuthRequestIssueReason = "AccountsInvalidResponse"

	// AuditsFederatedAuthRequestIssueReasonAccountsListEmpty enum const.
	AuditsFederatedAuthRequestIssueReasonAccountsListEmpty AuditsFederatedAuthRequestIssueReason = "AccountsListEmpty"

	// AuditsFederatedAuthRequestIssueReasonAccountsInvalidContentType enum const.
	AuditsFederatedAuthRequestIssueReasonAccountsInvalidContentType AuditsFederatedAuthRequestIssueReason = "AccountsInvalidContentType"

	// AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenHTTPNotFound AuditsFederatedAuthRequestIssueReason = "IdTokenHttpNotFound"

	// AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenNoResponse AuditsFederatedAuthRequestIssueReason = "IdTokenNoResponse"

	// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenInvalidResponse AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidResponse"

	// AuditsFederatedAuthRequestIssueReasonIDTokenIdpErrorResponse enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenIdpErrorResponse AuditsFederatedAuthRequestIssueReason = "IdTokenIdpErrorResponse"

	// AuditsFederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenCrossSiteIdpErrorResponse AuditsFederatedAuthRequestIssueReason = "IdTokenCrossSiteIdpErrorResponse"

	// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenInvalidRequest AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidRequest"

	// AuditsFederatedAuthRequestIssueReasonIDTokenInvalidContentType enum const.
	AuditsFederatedAuthRequestIssueReasonIDTokenInvalidContentType AuditsFederatedAuthRequestIssueReason = "IdTokenInvalidContentType"

	// AuditsFederatedAuthRequestIssueReasonErrorIDToken enum const.
	AuditsFederatedAuthRequestIssueReasonErrorIDToken AuditsFederatedAuthRequestIssueReason = "ErrorIdToken"

	// AuditsFederatedAuthRequestIssueReasonCanceled enum const.
	AuditsFederatedAuthRequestIssueReasonCanceled AuditsFederatedAuthRequestIssueReason = "Canceled"

	// AuditsFederatedAuthRequestIssueReasonRpPageNotVisible enum const.
	AuditsFederatedAuthRequestIssueReasonRpPageNotVisible AuditsFederatedAuthRequestIssueReason = "RpPageNotVisible"

	// AuditsFederatedAuthRequestIssueReasonSilentMediationFailure enum const.
	AuditsFederatedAuthRequestIssueReasonSilentMediationFailure AuditsFederatedAuthRequestIssueReason = "SilentMediationFailure"

	// AuditsFederatedAuthRequestIssueReasonThirdPartyCookiesBlocked enum const.
	AuditsFederatedAuthRequestIssueReasonThirdPartyCookiesBlocked AuditsFederatedAuthRequestIssueReason = "ThirdPartyCookiesBlocked"

	// AuditsFederatedAuthRequestIssueReasonNotSignedInWithIdp enum const.
	AuditsFederatedAuthRequestIssueReasonNotSignedInWithIdp AuditsFederatedAuthRequestIssueReason = "NotSignedInWithIdp"

	// AuditsFederatedAuthRequestIssueReasonMissingTransientUserActivation enum const.
	AuditsFederatedAuthRequestIssueReasonMissingTransientUserActivation AuditsFederatedAuthRequestIssueReason = "MissingTransientUserActivation"

	// AuditsFederatedAuthRequestIssueReasonReplacedByButtonMode enum const.
	AuditsFederatedAuthRequestIssueReasonReplacedByButtonMode AuditsFederatedAuthRequestIssueReason = "ReplacedByButtonMode"

	// AuditsFederatedAuthRequestIssueReasonInvalidFieldsSpecified enum const.
	AuditsFederatedAuthRequestIssueReasonInvalidFieldsSpecified AuditsFederatedAuthRequestIssueReason = "InvalidFieldsSpecified"

	// AuditsFederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque enum const.
	AuditsFederatedAuthRequestIssueReasonRelyingPartyOriginIsOpaque AuditsFederatedAuthRequestIssueReason = "RelyingPartyOriginIsOpaque"

	// AuditsFederatedAuthRequestIssueReasonTypeNotMatching enum const.
	AuditsFederatedAuthRequestIssueReasonTypeNotMatching AuditsFederatedAuthRequestIssueReason = "TypeNotMatching"
)

type AuditsFederatedAuthUserInfoRequestIssueDetails <- 0.115.0

1
2
3
4
type AuditsFederatedAuthUserInfoRequestIssueDetails struct {
	// FederatedAuthUserInfoRequestIssueReason ...
	FederatedAuthUserInfoRequestIssueReason AuditsFederatedAuthUserInfoRequestIssueReason `json:"federatedAuthUserInfoRequestIssueReason"`
}

AuditsFederatedAuthUserInfoRequestIssueDetails …

type AuditsFederatedAuthUserInfoRequestIssueReason <- 0.115.0

1
type AuditsFederatedAuthUserInfoRequestIssueReason string

AuditsFederatedAuthUserInfoRequestIssueReason Represents the failure reason when a getUserInfo() call fails. Should be updated alongside FederatedAuthUserInfoRequestResult in third_party/blink/public/mojom/devtools/inspector_issue.mojom.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const (
	// AuditsFederatedAuthUserInfoRequestIssueReasonNotSameOrigin enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNotSameOrigin AuditsFederatedAuthUserInfoRequestIssueReason = "NotSameOrigin"

	// AuditsFederatedAuthUserInfoRequestIssueReasonNotIframe enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNotIframe AuditsFederatedAuthUserInfoRequestIssueReason = "NotIframe"

	// AuditsFederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNotPotentiallyTrustworthy AuditsFederatedAuthUserInfoRequestIssueReason = "NotPotentiallyTrustworthy"

	// AuditsFederatedAuthUserInfoRequestIssueReasonNoAPIPermission enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNoAPIPermission AuditsFederatedAuthUserInfoRequestIssueReason = "NoApiPermission"

	// AuditsFederatedAuthUserInfoRequestIssueReasonNotSignedInWithIdp enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNotSignedInWithIdp AuditsFederatedAuthUserInfoRequestIssueReason = "NotSignedInWithIdp"

	// AuditsFederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNoAccountSharingPermission AuditsFederatedAuthUserInfoRequestIssueReason = "NoAccountSharingPermission"

	// AuditsFederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonInvalidConfigOrWellKnown AuditsFederatedAuthUserInfoRequestIssueReason = "InvalidConfigOrWellKnown"

	// AuditsFederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonInvalidAccountsResponse AuditsFederatedAuthUserInfoRequestIssueReason = "InvalidAccountsResponse"

	// AuditsFederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts enum const.
	AuditsFederatedAuthUserInfoRequestIssueReasonNoReturningUserFromFetchedAccounts AuditsFederatedAuthUserInfoRequestIssueReason = "NoReturningUserFromFetchedAccounts"
)

type AuditsGenericIssueDetails <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type AuditsGenericIssueDetails struct {
	// ErrorType Issues with the same errorType are aggregated in the frontend.
	ErrorType AuditsGenericIssueErrorType `json:"errorType"`

	// FrameID (optional) ...
	FrameID PageFrameID `json:"frameId,omitempty"`

	// ViolatingNodeID (optional) ...
	ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId,omitempty"`

	// ViolatingNodeAttribute (optional) ...
	ViolatingNodeAttribute string `json:"violatingNodeAttribute,omitempty"`

	// Request (optional) ...
	Request *AuditsAffectedRequest `json:"request,omitempty"`
}

AuditsGenericIssueDetails Depending on the concrete errorType, different properties are set.

type AuditsGenericIssueErrorType <- 0.102.0

1
type AuditsGenericIssueErrorType string

AuditsGenericIssueErrorType …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const (
	// AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError enum const.
	AuditsGenericIssueErrorTypeCrossOriginPortalPostMessageError AuditsGenericIssueErrorType = "CrossOriginPortalPostMessageError"

	// AuditsGenericIssueErrorTypeFormLabelForNameError enum const.
	AuditsGenericIssueErrorTypeFormLabelForNameError AuditsGenericIssueErrorType = "FormLabelForNameError"

	// AuditsGenericIssueErrorTypeFormDuplicateIDForInputError enum const.
	AuditsGenericIssueErrorTypeFormDuplicateIDForInputError AuditsGenericIssueErrorType = "FormDuplicateIdForInputError"

	// AuditsGenericIssueErrorTypeFormInputWithNoLabelError enum const.
	AuditsGenericIssueErrorTypeFormInputWithNoLabelError AuditsGenericIssueErrorType = "FormInputWithNoLabelError"

	// AuditsGenericIssueErrorTypeFormAutocompleteAttributeEmptyError enum const.
	AuditsGenericIssueErrorTypeFormAutocompleteAttributeEmptyError AuditsGenericIssueErrorType = "FormAutocompleteAttributeEmptyError"

	// AuditsGenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError enum const.
	AuditsGenericIssueErrorTypeFormEmptyIDAndNameAttributesForInputError AuditsGenericIssueErrorType = "FormEmptyIdAndNameAttributesForInputError"

	// AuditsGenericIssueErrorTypeFormAriaLabelledByToNonExistingID enum const.
	AuditsGenericIssueErrorTypeFormAriaLabelledByToNonExistingID AuditsGenericIssueErrorType = "FormAriaLabelledByToNonExistingId"

	// AuditsGenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError enum const.
	AuditsGenericIssueErrorTypeFormInputAssignedAutocompleteValueToIDOrNameAttributeError AuditsGenericIssueErrorType = "FormInputAssignedAutocompleteValueToIdOrNameAttributeError"

	// AuditsGenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput enum const.
	AuditsGenericIssueErrorTypeFormLabelHasNeitherForNorNestedInput AuditsGenericIssueErrorType = "FormLabelHasNeitherForNorNestedInput"

	// AuditsGenericIssueErrorTypeFormLabelForMatchesNonExistingIDError enum const.
	AuditsGenericIssueErrorTypeFormLabelForMatchesNonExistingIDError AuditsGenericIssueErrorType = "FormLabelForMatchesNonExistingIdError"

	// AuditsGenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError enum const.
	AuditsGenericIssueErrorTypeFormInputHasWrongButWellIntendedAutocompleteValueError AuditsGenericIssueErrorType = "FormInputHasWrongButWellIntendedAutocompleteValueError"

	// AuditsGenericIssueErrorTypeResponseWasBlockedByORB enum const.
	AuditsGenericIssueErrorTypeResponseWasBlockedByORB AuditsGenericIssueErrorType = "ResponseWasBlockedByORB"
)

type AuditsGetEncodedResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AuditsGetEncodedResponse struct {
	// RequestID Identifier of the network request to get content for.
	RequestID NetworkRequestID `json:"requestId"`

	// Encoding The encoding to use.
	Encoding AuditsGetEncodedResponseEncoding `json:"encoding"`

	// Quality (optional) The quality of the encoding (0-1). (defaults to 1)
	Quality *float64 `json:"quality,omitempty"`

	// SizeOnly (optional) Whether to only return the size information (defaults to false).
	SizeOnly bool `json:"sizeOnly,omitempty"`
}

AuditsGetEncodedResponse Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.

(AuditsGetEncodedResponse) Call

1
func (m AuditsGetEncodedResponse) Call(c Client) (*AuditsGetEncodedResponseResult, error)

Call the request.

(AuditsGetEncodedResponse) ProtoReq <- 0.74.0

1
func (m AuditsGetEncodedResponse) ProtoReq() string

ProtoReq name.

type AuditsGetEncodedResponseEncoding

1
type AuditsGetEncodedResponseEncoding string

AuditsGetEncodedResponseEncoding enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// AuditsGetEncodedResponseEncodingWebp enum const.
	AuditsGetEncodedResponseEncodingWebp AuditsGetEncodedResponseEncoding = "webp"

	// AuditsGetEncodedResponseEncodingJpeg enum const.
	AuditsGetEncodedResponseEncodingJpeg AuditsGetEncodedResponseEncoding = "jpeg"

	// AuditsGetEncodedResponseEncodingPng enum const.
	AuditsGetEncodedResponseEncodingPng AuditsGetEncodedResponseEncoding = "png"
)

type AuditsGetEncodedResponseResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsGetEncodedResponseResult struct {
	// Body (optional) The encoded body as a base64 string. Omitted if sizeOnly is true.
	Body []byte `json:"body,omitempty"`

	// OriginalSize Size before re-encoding.
	OriginalSize int `json:"originalSize"`

	// EncodedSize Size after re-encoding.
	EncodedSize int `json:"encodedSize"`
}

AuditsGetEncodedResponseResult …

type AuditsHeavyAdIssueDetails <- 0.52.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsHeavyAdIssueDetails struct {
	// Resolution The resolution status, either blocking the content or warning.
	Resolution AuditsHeavyAdResolutionStatus `json:"resolution"`

	// Reason The reason the ad was blocked, total network or cpu or peak cpu.
	Reason AuditsHeavyAdReason `json:"reason"`

	// Frame The frame that was blocked.
	Frame *AuditsAffectedFrame `json:"frame"`
}

AuditsHeavyAdIssueDetails …

type AuditsHeavyAdReason <- 0.52.0

1
type AuditsHeavyAdReason string

AuditsHeavyAdReason …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// AuditsHeavyAdReasonNetworkTotalLimit enum const.
	AuditsHeavyAdReasonNetworkTotalLimit AuditsHeavyAdReason = "NetworkTotalLimit"

	// AuditsHeavyAdReasonCPUTotalLimit enum const.
	AuditsHeavyAdReasonCPUTotalLimit AuditsHeavyAdReason = "CpuTotalLimit"

	// AuditsHeavyAdReasonCPUPeakLimit enum const.
	AuditsHeavyAdReasonCPUPeakLimit AuditsHeavyAdReason = "CpuPeakLimit"
)

type AuditsHeavyAdResolutionStatus <- 0.52.0

1
type AuditsHeavyAdResolutionStatus string

AuditsHeavyAdResolutionStatus …

1
2
3
4
5
6
7
const (
	// AuditsHeavyAdResolutionStatusHeavyAdBlocked enum const.
	AuditsHeavyAdResolutionStatusHeavyAdBlocked AuditsHeavyAdResolutionStatus = "HeavyAdBlocked"

	// AuditsHeavyAdResolutionStatusHeavyAdWarning enum const.
	AuditsHeavyAdResolutionStatusHeavyAdWarning AuditsHeavyAdResolutionStatus = "HeavyAdWarning"
)

type AuditsInspectorIssue

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type AuditsInspectorIssue struct {
	// Code ...
	Code AuditsInspectorIssueCode `json:"code"`

	// Details ...
	Details *AuditsInspectorIssueDetails `json:"details"`

	// IssueID (optional) A unique id for this issue. May be omitted if no other entity (e.g.
	// exception, CDP message, etc.) is referencing this issue.
	IssueID AuditsIssueID `json:"issueId,omitempty"`
}

AuditsInspectorIssue An inspector issue reported from the back-end.

type AuditsInspectorIssueCode

1
type AuditsInspectorIssueCode string

AuditsInspectorIssueCode A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const (
	// AuditsInspectorIssueCodeCookieIssue enum const.
	AuditsInspectorIssueCodeCookieIssue AuditsInspectorIssueCode = "CookieIssue"

	// AuditsInspectorIssueCodeMixedContentIssue enum const.
	AuditsInspectorIssueCodeMixedContentIssue AuditsInspectorIssueCode = "MixedContentIssue"

	// AuditsInspectorIssueCodeBlockedByResponseIssue enum const.
	AuditsInspectorIssueCodeBlockedByResponseIssue AuditsInspectorIssueCode = "BlockedByResponseIssue"

	// AuditsInspectorIssueCodeHeavyAdIssue enum const.
	AuditsInspectorIssueCodeHeavyAdIssue AuditsInspectorIssueCode = "HeavyAdIssue"

	// AuditsInspectorIssueCodeContentSecurityPolicyIssue enum const.
	AuditsInspectorIssueCodeContentSecurityPolicyIssue AuditsInspectorIssueCode = "ContentSecurityPolicyIssue"

	// AuditsInspectorIssueCodeSharedArrayBufferIssue enum const.
	AuditsInspectorIssueCodeSharedArrayBufferIssue AuditsInspectorIssueCode = "SharedArrayBufferIssue"

	// AuditsInspectorIssueCodeLowTextContrastIssue enum const.
	AuditsInspectorIssueCodeLowTextContrastIssue AuditsInspectorIssueCode = "LowTextContrastIssue"

	// AuditsInspectorIssueCodeCorsIssue enum const.
	AuditsInspectorIssueCodeCorsIssue AuditsInspectorIssueCode = "CorsIssue"

	// AuditsInspectorIssueCodeAttributionReportingIssue enum const.
	AuditsInspectorIssueCodeAttributionReportingIssue AuditsInspectorIssueCode = "AttributionReportingIssue"

	// AuditsInspectorIssueCodeQuirksModeIssue enum const.
	AuditsInspectorIssueCodeQuirksModeIssue AuditsInspectorIssueCode = "QuirksModeIssue"

	// AuditsInspectorIssueCodeNavigatorUserAgentIssue enum const.
	AuditsInspectorIssueCodeNavigatorUserAgentIssue AuditsInspectorIssueCode = "NavigatorUserAgentIssue"

	// AuditsInspectorIssueCodeGenericIssue enum const.
	AuditsInspectorIssueCodeGenericIssue AuditsInspectorIssueCode = "GenericIssue"

	// AuditsInspectorIssueCodeDeprecationIssue enum const.
	AuditsInspectorIssueCodeDeprecationIssue AuditsInspectorIssueCode = "DeprecationIssue"

	// AuditsInspectorIssueCodeClientHintIssue enum const.
	AuditsInspectorIssueCodeClientHintIssue AuditsInspectorIssueCode = "ClientHintIssue"

	// AuditsInspectorIssueCodeFederatedAuthRequestIssue enum const.
	AuditsInspectorIssueCodeFederatedAuthRequestIssue AuditsInspectorIssueCode = "FederatedAuthRequestIssue"

	// AuditsInspectorIssueCodeBounceTrackingIssue enum const.
	AuditsInspectorIssueCodeBounceTrackingIssue AuditsInspectorIssueCode = "BounceTrackingIssue"

	// AuditsInspectorIssueCodeCookieDeprecationMetadataIssue enum const.
	AuditsInspectorIssueCodeCookieDeprecationMetadataIssue AuditsInspectorIssueCode = "CookieDeprecationMetadataIssue"

	// AuditsInspectorIssueCodeStylesheetLoadingIssue enum const.
	AuditsInspectorIssueCodeStylesheetLoadingIssue AuditsInspectorIssueCode = "StylesheetLoadingIssue"

	// AuditsInspectorIssueCodeFederatedAuthUserInfoRequestIssue enum const.
	AuditsInspectorIssueCodeFederatedAuthUserInfoRequestIssue AuditsInspectorIssueCode = "FederatedAuthUserInfoRequestIssue"

	// AuditsInspectorIssueCodePropertyRuleIssue enum const.
	AuditsInspectorIssueCodePropertyRuleIssue AuditsInspectorIssueCode = "PropertyRuleIssue"

	// AuditsInspectorIssueCodeSharedDictionaryIssue enum const.
	AuditsInspectorIssueCodeSharedDictionaryIssue AuditsInspectorIssueCode = "SharedDictionaryIssue"
)

type AuditsInspectorIssueDetails

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
type AuditsInspectorIssueDetails struct {
	// CookieIssueDetails (optional) ...
	CookieIssueDetails *AuditsCookieIssueDetails `json:"cookieIssueDetails,omitempty"`

	// MixedContentIssueDetails (optional) ...
	MixedContentIssueDetails *AuditsMixedContentIssueDetails `json:"mixedContentIssueDetails,omitempty"`

	// BlockedByResponseIssueDetails (optional) ...
	BlockedByResponseIssueDetails *AuditsBlockedByResponseIssueDetails `json:"blockedByResponseIssueDetails,omitempty"`

	// HeavyAdIssueDetails (optional) ...
	HeavyAdIssueDetails *AuditsHeavyAdIssueDetails `json:"heavyAdIssueDetails,omitempty"`

	// ContentSecurityPolicyIssueDetails (optional) ...
	ContentSecurityPolicyIssueDetails *AuditsContentSecurityPolicyIssueDetails `json:"contentSecurityPolicyIssueDetails,omitempty"`

	// SharedArrayBufferIssueDetails (optional) ...
	SharedArrayBufferIssueDetails *AuditsSharedArrayBufferIssueDetails `json:"sharedArrayBufferIssueDetails,omitempty"`

	// LowTextContrastIssueDetails (optional) ...
	LowTextContrastIssueDetails *AuditsLowTextContrastIssueDetails `json:"lowTextContrastIssueDetails,omitempty"`

	// CorsIssueDetails (optional) ...
	CorsIssueDetails *AuditsCorsIssueDetails `json:"corsIssueDetails,omitempty"`

	// AttributionReportingIssueDetails (optional) ...
	AttributionReportingIssueDetails *AuditsAttributionReportingIssueDetails `json:"attributionReportingIssueDetails,omitempty"`

	// QuirksModeIssueDetails (optional) ...
	QuirksModeIssueDetails *AuditsQuirksModeIssueDetails `json:"quirksModeIssueDetails,omitempty"`

	// NavigatorUserAgentIssueDetails (deprecated) (optional) ...
	NavigatorUserAgentIssueDetails *AuditsNavigatorUserAgentIssueDetails `json:"navigatorUserAgentIssueDetails,omitempty"`

	// GenericIssueDetails (optional) ...
	GenericIssueDetails *AuditsGenericIssueDetails `json:"genericIssueDetails,omitempty"`

	// DeprecationIssueDetails (optional) ...
	DeprecationIssueDetails *AuditsDeprecationIssueDetails `json:"deprecationIssueDetails,omitempty"`

	// ClientHintIssueDetails (optional) ...
	ClientHintIssueDetails *AuditsClientHintIssueDetails `json:"clientHintIssueDetails,omitempty"`

	// FederatedAuthRequestIssueDetails (optional) ...
	FederatedAuthRequestIssueDetails *AuditsFederatedAuthRequestIssueDetails `json:"federatedAuthRequestIssueDetails,omitempty"`

	// BounceTrackingIssueDetails (optional) ...
	BounceTrackingIssueDetails *AuditsBounceTrackingIssueDetails `json:"bounceTrackingIssueDetails,omitempty"`

	// CookieDeprecationMetadataIssueDetails (optional) ...
	CookieDeprecationMetadataIssueDetails *AuditsCookieDeprecationMetadataIssueDetails `json:"cookieDeprecationMetadataIssueDetails,omitempty"`

	// StylesheetLoadingIssueDetails (optional) ...
	StylesheetLoadingIssueDetails *AuditsStylesheetLoadingIssueDetails `json:"stylesheetLoadingIssueDetails,omitempty"`

	// PropertyRuleIssueDetails (optional) ...
	PropertyRuleIssueDetails *AuditsPropertyRuleIssueDetails `json:"propertyRuleIssueDetails,omitempty"`

	// FederatedAuthUserInfoRequestIssueDetails (optional) ...
	FederatedAuthUserInfoRequestIssueDetails *AuditsFederatedAuthUserInfoRequestIssueDetails `json:"federatedAuthUserInfoRequestIssueDetails,omitempty"`

	// SharedDictionaryIssueDetails (optional) ...
	SharedDictionaryIssueDetails *AuditsSharedDictionaryIssueDetails `json:"sharedDictionaryIssueDetails,omitempty"`
}

AuditsInspectorIssueDetails This struct holds a list of optional fields with additional information specific to the kind of issue. When adding a new issue code, please also add a new optional field to this type.

type AuditsIssueAdded

1
2
3
4
type AuditsIssueAdded struct {
	// Issue ...
	Issue *AuditsInspectorIssue `json:"issue"`
}

AuditsIssueAdded …

(AuditsIssueAdded) ProtoEvent <- 0.72.0

1
func (evt AuditsIssueAdded) ProtoEvent() string

ProtoEvent name.

type AuditsIssueID <- 0.101.5

1
type AuditsIssueID string

AuditsIssueID A unique id for a DevTools inspector issue. Allows other entities (e.g. exceptions, CDP message, console messages, etc.) to reference an issue.

type AuditsLowTextContrastIssueDetails <- 0.93.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type AuditsLowTextContrastIssueDetails struct {
	// ViolatingNodeID ...
	ViolatingNodeID DOMBackendNodeID `json:"violatingNodeId"`

	// ViolatingNodeSelector ...
	ViolatingNodeSelector string `json:"violatingNodeSelector"`

	// ContrastRatio ...
	ContrastRatio float64 `json:"contrastRatio"`

	// ThresholdAA ...
	ThresholdAA float64 `json:"thresholdAA"`

	// ThresholdAAA ...
	ThresholdAAA float64 `json:"thresholdAAA"`

	// FontSize ...
	FontSize string `json:"fontSize"`

	// FontWeight ...
	FontWeight string `json:"fontWeight"`
}

AuditsLowTextContrastIssueDetails …

type AuditsMixedContentIssueDetails <- 0.48.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type AuditsMixedContentIssueDetails struct {
	// ResourceType (optional) The type of resource causing the mixed content issue (css, js, iframe,
	// form,...). Marked as optional because it is mapped to from
	// blink::mojom::RequestContextType, which will be replaced
	// by network::mojom::RequestDestination
	ResourceType AuditsMixedContentResourceType `json:"resourceType,omitempty"`

	// ResolutionStatus The way the mixed content issue is being resolved.
	ResolutionStatus AuditsMixedContentResolutionStatus `json:"resolutionStatus"`

	// InsecureURL The unsafe http url causing the mixed content issue.
	InsecureURL string `json:"insecureURL"`

	// MainResourceURL The url responsible for the call to an unsafe url.
	MainResourceURL string `json:"mainResourceURL"`

	// Request (optional) The mixed content request.
	// Does not always exist (e.g. for unsafe form submission urls).
	Request *AuditsAffectedRequest `json:"request,omitempty"`

	// Frame (optional) Optional because not every mixed content issue is necessarily linked to a frame.
	Frame *AuditsAffectedFrame `json:"frame,omitempty"`
}

AuditsMixedContentIssueDetails …

type AuditsMixedContentResolutionStatus <- 0.48.0

1
type AuditsMixedContentResolutionStatus string

AuditsMixedContentResolutionStatus …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// AuditsMixedContentResolutionStatusMixedContentBlocked enum const.
	AuditsMixedContentResolutionStatusMixedContentBlocked AuditsMixedContentResolutionStatus = "MixedContentBlocked"

	// AuditsMixedContentResolutionStatusMixedContentAutomaticallyUpgraded enum const.
	AuditsMixedContentResolutionStatusMixedContentAutomaticallyUpgraded AuditsMixedContentResolutionStatus = "MixedContentAutomaticallyUpgraded"

	// AuditsMixedContentResolutionStatusMixedContentWarning enum const.
	AuditsMixedContentResolutionStatusMixedContentWarning AuditsMixedContentResolutionStatus = "MixedContentWarning"
)

type AuditsMixedContentResourceType <- 0.48.0

1
type AuditsMixedContentResourceType string

AuditsMixedContentResourceType …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const (
	// AuditsMixedContentResourceTypeAttributionSrc enum const.
	AuditsMixedContentResourceTypeAttributionSrc AuditsMixedContentResourceType = "AttributionSrc"

	// AuditsMixedContentResourceTypeAudio enum const.
	AuditsMixedContentResourceTypeAudio AuditsMixedContentResourceType = "Audio"

	// AuditsMixedContentResourceTypeBeacon enum const.
	AuditsMixedContentResourceTypeBeacon AuditsMixedContentResourceType = "Beacon"

	// AuditsMixedContentResourceTypeCSPReport enum const.
	AuditsMixedContentResourceTypeCSPReport AuditsMixedContentResourceType = "CSPReport"

	// AuditsMixedContentResourceTypeDownload enum const.
	AuditsMixedContentResourceTypeDownload AuditsMixedContentResourceType = "Download"

	// AuditsMixedContentResourceTypeEventSource enum const.
	AuditsMixedContentResourceTypeEventSource AuditsMixedContentResourceType = "EventSource"

	// AuditsMixedContentResourceTypeFavicon enum const.
	AuditsMixedContentResourceTypeFavicon AuditsMixedContentResourceType = "Favicon"

	// AuditsMixedContentResourceTypeFont enum const.
	AuditsMixedContentResourceTypeFont AuditsMixedContentResourceType = "Font"

	// AuditsMixedContentResourceTypeForm enum const.
	AuditsMixedContentResourceTypeForm AuditsMixedContentResourceType = "Form"

	// AuditsMixedContentResourceTypeFrame enum const.
	AuditsMixedContentResourceTypeFrame AuditsMixedContentResourceType = "Frame"

	// AuditsMixedContentResourceTypeImage enum const.
	AuditsMixedContentResourceTypeImage AuditsMixedContentResourceType = "Image"

	// AuditsMixedContentResourceTypeImport enum const.
	AuditsMixedContentResourceTypeImport AuditsMixedContentResourceType = "Import"

	// AuditsMixedContentResourceTypeJSON enum const.
	AuditsMixedContentResourceTypeJSON AuditsMixedContentResourceType = "JSON"

	// AuditsMixedContentResourceTypeManifest enum const.
	AuditsMixedContentResourceTypeManifest AuditsMixedContentResourceType = "Manifest"

	// AuditsMixedContentResourceTypePing enum const.
	AuditsMixedContentResourceTypePing AuditsMixedContentResourceType = "Ping"

	// AuditsMixedContentResourceTypePluginData enum const.
	AuditsMixedContentResourceTypePluginData AuditsMixedContentResourceType = "PluginData"

	// AuditsMixedContentResourceTypePluginResource enum const.
	AuditsMixedContentResourceTypePluginResource AuditsMixedContentResourceType = "PluginResource"

	// AuditsMixedContentResourceTypePrefetch enum const.
	AuditsMixedContentResourceTypePrefetch AuditsMixedContentResourceType = "Prefetch"

	// AuditsMixedContentResourceTypeResource enum const.
	AuditsMixedContentResourceTypeResource AuditsMixedContentResourceType = "Resource"

	// AuditsMixedContentResourceTypeScript enum const.
	AuditsMixedContentResourceTypeScript AuditsMixedContentResourceType = "Script"

	// AuditsMixedContentResourceTypeServiceWorker enum const.
	AuditsMixedContentResourceTypeServiceWorker AuditsMixedContentResourceType = "ServiceWorker"

	// AuditsMixedContentResourceTypeSharedWorker enum const.
	AuditsMixedContentResourceTypeSharedWorker AuditsMixedContentResourceType = "SharedWorker"

	// AuditsMixedContentResourceTypeSpeculationRules enum const.
	AuditsMixedContentResourceTypeSpeculationRules AuditsMixedContentResourceType = "SpeculationRules"

	// AuditsMixedContentResourceTypeStylesheet enum const.
	AuditsMixedContentResourceTypeStylesheet AuditsMixedContentResourceType = "Stylesheet"

	// AuditsMixedContentResourceTypeTrack enum const.
	AuditsMixedContentResourceTypeTrack AuditsMixedContentResourceType = "Track"

	// AuditsMixedContentResourceTypeVideo enum const.
	AuditsMixedContentResourceTypeVideo AuditsMixedContentResourceType = "Video"

	// AuditsMixedContentResourceTypeWorker enum const.
	AuditsMixedContentResourceTypeWorker AuditsMixedContentResourceType = "Worker"

	// AuditsMixedContentResourceTypeXMLHTTPRequest enum const.
	AuditsMixedContentResourceTypeXMLHTTPRequest AuditsMixedContentResourceType = "XMLHttpRequest"

	// AuditsMixedContentResourceTypeXSLT enum const.
	AuditsMixedContentResourceTypeXSLT AuditsMixedContentResourceType = "XSLT"
)

type AuditsNavigatorUserAgentIssueDetails <- 0.101.5

1
2
3
4
5
6
7
type AuditsNavigatorUserAgentIssueDetails struct {
	// URL ...
	URL string `json:"url"`

	// Location (optional) ...
	Location *AuditsSourceCodeLocation `json:"location,omitempty"`
}

AuditsNavigatorUserAgentIssueDetails (deprecated) …

type AuditsPropertyRuleIssueDetails <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsPropertyRuleIssueDetails struct {
	// SourceCodeLocation Source code position of the property rule.
	SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`

	// PropertyRuleIssueReason Reason why the property rule was discarded.
	PropertyRuleIssueReason AuditsPropertyRuleIssueReason `json:"propertyRuleIssueReason"`

	// PropertyValue (optional) The value of the property rule property that failed to parse
	PropertyValue string `json:"propertyValue,omitempty"`
}

AuditsPropertyRuleIssueDetails This issue warns about errors in property rules that lead to property registrations being ignored.

type AuditsPropertyRuleIssueReason <- 0.115.0

1
type AuditsPropertyRuleIssueReason string

AuditsPropertyRuleIssueReason …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// AuditsPropertyRuleIssueReasonInvalidSyntax enum const.
	AuditsPropertyRuleIssueReasonInvalidSyntax AuditsPropertyRuleIssueReason = "InvalidSyntax"

	// AuditsPropertyRuleIssueReasonInvalidInitialValue enum const.
	AuditsPropertyRuleIssueReasonInvalidInitialValue AuditsPropertyRuleIssueReason = "InvalidInitialValue"

	// AuditsPropertyRuleIssueReasonInvalidInherits enum const.
	AuditsPropertyRuleIssueReasonInvalidInherits AuditsPropertyRuleIssueReason = "InvalidInherits"

	// AuditsPropertyRuleIssueReasonInvalidName enum const.
	AuditsPropertyRuleIssueReasonInvalidName AuditsPropertyRuleIssueReason = "InvalidName"
)

type AuditsQuirksModeIssueDetails <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type AuditsQuirksModeIssueDetails struct {
	// IsLimitedQuirksMode If false, it means the document's mode is "quirks"
	// instead of "limited-quirks".
	IsLimitedQuirksMode bool `json:"isLimitedQuirksMode"`

	// DocumentNodeID ...
	DocumentNodeID DOMBackendNodeID `json:"documentNodeId"`

	// URL ...
	URL string `json:"url"`

	// FrameID ...
	FrameID PageFrameID `json:"frameId"`

	// LoaderID ...
	LoaderID NetworkLoaderID `json:"loaderId"`
}

AuditsQuirksModeIssueDetails Details for issues about documents in Quirks Mode or Limited Quirks Mode that affects page layouting.

type AuditsSharedArrayBufferIssueDetails <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsSharedArrayBufferIssueDetails struct {
	// SourceCodeLocation ...
	SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`

	// IsWarning ...
	IsWarning bool `json:"isWarning"`

	// Type ...
	Type AuditsSharedArrayBufferIssueType `json:"type"`
}

AuditsSharedArrayBufferIssueDetails Details for a issue arising from an SAB being instantiated in, or transferred to a context that is not cross-origin isolated.

type AuditsSharedArrayBufferIssueType <- 0.90.0

1
type AuditsSharedArrayBufferIssueType string

AuditsSharedArrayBufferIssueType …

1
2
3
4
5
6
7
const (
	// AuditsSharedArrayBufferIssueTypeTransferIssue enum const.
	AuditsSharedArrayBufferIssueTypeTransferIssue AuditsSharedArrayBufferIssueType = "TransferIssue"

	// AuditsSharedArrayBufferIssueTypeCreationIssue enum const.
	AuditsSharedArrayBufferIssueTypeCreationIssue AuditsSharedArrayBufferIssueType = "CreationIssue"
)

type AuditsSharedDictionaryError <- 0.116.0

1
type AuditsSharedDictionaryError string

AuditsSharedDictionaryError …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
const (
	// AuditsSharedDictionaryErrorUseErrorCrossOriginNoCorsRequest enum const.
	AuditsSharedDictionaryErrorUseErrorCrossOriginNoCorsRequest AuditsSharedDictionaryError = "UseErrorCrossOriginNoCorsRequest"

	// AuditsSharedDictionaryErrorUseErrorDictionaryLoadFailure enum const.
	AuditsSharedDictionaryErrorUseErrorDictionaryLoadFailure AuditsSharedDictionaryError = "UseErrorDictionaryLoadFailure"

	// AuditsSharedDictionaryErrorUseErrorMatchingDictionaryNotUsed enum const.
	AuditsSharedDictionaryErrorUseErrorMatchingDictionaryNotUsed AuditsSharedDictionaryError = "UseErrorMatchingDictionaryNotUsed"

	// AuditsSharedDictionaryErrorUseErrorUnexpectedContentDictionaryHeader enum const.
	AuditsSharedDictionaryErrorUseErrorUnexpectedContentDictionaryHeader AuditsSharedDictionaryError = "UseErrorUnexpectedContentDictionaryHeader"

	// AuditsSharedDictionaryErrorWriteErrorCossOriginNoCorsRequest enum const.
	AuditsSharedDictionaryErrorWriteErrorCossOriginNoCorsRequest AuditsSharedDictionaryError = "WriteErrorCossOriginNoCorsRequest"

	// AuditsSharedDictionaryErrorWriteErrorDisallowedBySettings enum const.
	AuditsSharedDictionaryErrorWriteErrorDisallowedBySettings AuditsSharedDictionaryError = "WriteErrorDisallowedBySettings"

	// AuditsSharedDictionaryErrorWriteErrorExpiredResponse enum const.
	AuditsSharedDictionaryErrorWriteErrorExpiredResponse AuditsSharedDictionaryError = "WriteErrorExpiredResponse"

	// AuditsSharedDictionaryErrorWriteErrorFeatureDisabled enum const.
	AuditsSharedDictionaryErrorWriteErrorFeatureDisabled AuditsSharedDictionaryError = "WriteErrorFeatureDisabled"

	// AuditsSharedDictionaryErrorWriteErrorInsufficientResources enum const.
	AuditsSharedDictionaryErrorWriteErrorInsufficientResources AuditsSharedDictionaryError = "WriteErrorInsufficientResources"

	// AuditsSharedDictionaryErrorWriteErrorInvalidMatchField enum const.
	AuditsSharedDictionaryErrorWriteErrorInvalidMatchField AuditsSharedDictionaryError = "WriteErrorInvalidMatchField"

	// AuditsSharedDictionaryErrorWriteErrorInvalidStructuredHeader enum const.
	AuditsSharedDictionaryErrorWriteErrorInvalidStructuredHeader AuditsSharedDictionaryError = "WriteErrorInvalidStructuredHeader"

	// AuditsSharedDictionaryErrorWriteErrorNavigationRequest enum const.
	AuditsSharedDictionaryErrorWriteErrorNavigationRequest AuditsSharedDictionaryError = "WriteErrorNavigationRequest"

	// AuditsSharedDictionaryErrorWriteErrorNoMatchField enum const.
	AuditsSharedDictionaryErrorWriteErrorNoMatchField AuditsSharedDictionaryError = "WriteErrorNoMatchField"

	// AuditsSharedDictionaryErrorWriteErrorNonListMatchDestField enum const.
	AuditsSharedDictionaryErrorWriteErrorNonListMatchDestField AuditsSharedDictionaryError = "WriteErrorNonListMatchDestField"

	// AuditsSharedDictionaryErrorWriteErrorNonSecureContext enum const.
	AuditsSharedDictionaryErrorWriteErrorNonSecureContext AuditsSharedDictionaryError = "WriteErrorNonSecureContext"

	// AuditsSharedDictionaryErrorWriteErrorNonStringIDField enum const.
	AuditsSharedDictionaryErrorWriteErrorNonStringIDField AuditsSharedDictionaryError = "WriteErrorNonStringIdField"

	// AuditsSharedDictionaryErrorWriteErrorNonStringInMatchDestList enum const.
	AuditsSharedDictionaryErrorWriteErrorNonStringInMatchDestList AuditsSharedDictionaryError = "WriteErrorNonStringInMatchDestList"

	// AuditsSharedDictionaryErrorWriteErrorNonStringMatchField enum const.
	AuditsSharedDictionaryErrorWriteErrorNonStringMatchField AuditsSharedDictionaryError = "WriteErrorNonStringMatchField"

	// AuditsSharedDictionaryErrorWriteErrorNonTokenTypeField enum const.
	AuditsSharedDictionaryErrorWriteErrorNonTokenTypeField AuditsSharedDictionaryError = "WriteErrorNonTokenTypeField"

	// AuditsSharedDictionaryErrorWriteErrorRequestAborted enum const.
	AuditsSharedDictionaryErrorWriteErrorRequestAborted AuditsSharedDictionaryError = "WriteErrorRequestAborted"

	// AuditsSharedDictionaryErrorWriteErrorShuttingDown enum const.
	AuditsSharedDictionaryErrorWriteErrorShuttingDown AuditsSharedDictionaryError = "WriteErrorShuttingDown"

	// AuditsSharedDictionaryErrorWriteErrorTooLongIDField enum const.
	AuditsSharedDictionaryErrorWriteErrorTooLongIDField AuditsSharedDictionaryError = "WriteErrorTooLongIdField"

	// AuditsSharedDictionaryErrorWriteErrorUnsupportedType enum const.
	AuditsSharedDictionaryErrorWriteErrorUnsupportedType AuditsSharedDictionaryError = "WriteErrorUnsupportedType"
)

type AuditsSharedDictionaryIssueDetails <- 0.116.0

1
2
3
4
5
6
7
type AuditsSharedDictionaryIssueDetails struct {
	// SharedDictionaryError ...
	SharedDictionaryError AuditsSharedDictionaryError `json:"sharedDictionaryError"`

	// Request ...
	Request *AuditsAffectedRequest `json:"request"`
}

AuditsSharedDictionaryIssueDetails …

type AuditsSourceCodeLocation <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type AuditsSourceCodeLocation struct {
	// ScriptID (optional) ...
	ScriptID RuntimeScriptID `json:"scriptId,omitempty"`

	// URL ...
	URL string `json:"url"`

	// LineNumber ...
	LineNumber int `json:"lineNumber"`

	// ColumnNumber ...
	ColumnNumber int `json:"columnNumber"`
}

AuditsSourceCodeLocation …

type AuditsStyleSheetLoadingIssueReason <- 0.115.0

1
type AuditsStyleSheetLoadingIssueReason string

AuditsStyleSheetLoadingIssueReason …

1
2
3
4
5
6
7
const (
	// AuditsStyleSheetLoadingIssueReasonLateImportRule enum const.
	AuditsStyleSheetLoadingIssueReasonLateImportRule AuditsStyleSheetLoadingIssueReason = "LateImportRule"

	// AuditsStyleSheetLoadingIssueReasonRequestFailed enum const.
	AuditsStyleSheetLoadingIssueReasonRequestFailed AuditsStyleSheetLoadingIssueReason = "RequestFailed"
)

type AuditsStylesheetLoadingIssueDetails <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AuditsStylesheetLoadingIssueDetails struct {
	// SourceCodeLocation Source code position that referenced the failing stylesheet.
	SourceCodeLocation *AuditsSourceCodeLocation `json:"sourceCodeLocation"`

	// StyleSheetLoadingIssueReason Reason why the stylesheet couldn't be loaded.
	StyleSheetLoadingIssueReason AuditsStyleSheetLoadingIssueReason `json:"styleSheetLoadingIssueReason"`

	// FailedRequestInfo (optional) Contains additional info when the failure was due to a request.
	FailedRequestInfo *AuditsFailedRequestInfo `json:"failedRequestInfo,omitempty"`
}

AuditsStylesheetLoadingIssueDetails This issue warns when a referenced stylesheet couldn’t be loaded.

type AutofillAddress <- 0.115.0

1
2
3
4
type AutofillAddress struct {
	// Fields fields and values defining an address.
	Fields []*AutofillAddressField `json:"fields"`
}

AutofillAddress …

type AutofillAddressField <- 0.115.0

1
2
3
4
5
6
7
type AutofillAddressField struct {
	// Name address field name, for example GIVEN_NAME.
	Name string `json:"name"`

	// Value address field value, for example Jon Doe.
	Value string `json:"value"`
}

AutofillAddressField …

type AutofillAddressFields <- 0.115.0

1
2
3
4
type AutofillAddressFields struct {
	// Fields ...
	Fields []*AutofillAddressField `json:"fields"`
}

AutofillAddressFields A list of address fields.

type AutofillAddressFormFilled <- 0.115.0

1
2
3
4
5
6
7
8
type AutofillAddressFormFilled struct {
	// FilledFields Information about the fields that were filled
	FilledFields []*AutofillFilledField `json:"filledFields"`

	// AddressUI An UI representation of the address used to fill the form.
	// Consists of a 2D array where each child represents an address/profile line.
	AddressUI *AutofillAddressUI `json:"addressUi"`
}

AutofillAddressFormFilled Emitted when an address form is filled.

(AutofillAddressFormFilled) ProtoEvent <- 0.115.0

1
func (evt AutofillAddressFormFilled) ProtoEvent() string

ProtoEvent name.

type AutofillAddressUI <- 0.115.0

1
2
3
4
type AutofillAddressUI struct {
	// AddressFields A two dimension array containing the representation of values from an address profile.
	AddressFields []*AutofillAddressFields `json:"addressFields"`
}

AutofillAddressUI Defines how an address can be displayed like in chrome://settings/addresses. Address UI is a two dimensional array, each inner array is an “address information line”, and when rendered in a UI surface should be displayed as such. The following address UI for instance: [[{name: “GIVE_NAME”, value: “Jon”}, {name: “FAMILY_NAME”, value: “Doe”}], [{name: “CITY”, value: “Munich”}, {name: “ZIP”, value: “81456”}]] should allow the receiver to render: Jon Doe Munich 81456.

type AutofillCreditCard <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type AutofillCreditCard struct {
	// Number 16-digit credit card number.
	Number string `json:"number"`

	// Name of the credit card owner.
	Name string `json:"name"`

	// ExpiryMonth 2-digit expiry month.
	ExpiryMonth string `json:"expiryMonth"`

	// ExpiryYear 4-digit expiry year.
	ExpiryYear string `json:"expiryYear"`

	// Cvc 3-digit card verification code.
	Cvc string `json:"cvc"`
}

AutofillCreditCard …

type AutofillDisable <- 0.115.0

1
type AutofillDisable struct{}

AutofillDisable Disables autofill domain notifications.

(AutofillDisable) Call <- 0.115.0

1
func (m AutofillDisable) Call(c Client) error

Call sends the request.

(AutofillDisable) ProtoReq <- 0.115.0

1
func (m AutofillDisable) ProtoReq() string

ProtoReq name.

type AutofillEnable <- 0.115.0

1
type AutofillEnable struct{}

AutofillEnable Enables autofill domain notifications.

(AutofillEnable) Call <- 0.115.0

1
func (m AutofillEnable) Call(c Client) error

Call sends the request.

(AutofillEnable) ProtoReq <- 0.115.0

1
func (m AutofillEnable) ProtoReq() string

ProtoReq name.

type AutofillFilledField <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type AutofillFilledField struct {
	// HTMLType The type of the field, e.g text, password etc.
	HTMLType string `json:"htmlType"`

	// ID the html id
	ID string `json:"id"`

	// Name the html name
	Name string `json:"name"`

	// Value the field value
	Value string `json:"value"`

	// AutofillType The actual field type, e.g FAMILY_NAME
	AutofillType string `json:"autofillType"`

	// FillingStrategy The filling strategy
	FillingStrategy AutofillFillingStrategy `json:"fillingStrategy"`

	// FrameID The frame the field belongs to
	FrameID PageFrameID `json:"frameId"`

	// FieldID The form field's DOM node
	FieldID DOMBackendNodeID `json:"fieldId"`
}

AutofillFilledField …

type AutofillFillingStrategy <- 0.115.0

1
type AutofillFillingStrategy string

AutofillFillingStrategy Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.

1
2
3
4
5
6
7
const (
	// AutofillFillingStrategyAutocompleteAttribute enum const.
	AutofillFillingStrategyAutocompleteAttribute AutofillFillingStrategy = "autocompleteAttribute"

	// AutofillFillingStrategyAutofillInferred enum const.
	AutofillFillingStrategyAutofillInferred AutofillFillingStrategy = "autofillInferred"
)

type AutofillSetAddresses <- 0.115.0

1
2
3
4
type AutofillSetAddresses struct {
	// Addresses ...
	Addresses []*AutofillAddress `json:"addresses"`
}

AutofillSetAddresses Set addresses so that developers can verify their forms implementation.

(AutofillSetAddresses) Call <- 0.115.0

1
func (m AutofillSetAddresses) Call(c Client) error

Call sends the request.

(AutofillSetAddresses) ProtoReq <- 0.115.0

1
func (m AutofillSetAddresses) ProtoReq() string

ProtoReq name.

type AutofillTrigger <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type AutofillTrigger struct {
	// FieldID Identifies a field that serves as an anchor for autofill.
	FieldID DOMBackendNodeID `json:"fieldId"`

	// FrameID (optional) Identifies the frame that field belongs to.
	FrameID PageFrameID `json:"frameId,omitempty"`

	// Card Credit card information to fill out the form. Credit card data is not saved.
	Card *AutofillCreditCard `json:"card"`
}

AutofillTrigger Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.

(AutofillTrigger) Call <- 0.115.0

1
func (m AutofillTrigger) Call(c Client) error

Call sends the request.

(AutofillTrigger) ProtoReq <- 0.115.0

1
func (m AutofillTrigger) ProtoReq() string

ProtoReq name.

type BackgroundServiceBackgroundServiceEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type BackgroundServiceBackgroundServiceEvent struct {
	// Timestamp of the event (in seconds).
	Timestamp TimeSinceEpoch `json:"timestamp"`

	// Origin The origin this event belongs to.
	Origin string `json:"origin"`

	// ServiceWorkerRegistrationID The Service Worker ID that initiated the event.
	ServiceWorkerRegistrationID ServiceWorkerRegistrationID `json:"serviceWorkerRegistrationId"`

	// Service The Background Service this event belongs to.
	Service BackgroundServiceServiceName `json:"service"`

	// EventName A description of the event.
	EventName string `json:"eventName"`

	// InstanceID An identifier that groups related events together.
	InstanceID string `json:"instanceId"`

	// EventMetadata A list of event-specific information.
	EventMetadata []*BackgroundServiceEventMetadata `json:"eventMetadata"`

	// StorageKey Storage key this event belongs to.
	StorageKey string `json:"storageKey"`
}

BackgroundServiceBackgroundServiceEvent …

type BackgroundServiceBackgroundServiceEventReceived

1
2
3
4
type BackgroundServiceBackgroundServiceEventReceived struct {
	// BackgroundServiceEvent ...
	BackgroundServiceEvent *BackgroundServiceBackgroundServiceEvent `json:"backgroundServiceEvent"`
}

BackgroundServiceBackgroundServiceEventReceived Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.

(BackgroundServiceBackgroundServiceEventReceived) ProtoEvent <- 0.72.0

1
func (evt BackgroundServiceBackgroundServiceEventReceived) ProtoEvent() string

ProtoEvent name.

type BackgroundServiceClearEvents

1
2
3
4
type BackgroundServiceClearEvents struct {
	// Service ...
	Service BackgroundServiceServiceName `json:"service"`
}

BackgroundServiceClearEvents Clears all stored data for the service.

(BackgroundServiceClearEvents) Call

1
func (m BackgroundServiceClearEvents) Call(c Client) error

Call sends the request.

(BackgroundServiceClearEvents) ProtoReq <- 0.74.0

1
func (m BackgroundServiceClearEvents) ProtoReq() string

ProtoReq name.

type BackgroundServiceEventMetadata

1
2
3
4
5
6
7
type BackgroundServiceEventMetadata struct {
	// Key ...
	Key string `json:"key"`

	// Value ...
	Value string `json:"value"`
}

BackgroundServiceEventMetadata A key-value pair for additional event information to pass along.

type BackgroundServiceRecordingStateChanged

1
2
3
4
5
6
7
type BackgroundServiceRecordingStateChanged struct {
	// IsRecording ...
	IsRecording bool `json:"isRecording"`

	// Service ...
	Service BackgroundServiceServiceName `json:"service"`
}

BackgroundServiceRecordingStateChanged Called when the recording state for the service has been updated.

(BackgroundServiceRecordingStateChanged) ProtoEvent <- 0.72.0

1
func (evt BackgroundServiceRecordingStateChanged) ProtoEvent() string

ProtoEvent name.

type BackgroundServiceServiceName

1
type BackgroundServiceServiceName string

BackgroundServiceServiceName The Background Service that will be associated with the commands/events. Every Background Service operates independently, but they share the same API.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// BackgroundServiceServiceNameBackgroundFetch enum const.
	BackgroundServiceServiceNameBackgroundFetch BackgroundServiceServiceName = "backgroundFetch"

	// BackgroundServiceServiceNameBackgroundSync enum const.
	BackgroundServiceServiceNameBackgroundSync BackgroundServiceServiceName = "backgroundSync"

	// BackgroundServiceServiceNamePushMessaging enum const.
	BackgroundServiceServiceNamePushMessaging BackgroundServiceServiceName = "pushMessaging"

	// BackgroundServiceServiceNameNotifications enum const.
	BackgroundServiceServiceNameNotifications BackgroundServiceServiceName = "notifications"

	// BackgroundServiceServiceNamePaymentHandler enum const.
	BackgroundServiceServiceNamePaymentHandler BackgroundServiceServiceName = "paymentHandler"

	// BackgroundServiceServiceNamePeriodicBackgroundSync enum const.
	BackgroundServiceServiceNamePeriodicBackgroundSync BackgroundServiceServiceName = "periodicBackgroundSync"
)

type BackgroundServiceSetRecording

1
2
3
4
5
6
7
type BackgroundServiceSetRecording struct {
	// ShouldRecord ...
	ShouldRecord bool `json:"shouldRecord"`

	// Service ...
	Service BackgroundServiceServiceName `json:"service"`
}

BackgroundServiceSetRecording Set the recording state for the service.

(BackgroundServiceSetRecording) Call

1
func (m BackgroundServiceSetRecording) Call(c Client) error

Call sends the request.

(BackgroundServiceSetRecording) ProtoReq <- 0.74.0

1
func (m BackgroundServiceSetRecording) ProtoReq() string

ProtoReq name.

type BackgroundServiceStartObserving

1
2
3
4
type BackgroundServiceStartObserving struct {
	// Service ...
	Service BackgroundServiceServiceName `json:"service"`
}

BackgroundServiceStartObserving Enables event updates for the service.

(BackgroundServiceStartObserving) Call

1
func (m BackgroundServiceStartObserving) Call(c Client) error

Call sends the request.

(BackgroundServiceStartObserving) ProtoReq <- 0.74.0

1
func (m BackgroundServiceStartObserving) ProtoReq() string

ProtoReq name.

type BackgroundServiceStopObserving

1
2
3
4
type BackgroundServiceStopObserving struct {
	// Service ...
	Service BackgroundServiceServiceName `json:"service"`
}

BackgroundServiceStopObserving Disables event updates for the service.

(BackgroundServiceStopObserving) Call

1
func (m BackgroundServiceStopObserving) Call(c Client) error

Call sends the request.

(BackgroundServiceStopObserving) ProtoReq <- 0.74.0

1
func (m BackgroundServiceStopObserving) ProtoReq() string

ProtoReq name.

type BrowserAddPrivacySandboxEnrollmentOverride <- 0.115.0

1
2
3
4
type BrowserAddPrivacySandboxEnrollmentOverride struct {
	// URL ...
	URL string `json:"url"`
}

BrowserAddPrivacySandboxEnrollmentOverride Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets.

(BrowserAddPrivacySandboxEnrollmentOverride) Call <- 0.115.0

1
func (m BrowserAddPrivacySandboxEnrollmentOverride) Call(c Client) error

Call sends the request.

(BrowserAddPrivacySandboxEnrollmentOverride) ProtoReq <- 0.115.0

1
func (m BrowserAddPrivacySandboxEnrollmentOverride) ProtoReq() string

ProtoReq name.

type BrowserBounds

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type BrowserBounds struct {
	// Left (optional) The offset from the left edge of the screen to the window in pixels.
	Left *int `json:"left,omitempty"`

	// Top (optional) The offset from the top edge of the screen to the window in pixels.
	Top *int `json:"top,omitempty"`

	// Width (optional) The window width in pixels.
	Width *int `json:"width,omitempty"`

	// Height (optional) The window height in pixels.
	Height *int `json:"height,omitempty"`

	// WindowState (optional) The window state. Default to normal.
	WindowState BrowserWindowState `json:"windowState,omitempty"`
}

BrowserBounds (experimental) Browser window bounds information.

type BrowserBrowserCommandID <- 0.90.0

1
type BrowserBrowserCommandID string

BrowserBrowserCommandID (experimental) Browser command ids used by executeBrowserCommand.

1
2
3
4
5
6
7
const (
	// BrowserBrowserCommandIDOpenTabSearch enum const.
	BrowserBrowserCommandIDOpenTabSearch BrowserBrowserCommandID = "openTabSearch"

	// BrowserBrowserCommandIDCloseTabSearch enum const.
	BrowserBrowserCommandIDCloseTabSearch BrowserBrowserCommandID = "closeTabSearch"
)

type BrowserBrowserContextID

1
type BrowserBrowserContextID string

BrowserBrowserContextID (experimental) …

type BrowserBucket

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type BrowserBucket struct {
	// Low Minimum value (inclusive).
	Low int `json:"low"`

	// High Maximum value (exclusive).
	High int `json:"high"`

	// Count Number of samples.
	Count int `json:"count"`
}

BrowserBucket (experimental) Chrome histogram bucket.

type BrowserCancelDownload <- 0.97.5

1
2
3
4
5
6
7
type BrowserCancelDownload struct {
	// GUID Global unique identifier of the download.
	GUID string `json:"guid"`

	// BrowserContextID (optional) BrowserContext to perform the action in. When omitted, default browser context is used.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

BrowserCancelDownload (experimental) Cancel a download if in progress.

(BrowserCancelDownload) Call <- 0.97.5

1
func (m BrowserCancelDownload) Call(c Client) error

Call sends the request.

(BrowserCancelDownload) ProtoReq <- 0.97.5

1
func (m BrowserCancelDownload) ProtoReq() string

ProtoReq name.

type BrowserClose

1
type BrowserClose struct{}

BrowserClose Close browser gracefully.

(BrowserClose) Call

1
func (m BrowserClose) Call(c Client) error

Call sends the request.

(BrowserClose) ProtoReq <- 0.74.0

1
func (m BrowserClose) ProtoReq() string

ProtoReq name.

type BrowserCrash

1
type BrowserCrash struct{}

BrowserCrash (experimental) Crashes browser on the main thread.

(BrowserCrash) Call

1
func (m BrowserCrash) Call(c Client) error

Call sends the request.

(BrowserCrash) ProtoReq <- 0.74.0

1
func (m BrowserCrash) ProtoReq() string

ProtoReq name.

type BrowserCrashGpuProcess

1
type BrowserCrashGpuProcess struct{}

BrowserCrashGpuProcess (experimental) Crashes GPU process.

(BrowserCrashGpuProcess) Call

1
func (m BrowserCrashGpuProcess) Call(c Client) error

Call sends the request.

(BrowserCrashGpuProcess) ProtoReq <- 0.74.0

1
func (m BrowserCrashGpuProcess) ProtoReq() string

ProtoReq name.

type BrowserDownloadProgress <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type BrowserDownloadProgress struct {
	// GUID Global unique identifier of the download.
	GUID string `json:"guid"`

	// TotalBytes Total expected bytes to download.
	TotalBytes float64 `json:"totalBytes"`

	// ReceivedBytes Total bytes received.
	ReceivedBytes float64 `json:"receivedBytes"`

	// State Download status.
	State BrowserDownloadProgressState `json:"state"`
}

BrowserDownloadProgress (experimental) Fired when download makes progress. Last call has |done| == true.

(BrowserDownloadProgress) ProtoEvent <- 0.100.0

1
func (evt BrowserDownloadProgress) ProtoEvent() string

ProtoEvent name.

type BrowserDownloadProgressState <- 0.100.0

1
type BrowserDownloadProgressState string

BrowserDownloadProgressState enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// BrowserDownloadProgressStateInProgress enum const.
	BrowserDownloadProgressStateInProgress BrowserDownloadProgressState = "inProgress"

	// BrowserDownloadProgressStateCompleted enum const.
	BrowserDownloadProgressStateCompleted BrowserDownloadProgressState = "completed"

	// BrowserDownloadProgressStateCanceled enum const.
	BrowserDownloadProgressStateCanceled BrowserDownloadProgressState = "canceled"
)

type BrowserDownloadWillBegin <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type BrowserDownloadWillBegin struct {
	// FrameID Id of the frame that caused the download to begin.
	FrameID PageFrameID `json:"frameId"`

	// GUID Global unique identifier of the download.
	GUID string `json:"guid"`

	// URL of the resource being downloaded.
	URL string `json:"url"`

	// SuggestedFilename Suggested file name of the resource (the actual name of the file saved on disk may differ).
	SuggestedFilename string `json:"suggestedFilename"`
}

BrowserDownloadWillBegin (experimental) Fired when page is about to start a download.

(BrowserDownloadWillBegin) ProtoEvent <- 0.100.0

1
func (evt BrowserDownloadWillBegin) ProtoEvent() string

ProtoEvent name.

type BrowserExecuteBrowserCommand <- 0.90.0

1
2
3
4
type BrowserExecuteBrowserCommand struct {
	// CommandID ...
	CommandID BrowserBrowserCommandID `json:"commandId"`
}

BrowserExecuteBrowserCommand (experimental) Invoke custom browser commands used by telemetry.

(BrowserExecuteBrowserCommand) Call <- 0.90.0

1
func (m BrowserExecuteBrowserCommand) Call(c Client) error

Call sends the request.

(BrowserExecuteBrowserCommand) ProtoReq <- 0.90.0

1
func (m BrowserExecuteBrowserCommand) ProtoReq() string

ProtoReq name.

type BrowserGetBrowserCommandLine

1
type BrowserGetBrowserCommandLine struct{}

BrowserGetBrowserCommandLine (experimental) Returns the command line switches for the browser process if, and only if –enable-automation is on the commandline.

(BrowserGetBrowserCommandLine) Call

1
func (m BrowserGetBrowserCommandLine) Call(c Client) (*BrowserGetBrowserCommandLineResult, error)

Call the request.

(BrowserGetBrowserCommandLine) ProtoReq <- 0.74.0

1
func (m BrowserGetBrowserCommandLine) ProtoReq() string

ProtoReq name.

type BrowserGetBrowserCommandLineResult

1
2
3
4
type BrowserGetBrowserCommandLineResult struct {
	// Arguments Commandline parameters
	Arguments []string `json:"arguments"`
}

BrowserGetBrowserCommandLineResult (experimental) …

type BrowserGetHistogram

1
2
3
4
5
6
7
type BrowserGetHistogram struct {
	// Name Requested histogram name.
	Name string `json:"name"`

	// Delta (optional) If true, retrieve delta since last delta call.
	Delta bool `json:"delta,omitempty"`
}

BrowserGetHistogram (experimental) Get a Chrome histogram by name.

(BrowserGetHistogram) Call

1
func (m BrowserGetHistogram) Call(c Client) (*BrowserGetHistogramResult, error)

Call the request.

(BrowserGetHistogram) ProtoReq <- 0.74.0

1
func (m BrowserGetHistogram) ProtoReq() string

ProtoReq name.

type BrowserGetHistogramResult

1
2
3
4
type BrowserGetHistogramResult struct {
	// Histogram.
	Histogram *BrowserHistogram `json:"histogram"`
}

BrowserGetHistogramResult (experimental) …

type BrowserGetHistograms

1
2
3
4
5
6
7
8
9
type BrowserGetHistograms struct {
	// Query (optional) Requested substring in name. Only histograms which have query as a
	// substring in their name are extracted. An empty or absent query returns
	// all histograms.
	Query string `json:"query,omitempty"`

	// Delta (optional) If true, retrieve delta since last delta call.
	Delta bool `json:"delta,omitempty"`
}

BrowserGetHistograms (experimental) Get Chrome histograms.

(BrowserGetHistograms) Call

1
func (m BrowserGetHistograms) Call(c Client) (*BrowserGetHistogramsResult, error)

Call the request.

(BrowserGetHistograms) ProtoReq <- 0.74.0

1
func (m BrowserGetHistograms) ProtoReq() string

ProtoReq name.

type BrowserGetHistogramsResult

1
2
3
4
type BrowserGetHistogramsResult struct {
	// Histograms.
	Histograms []*BrowserHistogram `json:"histograms"`
}

BrowserGetHistogramsResult (experimental) …

type BrowserGetVersion

1
type BrowserGetVersion struct{}

BrowserGetVersion Returns version information.

(BrowserGetVersion) Call

1
func (m BrowserGetVersion) Call(c Client) (*BrowserGetVersionResult, error)

Call the request.

(BrowserGetVersion) ProtoReq <- 0.74.0

1
func (m BrowserGetVersion) ProtoReq() string

ProtoReq name.

type BrowserGetVersionResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type BrowserGetVersionResult struct {
	// ProtocolVersion Protocol version.
	ProtocolVersion string `json:"protocolVersion"`

	// Product name.
	Product string `json:"product"`

	// Revision Product revision.
	Revision string `json:"revision"`

	// UserAgent User-Agent.
	UserAgent string `json:"userAgent"`

	// JsVersion V8 version.
	JsVersion string `json:"jsVersion"`
}

BrowserGetVersionResult …

type BrowserGetWindowBounds

1
2
3
4
type BrowserGetWindowBounds struct {
	// WindowID Browser window id.
	WindowID BrowserWindowID `json:"windowId"`
}

BrowserGetWindowBounds (experimental) Get position and size of the browser window.

(BrowserGetWindowBounds) Call

1
func (m BrowserGetWindowBounds) Call(c Client) (*BrowserGetWindowBoundsResult, error)

Call the request.

(BrowserGetWindowBounds) ProtoReq <- 0.74.0

1
func (m BrowserGetWindowBounds) ProtoReq() string

ProtoReq name.

type BrowserGetWindowBoundsResult

1
2
3
4
5
type BrowserGetWindowBoundsResult struct {
	// Bounds information of the window. When window state is 'minimized', the restored window
	// position and size are returned.
	Bounds *BrowserBounds `json:"bounds"`
}

BrowserGetWindowBoundsResult (experimental) …

type BrowserGetWindowForTarget

1
2
3
4
type BrowserGetWindowForTarget struct {
	// TargetID (optional) Devtools agent host id. If called as a part of the session, associated targetId is used.
	TargetID TargetTargetID `json:"targetId,omitempty"`
}

BrowserGetWindowForTarget (experimental) Get the browser window that contains the devtools target.

(BrowserGetWindowForTarget) Call

1
func (m BrowserGetWindowForTarget) Call(c Client) (*BrowserGetWindowForTargetResult, error)

Call the request.

(BrowserGetWindowForTarget) ProtoReq <- 0.74.0

1
func (m BrowserGetWindowForTarget) ProtoReq() string

ProtoReq name.

type BrowserGetWindowForTargetResult

1
2
3
4
5
6
7
8
type BrowserGetWindowForTargetResult struct {
	// WindowID Browser window id.
	WindowID BrowserWindowID `json:"windowId"`

	// Bounds information of the window. When window state is 'minimized', the restored window
	// position and size are returned.
	Bounds *BrowserBounds `json:"bounds"`
}

BrowserGetWindowForTargetResult (experimental) …

type BrowserGrantPermissions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type BrowserGrantPermissions struct {
	// Permissions ...
	Permissions []BrowserPermissionType `json:"permissions"`

	// Origin (optional) Origin the permission applies to, all origins if not specified.
	Origin string `json:"origin,omitempty"`

	// BrowserContextID (optional) BrowserContext to override permissions. When omitted, default browser context is used.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

BrowserGrantPermissions (experimental) Grant specific permissions to the given origin and reject all others.

(BrowserGrantPermissions) Call

1
func (m BrowserGrantPermissions) Call(c Client) error

Call sends the request.

(BrowserGrantPermissions) ProtoReq <- 0.74.0

1
func (m BrowserGrantPermissions) ProtoReq() string

ProtoReq name.

type BrowserHistogram

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type BrowserHistogram struct {
	// Name.
	Name string `json:"name"`

	// Sum of sample values.
	Sum int `json:"sum"`

	// Count Total number of samples.
	Count int `json:"count"`

	// Buckets.
	Buckets []*BrowserBucket `json:"buckets"`
}

BrowserHistogram (experimental) Chrome histogram.

type BrowserPermissionDescriptor

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
type BrowserPermissionDescriptor struct {
	// Name of permission.
	// See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
	Name string `json:"name"`

	// Sysex (optional) For "midi" permission, may also specify sysex control.
	Sysex bool `json:"sysex,omitempty"`

	// UserVisibleOnly (optional) For "push" permission, may specify userVisibleOnly.
	// Note that userVisibleOnly = true is the only currently supported type.
	UserVisibleOnly bool `json:"userVisibleOnly,omitempty"`

	// AllowWithoutSanitization (optional) For "clipboard" permission, may specify allowWithoutSanitization.
	AllowWithoutSanitization bool `json:"allowWithoutSanitization,omitempty"`

	// AllowWithoutGesture (optional) For "fullscreen" permission, must specify allowWithoutGesture:true.
	AllowWithoutGesture bool `json:"allowWithoutGesture,omitempty"`

	// PanTiltZoom (optional) For "camera" permission, may specify panTiltZoom.
	PanTiltZoom bool `json:"panTiltZoom,omitempty"`
}

BrowserPermissionDescriptor (experimental) Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dom-permissiondescriptor.

type BrowserPermissionSetting

1
type BrowserPermissionSetting string

BrowserPermissionSetting (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// BrowserPermissionSettingGranted enum const.
	BrowserPermissionSettingGranted BrowserPermissionSetting = "granted"

	// BrowserPermissionSettingDenied enum const.
	BrowserPermissionSettingDenied BrowserPermissionSetting = "denied"

	// BrowserPermissionSettingPrompt enum const.
	BrowserPermissionSettingPrompt BrowserPermissionSetting = "prompt"
)

type BrowserPermissionType

1
type BrowserPermissionType string

BrowserPermissionType (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const (
	// BrowserPermissionTypeAccessibilityEvents enum const.
	BrowserPermissionTypeAccessibilityEvents BrowserPermissionType = "accessibilityEvents"

	// BrowserPermissionTypeAudioCapture enum const.
	BrowserPermissionTypeAudioCapture BrowserPermissionType = "audioCapture"

	// BrowserPermissionTypeBackgroundSync enum const.
	BrowserPermissionTypeBackgroundSync BrowserPermissionType = "backgroundSync"

	// BrowserPermissionTypeBackgroundFetch enum const.
	BrowserPermissionTypeBackgroundFetch BrowserPermissionType = "backgroundFetch"

	// BrowserPermissionTypeCapturedSurfaceControl enum const.
	BrowserPermissionTypeCapturedSurfaceControl BrowserPermissionType = "capturedSurfaceControl"

	// BrowserPermissionTypeClipboardReadWrite enum const.
	BrowserPermissionTypeClipboardReadWrite BrowserPermissionType = "clipboardReadWrite"

	// BrowserPermissionTypeClipboardSanitizedWrite enum const.
	BrowserPermissionTypeClipboardSanitizedWrite BrowserPermissionType = "clipboardSanitizedWrite"

	// BrowserPermissionTypeDisplayCapture enum const.
	BrowserPermissionTypeDisplayCapture BrowserPermissionType = "displayCapture"

	// BrowserPermissionTypeDurableStorage enum const.
	BrowserPermissionTypeDurableStorage BrowserPermissionType = "durableStorage"

	// BrowserPermissionTypeFlash enum const.
	BrowserPermissionTypeFlash BrowserPermissionType = "flash"

	// BrowserPermissionTypeGeolocation enum const.
	BrowserPermissionTypeGeolocation BrowserPermissionType = "geolocation"

	// BrowserPermissionTypeIdleDetection enum const.
	BrowserPermissionTypeIdleDetection BrowserPermissionType = "idleDetection"

	// BrowserPermissionTypeLocalFonts enum const.
	BrowserPermissionTypeLocalFonts BrowserPermissionType = "localFonts"

	// BrowserPermissionTypeMidi enum const.
	BrowserPermissionTypeMidi BrowserPermissionType = "midi"

	// BrowserPermissionTypeMidiSysex enum const.
	BrowserPermissionTypeMidiSysex BrowserPermissionType = "midiSysex"

	// BrowserPermissionTypeNfc enum const.
	BrowserPermissionTypeNfc BrowserPermissionType = "nfc"

	// BrowserPermissionTypeNotifications enum const.
	BrowserPermissionTypeNotifications BrowserPermissionType = "notifications"

	// BrowserPermissionTypePaymentHandler enum const.
	BrowserPermissionTypePaymentHandler BrowserPermissionType = "paymentHandler"

	// BrowserPermissionTypePeriodicBackgroundSync enum const.
	BrowserPermissionTypePeriodicBackgroundSync BrowserPermissionType = "periodicBackgroundSync"

	// BrowserPermissionTypeProtectedMediaIdentifier enum const.
	BrowserPermissionTypeProtectedMediaIdentifier BrowserPermissionType = "protectedMediaIdentifier"

	// BrowserPermissionTypeSensors enum const.
	BrowserPermissionTypeSensors BrowserPermissionType = "sensors"

	// BrowserPermissionTypeStorageAccess enum const.
	BrowserPermissionTypeStorageAccess BrowserPermissionType = "storageAccess"

	// BrowserPermissionTypeSpeakerSelection enum const.
	BrowserPermissionTypeSpeakerSelection BrowserPermissionType = "speakerSelection"

	// BrowserPermissionTypeTopLevelStorageAccess enum const.
	BrowserPermissionTypeTopLevelStorageAccess BrowserPermissionType = "topLevelStorageAccess"

	// BrowserPermissionTypeVideoCapture enum const.
	BrowserPermissionTypeVideoCapture BrowserPermissionType = "videoCapture"

	// BrowserPermissionTypeVideoCapturePanTiltZoom enum const.
	BrowserPermissionTypeVideoCapturePanTiltZoom BrowserPermissionType = "videoCapturePanTiltZoom"

	// BrowserPermissionTypeWakeLockScreen enum const.
	BrowserPermissionTypeWakeLockScreen BrowserPermissionType = "wakeLockScreen"

	// BrowserPermissionTypeWakeLockSystem enum const.
	BrowserPermissionTypeWakeLockSystem BrowserPermissionType = "wakeLockSystem"

	// BrowserPermissionTypeWindowManagement enum const.
	BrowserPermissionTypeWindowManagement BrowserPermissionType = "windowManagement"
)

type BrowserResetPermissions

1
2
3
4
type BrowserResetPermissions struct {
	// BrowserContextID (optional) BrowserContext to reset permissions. When omitted, default browser context is used.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

BrowserResetPermissions Reset all permission management for all origins.

(BrowserResetPermissions) Call

1
func (m BrowserResetPermissions) Call(c Client) error

Call sends the request.

(BrowserResetPermissions) ProtoReq <- 0.74.0

1
func (m BrowserResetPermissions) ProtoReq() string

ProtoReq name.

type BrowserSetDockTile

1
2
3
4
5
6
7
type BrowserSetDockTile struct {
	// BadgeLabel (optional) ...
	BadgeLabel string `json:"badgeLabel,omitempty"`

	// Image (optional) Png encoded image.
	Image []byte `json:"image,omitempty"`
}

BrowserSetDockTile (experimental) Set dock tile details, platform-specific.

(BrowserSetDockTile) Call

1
func (m BrowserSetDockTile) Call(c Client) error

Call sends the request.

(BrowserSetDockTile) ProtoReq <- 0.74.0

1
func (m BrowserSetDockTile) ProtoReq() string

ProtoReq name.

type BrowserSetDownloadBehavior

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type BrowserSetDownloadBehavior struct {
	// Behavior Whether to allow all or deny all download requests, or use default Chrome behavior if
	// available (otherwise deny). |allowAndName| allows download and names files according to
	// their download guids.
	Behavior BrowserSetDownloadBehaviorBehavior `json:"behavior"`

	// BrowserContextID (optional) BrowserContext to set download behavior. When omitted, default browser context is used.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`

	// DownloadPath (optional) The default path to save downloaded files to. This is required if behavior is set to 'allow'
	// or 'allowAndName'.
	DownloadPath string `json:"downloadPath,omitempty"`

	// EventsEnabled (optional) Whether to emit download events (defaults to false).
	EventsEnabled bool `json:"eventsEnabled,omitempty"`
}

BrowserSetDownloadBehavior (experimental) Set the behavior when downloading a file.

(BrowserSetDownloadBehavior) Call

1
func (m BrowserSetDownloadBehavior) Call(c Client) error

Call sends the request.

(BrowserSetDownloadBehavior) ProtoReq <- 0.74.0

1
func (m BrowserSetDownloadBehavior) ProtoReq() string

ProtoReq name.

type BrowserSetDownloadBehaviorBehavior

1
type BrowserSetDownloadBehaviorBehavior string

BrowserSetDownloadBehaviorBehavior enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// BrowserSetDownloadBehaviorBehaviorDeny enum const.
	BrowserSetDownloadBehaviorBehaviorDeny BrowserSetDownloadBehaviorBehavior = "deny"

	// BrowserSetDownloadBehaviorBehaviorAllow enum const.
	BrowserSetDownloadBehaviorBehaviorAllow BrowserSetDownloadBehaviorBehavior = "allow"

	// BrowserSetDownloadBehaviorBehaviorAllowAndName enum const.
	BrowserSetDownloadBehaviorBehaviorAllowAndName BrowserSetDownloadBehaviorBehavior = "allowAndName"

	// BrowserSetDownloadBehaviorBehaviorDefault enum const.
	BrowserSetDownloadBehaviorBehaviorDefault BrowserSetDownloadBehaviorBehavior = "default"
)

type BrowserSetPermission

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type BrowserSetPermission struct {
	// Permission Descriptor of permission to override.
	Permission *BrowserPermissionDescriptor `json:"permission"`

	// Setting of the permission.
	Setting BrowserPermissionSetting `json:"setting"`

	// Origin (optional) Origin the permission applies to, all origins if not specified.
	Origin string `json:"origin,omitempty"`

	// BrowserContextID (optional) Context to override. When omitted, default browser context is used.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

BrowserSetPermission (experimental) Set permission settings for given origin.

(BrowserSetPermission) Call

1
func (m BrowserSetPermission) Call(c Client) error

Call sends the request.

(BrowserSetPermission) ProtoReq <- 0.74.0

1
func (m BrowserSetPermission) ProtoReq() string

ProtoReq name.

type BrowserSetWindowBounds

1
2
3
4
5
6
7
8
type BrowserSetWindowBounds struct {
	// WindowID Browser window id.
	WindowID BrowserWindowID `json:"windowId"`

	// Bounds New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined
	// with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
	Bounds *BrowserBounds `json:"bounds"`
}

BrowserSetWindowBounds (experimental) Set position and/or size of the browser window.

(BrowserSetWindowBounds) Call

1
func (m BrowserSetWindowBounds) Call(c Client) error

Call sends the request.

(BrowserSetWindowBounds) ProtoReq <- 0.74.0

1
func (m BrowserSetWindowBounds) ProtoReq() string

ProtoReq name.

type BrowserWindowID

1
type BrowserWindowID int

BrowserWindowID (experimental) …

type BrowserWindowState

1
type BrowserWindowState string

BrowserWindowState (experimental) The state of the browser window.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// BrowserWindowStateNormal enum const.
	BrowserWindowStateNormal BrowserWindowState = "normal"

	// BrowserWindowStateMinimized enum const.
	BrowserWindowStateMinimized BrowserWindowState = "minimized"

	// BrowserWindowStateMaximized enum const.
	BrowserWindowStateMaximized BrowserWindowState = "maximized"

	// BrowserWindowStateFullscreen enum const.
	BrowserWindowStateFullscreen BrowserWindowState = "fullscreen"
)

type CSSAddRule

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type CSSAddRule struct {
	// StyleSheetID The css style sheet identifier where a new rule should be inserted.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// RuleText The text of a new rule.
	RuleText string `json:"ruleText"`

	// Location Text position of a new rule in the target style sheet.
	Location *CSSSourceRange `json:"location"`

	// NodeForPropertySyntaxValidation (experimental) (optional) NodeId for the DOM node in whose context custom property declarations for registered properties should be
	// validated. If omitted, declarations in the new rule text can only be validated statically, which may produce
	// incorrect results if the declaration contains a var() for example.
	NodeForPropertySyntaxValidation DOMNodeID `json:"nodeForPropertySyntaxValidation,omitempty"`
}

CSSAddRule Inserts a new rule with the given ruleText in a stylesheet with given styleSheetId, at the position specified by location.

(CSSAddRule) Call

1
func (m CSSAddRule) Call(c Client) (*CSSAddRuleResult, error)

Call the request.

(CSSAddRule) ProtoReq <- 0.74.0

1
func (m CSSAddRule) ProtoReq() string

ProtoReq name.

type CSSAddRuleResult

1
2
3
4
type CSSAddRuleResult struct {
	// Rule The newly created rule.
	Rule *CSSCSSRule `json:"rule"`
}

CSSAddRuleResult …

type CSSCSSComputedStyleProperty

1
2
3
4
5
6
7
type CSSCSSComputedStyleProperty struct {
	// Name Computed style property name.
	Name string `json:"name"`

	// Value Computed style property value.
	Value string `json:"value"`
}

CSSCSSComputedStyleProperty …

type CSSCSSContainerQuery <- 0.101.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type CSSCSSContainerQuery struct {
	// Text Container query text.
	Text string `json:"text"`

	// Range (optional) The associated rule header range in the enclosing stylesheet (if
	// available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// Name (optional) Optional name for the container.
	Name string `json:"name,omitempty"`

	// PhysicalAxes (optional) Optional physical axes queried for the container.
	PhysicalAxes DOMPhysicalAxes `json:"physicalAxes,omitempty"`

	// LogicalAxes (optional) Optional logical axes queried for the container.
	LogicalAxes DOMLogicalAxes `json:"logicalAxes,omitempty"`
}

CSSCSSContainerQuery (experimental) CSS container query rule descriptor.

type CSSCSSFontPaletteValuesRule <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type CSSCSSFontPaletteValuesRule struct {
	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// Origin Parent stylesheet's origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// FontPaletteName Associated font palette name.
	FontPaletteName *CSSValue `json:"fontPaletteName"`

	// Style Associated style declaration.
	Style *CSSCSSStyle `json:"style"`
}

CSSCSSFontPaletteValuesRule CSS font-palette-values rule representation.

type CSSCSSKeyframeRule

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type CSSCSSKeyframeRule struct {
	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// Origin Parent stylesheet's origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// KeyText Associated key text.
	KeyText *CSSValue `json:"keyText"`

	// Style Associated style declaration.
	Style *CSSCSSStyle `json:"style"`
}

CSSCSSKeyframeRule CSS keyframe rule representation.

type CSSCSSKeyframesRule

1
2
3
4
5
6
7
type CSSCSSKeyframesRule struct {
	// AnimationName Animation name.
	AnimationName *CSSValue `json:"animationName"`

	// Keyframes List of keyframes.
	Keyframes []*CSSCSSKeyframeRule `json:"keyframes"`
}

CSSCSSKeyframesRule CSS keyframes rule representation.

type CSSCSSLayer <- 0.103.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CSSCSSLayer struct {
	// Text Layer name.
	Text string `json:"text"`

	// Range (optional) The associated rule header range in the enclosing stylesheet (if
	// available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
}

CSSCSSLayer (experimental) CSS Layer at-rule descriptor.

type CSSCSSLayerData <- 0.103.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CSSCSSLayerData struct {
	// Name Layer name.
	Name string `json:"name"`

	// SubLayers (optional) Direct sub-layers
	SubLayers []*CSSCSSLayerData `json:"subLayers,omitempty"`

	// Order Layer order. The order determines the order of the layer in the cascade order.
	// A higher number has higher priority in the cascade order.
	Order float64 `json:"order"`
}

CSSCSSLayerData (experimental) CSS Layer data.

type CSSCSSMedia

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type CSSCSSMedia struct {
	// Text Media query text.
	Text string `json:"text"`

	// Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if
	// specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked
	// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline
	// stylesheet's STYLE tag.
	Source CSSCSSMediaSource `json:"source"`

	// SourceURL (optional) URL of the document containing the media query description.
	SourceURL string `json:"sourceURL,omitempty"`

	// Range (optional) The associated rule (@media or @import) header range in the enclosing stylesheet (if
	// available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// MediaList (optional) Array of media queries.
	MediaList []*CSSMediaQuery `json:"mediaList,omitempty"`
}

CSSCSSMedia CSS media rule descriptor.

type CSSCSSMediaSource

1
type CSSCSSMediaSource string

CSSCSSMediaSource enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// CSSCSSMediaSourceMediaRule enum const.
	CSSCSSMediaSourceMediaRule CSSCSSMediaSource = "mediaRule"

	// CSSCSSMediaSourceImportRule enum const.
	CSSCSSMediaSourceImportRule CSSCSSMediaSource = "importRule"

	// CSSCSSMediaSourceLinkedSheet enum const.
	CSSCSSMediaSourceLinkedSheet CSSCSSMediaSource = "linkedSheet"

	// CSSCSSMediaSourceInlineSheet enum const.
	CSSCSSMediaSourceInlineSheet CSSCSSMediaSource = "inlineSheet"
)

type CSSCSSPositionFallbackRule <- 0.112.9

1
2
3
4
5
6
7
type CSSCSSPositionFallbackRule struct {
	// Name ...
	Name *CSSValue `json:"name"`

	// TryRules List of keyframes.
	TryRules []*CSSCSSTryRule `json:"tryRules"`
}

CSSCSSPositionFallbackRule (deprecated) CSS position-fallback rule representation.

type CSSCSSPositionTryRule <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type CSSCSSPositionTryRule struct {
	// Name The prelude dashed-ident name
	Name *CSSValue `json:"name"`

	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// Origin Parent stylesheet's origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// Style Associated style declaration.
	Style *CSSCSSStyle `json:"style"`
}

CSSCSSPositionTryRule CSS @position-try rule representation.

type CSSCSSProperty

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
type CSSCSSProperty struct {
	// Name The property name.
	Name string `json:"name"`

	// Value The property value.
	Value string `json:"value"`

	// Important (optional) Whether the property has "!important" annotation (implies `false` if absent).
	Important bool `json:"important,omitempty"`

	// Implicit (optional) Whether the property is implicit (implies `false` if absent).
	Implicit bool `json:"implicit,omitempty"`

	// Text (optional) The full property text as specified in the style.
	Text string `json:"text,omitempty"`

	// ParsedOk (optional) Whether the property is understood by the browser (implies `true` if absent).
	ParsedOk bool `json:"parsedOk,omitempty"`

	// Disabled (optional) Whether the property is disabled by the user (present for source-based properties only).
	Disabled bool `json:"disabled,omitempty"`

	// Range (optional) The entire property range in the enclosing style declaration (if available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// LonghandProperties (experimental) (optional) Parsed longhand components of this property if it is a shorthand.
	// This field will be empty if the given property is not a shorthand.
	LonghandProperties []*CSSCSSProperty `json:"longhandProperties,omitempty"`
}

CSSCSSProperty CSS property declaration data.

type CSSCSSPropertyRegistration <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type CSSCSSPropertyRegistration struct {
	// PropertyName ...
	PropertyName string `json:"propertyName"`

	// InitialValue (optional) ...
	InitialValue *CSSValue `json:"initialValue,omitempty"`

	// Inherits ...
	Inherits bool `json:"inherits"`

	// Syntax ...
	Syntax string `json:"syntax"`
}

CSSCSSPropertyRegistration Representation of a custom property registration through CSS.registerProperty.

type CSSCSSPropertyRule <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type CSSCSSPropertyRule struct {
	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// Origin Parent stylesheet's origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// PropertyName Associated property name.
	PropertyName *CSSValue `json:"propertyName"`

	// Style Associated style declaration.
	Style *CSSCSSStyle `json:"style"`
}

CSSCSSPropertyRule CSS property at-rule representation.

type CSSCSSRule

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
type CSSCSSRule struct {
	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// SelectorList Rule selector data.
	SelectorList *CSSSelectorList `json:"selectorList"`

	// NestingSelectors (experimental) (optional) Array of selectors from ancestor style rules, sorted by distance from the current rule.
	NestingSelectors []string `json:"nestingSelectors,omitempty"`

	// Origin Parent stylesheet's origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// Style Associated style declaration.
	Style *CSSCSSStyle `json:"style"`

	// Media (optional) Media list array (for rules involving media queries). The array enumerates media queries
	// starting with the innermost one, going outwards.
	Media []*CSSCSSMedia `json:"media,omitempty"`

	// ContainerQueries (experimental) (optional) Container query list array (for rules involving container queries).
	// The array enumerates container queries starting with the innermost one, going outwards.
	ContainerQueries []*CSSCSSContainerQuery `json:"containerQueries,omitempty"`

	// Supports (experimental) (optional) @supports CSS at-rule array.
	// The array enumerates @supports at-rules starting with the innermost one, going outwards.
	Supports []*CSSCSSSupports `json:"supports,omitempty"`

	// Layers (experimental) (optional) Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
	// with the innermost layer and going outwards.
	Layers []*CSSCSSLayer `json:"layers,omitempty"`

	// Scopes (experimental) (optional) @scope CSS at-rule array.
	// The array enumerates @scope at-rules starting with the innermost one, going outwards.
	Scopes []*CSSCSSScope `json:"scopes,omitempty"`

	// RuleTypes (experimental) (optional) The array keeps the types of ancestor CSSRules from the innermost going outwards.
	RuleTypes []CSSCSSRuleType `json:"ruleTypes,omitempty"`
}

CSSCSSRule CSS rule representation.

type CSSCSSRuleType <- 0.115.0

1
type CSSCSSRuleType string

CSSCSSRuleType (experimental) Enum indicating the type of a CSS rule, used to represent the order of a style rule’s ancestors. This list only contains rule types that are collected during the ancestor rule collection.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// CSSCSSRuleTypeMediaRule enum const.
	CSSCSSRuleTypeMediaRule CSSCSSRuleType = "MediaRule"

	// CSSCSSRuleTypeSupportsRule enum const.
	CSSCSSRuleTypeSupportsRule CSSCSSRuleType = "SupportsRule"

	// CSSCSSRuleTypeContainerRule enum const.
	CSSCSSRuleTypeContainerRule CSSCSSRuleType = "ContainerRule"

	// CSSCSSRuleTypeLayerRule enum const.
	CSSCSSRuleTypeLayerRule CSSCSSRuleType = "LayerRule"

	// CSSCSSRuleTypeScopeRule enum const.
	CSSCSSRuleTypeScopeRule CSSCSSRuleType = "ScopeRule"

	// CSSCSSRuleTypeStyleRule enum const.
	CSSCSSRuleTypeStyleRule CSSCSSRuleType = "StyleRule"
)

type CSSCSSScope <- 0.108.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CSSCSSScope struct {
	// Text Scope rule text.
	Text string `json:"text"`

	// Range (optional) The associated rule header range in the enclosing stylesheet (if
	// available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
}

CSSCSSScope (experimental) CSS Scope at-rule descriptor.

type CSSCSSStyle

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type CSSCSSStyle struct {
	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// CSSProperties CSS properties in the style.
	CSSProperties []*CSSCSSProperty `json:"cssProperties"`

	// ShorthandEntries Computed values for all shorthands found in the style.
	ShorthandEntries []*CSSShorthandEntry `json:"shorthandEntries"`

	// CSSText (optional) Style declaration text (if available).
	CSSText string `json:"cssText,omitempty"`

	// Range (optional) Style declaration range in the enclosing stylesheet (if available).
	Range *CSSSourceRange `json:"range,omitempty"`
}

CSSCSSStyle CSS style representation.

type CSSCSSStyleSheetHeader

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
type CSSCSSStyleSheetHeader struct {
	// StyleSheetID The stylesheet identifier.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// FrameID Owner frame identifier.
	FrameID PageFrameID `json:"frameId"`

	// SourceURL Stylesheet resource URL. Empty if this is a constructed stylesheet created using
	// new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported
	// as a CSS module script).
	SourceURL string `json:"sourceURL"`

	// SourceMapURL (optional) URL of source map associated with the stylesheet (if any).
	SourceMapURL string `json:"sourceMapURL,omitempty"`

	// Origin Stylesheet origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// Title Stylesheet title.
	Title string `json:"title"`

	// OwnerNode (optional) The backend id for the owner node of the stylesheet.
	OwnerNode DOMBackendNodeID `json:"ownerNode,omitempty"`

	// Disabled Denotes whether the stylesheet is disabled.
	Disabled bool `json:"disabled"`

	// HasSourceURL (optional) Whether the sourceURL field value comes from the sourceURL comment.
	HasSourceURL bool `json:"hasSourceURL,omitempty"`

	// IsInline Whether this stylesheet is created for STYLE tag by parser. This flag is not set for
	// document.written STYLE tags.
	IsInline bool `json:"isInline"`

	// IsMutable Whether this stylesheet is mutable. Inline stylesheets become mutable
	// after they have been modified via CSSOM API.
	// `<link>` element's stylesheets become mutable only if DevTools modifies them.
	// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
	IsMutable bool `json:"isMutable"`

	// IsConstructed True if this stylesheet is created through new CSSStyleSheet() or imported as a
	// CSS module script.
	IsConstructed bool `json:"isConstructed"`

	// StartLine Line offset of the stylesheet within the resource (zero based).
	StartLine float64 `json:"startLine"`

	// StartColumn Column offset of the stylesheet within the resource (zero based).
	StartColumn float64 `json:"startColumn"`

	// Length Size of the content (in characters).
	Length float64 `json:"length"`

	// EndLine Line offset of the end of the stylesheet within the resource (zero based).
	EndLine float64 `json:"endLine"`

	// EndColumn Column offset of the end of the stylesheet within the resource (zero based).
	EndColumn float64 `json:"endColumn"`

	// LoadingFailed (experimental) (optional) If the style sheet was loaded from a network resource, this indicates when the resource failed to load
	LoadingFailed bool `json:"loadingFailed,omitempty"`
}

CSSCSSStyleSheetHeader CSS stylesheet metainformation.

type CSSCSSSupports <- 0.102.1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type CSSCSSSupports struct {
	// Text Supports rule text.
	Text string `json:"text"`

	// Active Whether the supports condition is satisfied.
	Active bool `json:"active"`

	// Range (optional) The associated rule header range in the enclosing stylesheet (if
	// available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// StyleSheetID (optional) Identifier of the stylesheet containing this object (if exists).
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`
}

CSSCSSSupports (experimental) CSS Supports at-rule descriptor.

type CSSCSSTryRule <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CSSCSSTryRule struct {
	// StyleSheetID (optional) The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId,omitempty"`

	// Origin Parent stylesheet's origin.
	Origin CSSStyleSheetOrigin `json:"origin"`

	// Style Associated style declaration.
	Style *CSSCSSStyle `json:"style"`
}

CSSCSSTryRule CSS try rule representation.

type CSSCollectClassNames

1
2
3
4
type CSSCollectClassNames struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
}

CSSCollectClassNames Returns all class names from specified stylesheet.

(CSSCollectClassNames) Call

1
func (m CSSCollectClassNames) Call(c Client) (*CSSCollectClassNamesResult, error)

Call the request.

(CSSCollectClassNames) ProtoReq <- 0.74.0

1
func (m CSSCollectClassNames) ProtoReq() string

ProtoReq name.

type CSSCollectClassNamesResult

1
2
3
4
type CSSCollectClassNamesResult struct {
	// ClassNames Class name list.
	ClassNames []string `json:"classNames"`
}

CSSCollectClassNamesResult …

type CSSCreateStyleSheet

1
2
3
4
type CSSCreateStyleSheet struct {
	// FrameID Identifier of the frame where "via-inspector" stylesheet should be created.
	FrameID PageFrameID `json:"frameId"`
}

CSSCreateStyleSheet Creates a new special “via-inspector” stylesheet in the frame with given frameId.

(CSSCreateStyleSheet) Call

1
func (m CSSCreateStyleSheet) Call(c Client) (*CSSCreateStyleSheetResult, error)

Call the request.

(CSSCreateStyleSheet) ProtoReq <- 0.74.0

1
func (m CSSCreateStyleSheet) ProtoReq() string

ProtoReq name.

type CSSCreateStyleSheetResult

1
2
3
4
type CSSCreateStyleSheetResult struct {
	// StyleSheetID Identifier of the created "via-inspector" stylesheet.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
}

CSSCreateStyleSheetResult …

type CSSDisable

1
type CSSDisable struct{}

CSSDisable Disables the CSS agent for the given page.

(CSSDisable) Call

1
func (m CSSDisable) Call(c Client) error

Call sends the request.

(CSSDisable) ProtoReq <- 0.74.0

1
func (m CSSDisable) ProtoReq() string

ProtoReq name.

type CSSEnable

1
type CSSEnable struct{}

CSSEnable Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received.

(CSSEnable) Call

1
func (m CSSEnable) Call(c Client) error

Call sends the request.

(CSSEnable) ProtoReq <- 0.74.0

1
func (m CSSEnable) ProtoReq() string

ProtoReq name.

type CSSFontFace

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type CSSFontFace struct {
	// FontFamily The font-family.
	FontFamily string `json:"fontFamily"`

	// FontStyle The font-style.
	FontStyle string `json:"fontStyle"`

	// FontVariant The font-variant.
	FontVariant string `json:"fontVariant"`

	// FontWeight The font-weight.
	FontWeight string `json:"fontWeight"`

	// FontStretch The font-stretch.
	FontStretch string `json:"fontStretch"`

	// FontDisplay The font-display.
	FontDisplay string `json:"fontDisplay"`

	// UnicodeRange The unicode-range.
	UnicodeRange string `json:"unicodeRange"`

	// Src The src.
	Src string `json:"src"`

	// PlatformFontFamily The resolved platform font family
	PlatformFontFamily string `json:"platformFontFamily"`

	// FontVariationAxes (optional) Available variation settings (a.k.a. "axes").
	FontVariationAxes []*CSSFontVariationAxis `json:"fontVariationAxes,omitempty"`
}

CSSFontFace Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.

type CSSFontVariationAxis <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type CSSFontVariationAxis struct {
	// Tag The font-variation-setting tag (a.k.a. "axis tag").
	Tag string `json:"tag"`

	// Name Human-readable variation name in the default language (normally, "en").
	Name string `json:"name"`

	// MinValue The minimum value (inclusive) the font supports for this tag.
	MinValue float64 `json:"minValue"`

	// MaxValue The maximum value (inclusive) the font supports for this tag.
	MaxValue float64 `json:"maxValue"`

	// DefaultValue The default value.
	DefaultValue float64 `json:"defaultValue"`
}

CSSFontVariationAxis Information about font variation axes for variable fonts.

type CSSFontsUpdated

1
2
3
4
type CSSFontsUpdated struct {
	// Font (optional) The web font that has loaded.
	Font *CSSFontFace `json:"font,omitempty"`
}

CSSFontsUpdated Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font.

(CSSFontsUpdated) ProtoEvent <- 0.72.0

1
func (evt CSSFontsUpdated) ProtoEvent() string

ProtoEvent name.

type CSSForcePseudoState

1
2
3
4
5
6
7
type CSSForcePseudoState struct {
	// NodeID The element id for which to force the pseudo state.
	NodeID DOMNodeID `json:"nodeId"`

	// ForcedPseudoClasses Element pseudo classes to force when computing the element's style.
	ForcedPseudoClasses []string `json:"forcedPseudoClasses"`
}

CSSForcePseudoState Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser.

(CSSForcePseudoState) Call

1
func (m CSSForcePseudoState) Call(c Client) error

Call sends the request.

(CSSForcePseudoState) ProtoReq <- 0.74.0

1
func (m CSSForcePseudoState) ProtoReq() string

ProtoReq name.

type CSSGetBackgroundColors

1
2
3
4
type CSSGetBackgroundColors struct {
	// NodeID Id of the node to get background colors for.
	NodeID DOMNodeID `json:"nodeId"`
}

CSSGetBackgroundColors …

(CSSGetBackgroundColors) Call

1
func (m CSSGetBackgroundColors) Call(c Client) (*CSSGetBackgroundColorsResult, error)

Call the request.

(CSSGetBackgroundColors) ProtoReq <- 0.74.0

1
func (m CSSGetBackgroundColors) ProtoReq() string

ProtoReq name.

type CSSGetBackgroundColorsResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type CSSGetBackgroundColorsResult struct {
	// BackgroundColors (optional) The range of background colors behind this element, if it contains any visible text. If no
	// visible text is present, this will be undefined. In the case of a flat background color,
	// this will consist of simply that color. In the case of a gradient, this will consist of each
	// of the color stops. For anything more complicated, this will be an empty array. Images will
	// be ignored (as if the image had failed to load).
	BackgroundColors []string `json:"backgroundColors,omitempty"`

	// ComputedFontSize (optional) The computed font size for this node, as a CSS computed value string (e.g. '12px').
	ComputedFontSize string `json:"computedFontSize,omitempty"`

	// ComputedFontWeight (optional) The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or
	// '100').
	ComputedFontWeight string `json:"computedFontWeight,omitempty"`
}

CSSGetBackgroundColorsResult …

type CSSGetComputedStyleForNode

1
2
3
4
type CSSGetComputedStyleForNode struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`
}

CSSGetComputedStyleForNode Returns the computed style for a DOM node identified by nodeId.

(CSSGetComputedStyleForNode) Call

1
func (m CSSGetComputedStyleForNode) Call(c Client) (*CSSGetComputedStyleForNodeResult, error)

Call the request.

(CSSGetComputedStyleForNode) ProtoReq <- 0.74.0

1
func (m CSSGetComputedStyleForNode) ProtoReq() string

ProtoReq name.

type CSSGetComputedStyleForNodeResult

1
2
3
4
type CSSGetComputedStyleForNodeResult struct {
	// ComputedStyle Computed style for the specified DOM node.
	ComputedStyle []*CSSCSSComputedStyleProperty `json:"computedStyle"`
}

CSSGetComputedStyleForNodeResult …

type CSSGetInlineStylesForNode

1
2
3
4
type CSSGetInlineStylesForNode struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`
}

CSSGetInlineStylesForNode Returns the styles defined inline (explicitly in the “style” attribute and implicitly, using DOM attributes) for a DOM node identified by nodeId.

(CSSGetInlineStylesForNode) Call

1
func (m CSSGetInlineStylesForNode) Call(c Client) (*CSSGetInlineStylesForNodeResult, error)

Call the request.

(CSSGetInlineStylesForNode) ProtoReq <- 0.74.0

1
func (m CSSGetInlineStylesForNode) ProtoReq() string

ProtoReq name.

type CSSGetInlineStylesForNodeResult

1
2
3
4
5
6
7
type CSSGetInlineStylesForNodeResult struct {
	// InlineStyle (optional) Inline style for the specified DOM node.
	InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"`

	// AttributesStyle (optional) Attribute-defined element style (e.g. resulting from "width=20 height=100%").
	AttributesStyle *CSSCSSStyle `json:"attributesStyle,omitempty"`
}

CSSGetInlineStylesForNodeResult …

type CSSGetLayersForNode <- 0.103.0

1
2
3
4
type CSSGetLayersForNode struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`
}

CSSGetLayersForNode (experimental) Returns all layers parsed by the rendering engine for the tree scope of a node. Given a DOM element identified by nodeId, getLayersForNode returns the root layer for the nearest ancestor document or shadow root. The layer root contains the full layer tree for the tree scope and their ordering.

(CSSGetLayersForNode) Call <- 0.103.0

1
func (m CSSGetLayersForNode) Call(c Client) (*CSSGetLayersForNodeResult, error)

Call the request.

(CSSGetLayersForNode) ProtoReq <- 0.103.0

1
func (m CSSGetLayersForNode) ProtoReq() string

ProtoReq name.

type CSSGetLayersForNodeResult <- 0.103.0

1
2
3
4
type CSSGetLayersForNodeResult struct {
	// RootLayer ...
	RootLayer *CSSCSSLayerData `json:"rootLayer"`
}

CSSGetLayersForNodeResult (experimental) …

type CSSGetLocationForSelector <- 0.115.0

1
2
3
4
5
6
7
type CSSGetLocationForSelector struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// SelectorText ...
	SelectorText string `json:"selectorText"`
}

CSSGetLocationForSelector (experimental) Given a CSS selector text and a style sheet ID, getLocationForSelector returns an array of locations of the CSS selector in the style sheet.

(CSSGetLocationForSelector) Call <- 0.115.0

1
func (m CSSGetLocationForSelector) Call(c Client) (*CSSGetLocationForSelectorResult, error)

Call the request.

(CSSGetLocationForSelector) ProtoReq <- 0.115.0

1
func (m CSSGetLocationForSelector) ProtoReq() string

ProtoReq name.

type CSSGetLocationForSelectorResult <- 0.115.0

1
2
3
4
type CSSGetLocationForSelectorResult struct {
	// Ranges ...
	Ranges []*CSSSourceRange `json:"ranges"`
}

CSSGetLocationForSelectorResult (experimental) …

type CSSGetMatchedStylesForNode

1
2
3
4
type CSSGetMatchedStylesForNode struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`
}

CSSGetMatchedStylesForNode Returns requested styles for a DOM node identified by nodeId.

(CSSGetMatchedStylesForNode) Call

1
func (m CSSGetMatchedStylesForNode) Call(c Client) (*CSSGetMatchedStylesForNodeResult, error)

Call the request.

(CSSGetMatchedStylesForNode) ProtoReq <- 0.74.0

1
func (m CSSGetMatchedStylesForNode) ProtoReq() string

ProtoReq name.

type CSSGetMatchedStylesForNodeResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
type CSSGetMatchedStylesForNodeResult struct {
	// InlineStyle (optional) Inline style for the specified DOM node.
	InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"`

	// AttributesStyle (optional) Attribute-defined element style (e.g. resulting from "width=20 height=100%").
	AttributesStyle *CSSCSSStyle `json:"attributesStyle,omitempty"`

	// MatchedCSSRules (optional) CSS rules matching this node, from all applicable stylesheets.
	MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules,omitempty"`

	// PseudoElements (optional) Pseudo style matches for this node.
	PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements,omitempty"`

	// Inherited (optional) A chain of inherited styles (from the immediate node parent up to the DOM tree root).
	Inherited []*CSSInheritedStyleEntry `json:"inherited,omitempty"`

	// InheritedPseudoElements (optional) A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).
	InheritedPseudoElements []*CSSInheritedPseudoElementMatches `json:"inheritedPseudoElements,omitempty"`

	// CSSKeyframesRules (optional) A list of CSS keyframed animations matching this node.
	CSSKeyframesRules []*CSSCSSKeyframesRule `json:"cssKeyframesRules,omitempty"`

	// CSSPositionFallbackRules (deprecated) (optional) A list of CSS position fallbacks matching this node.
	CSSPositionFallbackRules []*CSSCSSPositionFallbackRule `json:"cssPositionFallbackRules,omitempty"`

	// CSSPositionTryRules (optional) A list of CSS @position-try rules matching this node, based on the position-try-options property.
	CSSPositionTryRules []*CSSCSSPositionTryRule `json:"cssPositionTryRules,omitempty"`

	// CSSPropertyRules (optional) A list of CSS at-property rules matching this node.
	CSSPropertyRules []*CSSCSSPropertyRule `json:"cssPropertyRules,omitempty"`

	// CSSPropertyRegistrations (optional) A list of CSS property registrations matching this node.
	CSSPropertyRegistrations []*CSSCSSPropertyRegistration `json:"cssPropertyRegistrations,omitempty"`

	// CSSFontPaletteValuesRule (optional) A font-palette-values rule matching this node.
	CSSFontPaletteValuesRule *CSSCSSFontPaletteValuesRule `json:"cssFontPaletteValuesRule,omitempty"`

	// ParentLayoutNodeID (experimental) (optional) Id of the first parent element that does not have display: contents.
	ParentLayoutNodeID DOMNodeID `json:"parentLayoutNodeId,omitempty"`
}

CSSGetMatchedStylesForNodeResult …

type CSSGetMediaQueries

1
type CSSGetMediaQueries struct{}

CSSGetMediaQueries Returns all media queries parsed by the rendering engine.

(CSSGetMediaQueries) Call

1
func (m CSSGetMediaQueries) Call(c Client) (*CSSGetMediaQueriesResult, error)

Call the request.

(CSSGetMediaQueries) ProtoReq <- 0.74.0

1
func (m CSSGetMediaQueries) ProtoReq() string

ProtoReq name.

type CSSGetMediaQueriesResult

1
2
3
4
type CSSGetMediaQueriesResult struct {
	// Medias ...
	Medias []*CSSCSSMedia `json:"medias"`
}

CSSGetMediaQueriesResult …

type CSSGetPlatformFontsForNode

1
2
3
4
type CSSGetPlatformFontsForNode struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`
}

CSSGetPlatformFontsForNode Requests information about platform fonts which we used to render child TextNodes in the given node.

(CSSGetPlatformFontsForNode) Call

1
func (m CSSGetPlatformFontsForNode) Call(c Client) (*CSSGetPlatformFontsForNodeResult, error)

Call the request.

(CSSGetPlatformFontsForNode) ProtoReq <- 0.74.0

1
func (m CSSGetPlatformFontsForNode) ProtoReq() string

ProtoReq name.

type CSSGetPlatformFontsForNodeResult

1
2
3
4
type CSSGetPlatformFontsForNodeResult struct {
	// Fonts Usage statistics for every employed platform font.
	Fonts []*CSSPlatformFontUsage `json:"fonts"`
}

CSSGetPlatformFontsForNodeResult …

type CSSGetStyleSheetText

1
2
3
4
type CSSGetStyleSheetText struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
}

CSSGetStyleSheetText Returns the current textual content for a stylesheet.

(CSSGetStyleSheetText) Call

1
func (m CSSGetStyleSheetText) Call(c Client) (*CSSGetStyleSheetTextResult, error)

Call the request.

(CSSGetStyleSheetText) ProtoReq <- 0.74.0

1
func (m CSSGetStyleSheetText) ProtoReq() string

ProtoReq name.

type CSSGetStyleSheetTextResult

1
2
3
4
type CSSGetStyleSheetTextResult struct {
	// Text The stylesheet text.
	Text string `json:"text"`
}

CSSGetStyleSheetTextResult …

type CSSInheritedPseudoElementMatches <- 0.104.0

1
2
3
4
type CSSInheritedPseudoElementMatches struct {
	// PseudoElements Matches of pseudo styles from the pseudos of an ancestor node.
	PseudoElements []*CSSPseudoElementMatches `json:"pseudoElements"`
}

CSSInheritedPseudoElementMatches Inherited pseudo element matches from pseudos of an ancestor node.

type CSSInheritedStyleEntry

1
2
3
4
5
6
7
type CSSInheritedStyleEntry struct {
	// InlineStyle (optional) The ancestor node's inline style, if any, in the style inheritance chain.
	InlineStyle *CSSCSSStyle `json:"inlineStyle,omitempty"`

	// MatchedCSSRules Matches of CSS rules matching the ancestor node in the style inheritance chain.
	MatchedCSSRules []*CSSRuleMatch `json:"matchedCSSRules"`
}

CSSInheritedStyleEntry Inherited CSS rule collection from ancestor node.

type CSSMediaQuery

1
2
3
4
5
6
7
type CSSMediaQuery struct {
	// Expressions Array of media query expressions.
	Expressions []*CSSMediaQueryExpression `json:"expressions"`

	// Active Whether the media query condition is satisfied.
	Active bool `json:"active"`
}

CSSMediaQuery Media query descriptor.

type CSSMediaQueryExpression

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type CSSMediaQueryExpression struct {
	// Value Media query expression value.
	Value float64 `json:"value"`

	// Unit Media query expression units.
	Unit string `json:"unit"`

	// Feature Media query expression feature.
	Feature string `json:"feature"`

	// ValueRange (optional) The associated range of the value text in the enclosing stylesheet (if available).
	ValueRange *CSSSourceRange `json:"valueRange,omitempty"`

	// ComputedLength (optional) Computed length of media query expression (if applicable).
	ComputedLength *float64 `json:"computedLength,omitempty"`
}

CSSMediaQueryExpression Media query expression descriptor.

type CSSMediaQueryResultChanged

1
type CSSMediaQueryResultChanged struct{}

CSSMediaQueryResultChanged Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features.

(CSSMediaQueryResultChanged) ProtoEvent <- 0.72.0

1
func (evt CSSMediaQueryResultChanged) ProtoEvent() string

ProtoEvent name.

type CSSPlatformFontUsage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type CSSPlatformFontUsage struct {
	// FamilyName Font's family name reported by platform.
	FamilyName string `json:"familyName"`

	// PostScriptName Font's PostScript name reported by platform.
	PostScriptName string `json:"postScriptName"`

	// IsCustomFont Indicates if the font was downloaded or resolved locally.
	IsCustomFont bool `json:"isCustomFont"`

	// GlyphCount Amount of glyphs that were rendered with this font.
	GlyphCount float64 `json:"glyphCount"`
}

CSSPlatformFontUsage Information about amount of glyphs that were rendered with given font.

type CSSPseudoElementMatches

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSPseudoElementMatches struct {
	// PseudoType Pseudo element type.
	PseudoType DOMPseudoType `json:"pseudoType"`

	// PseudoIdentifier (optional) Pseudo element custom ident.
	PseudoIdentifier string `json:"pseudoIdentifier,omitempty"`

	// Matches of CSS rules applicable to the pseudo style.
	Matches []*CSSRuleMatch `json:"matches"`
}

CSSPseudoElementMatches CSS rule collection for a single pseudo style.

type CSSRuleMatch

1
2
3
4
5
6
7
type CSSRuleMatch struct {
	// Rule CSS rule in the match.
	Rule *CSSCSSRule `json:"rule"`

	// MatchingSelectors Matching selector indices in the rule's selectorList selectors (0-based).
	MatchingSelectors []int `json:"matchingSelectors"`
}

CSSRuleMatch Match data for a CSS rule.

type CSSRuleUsage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type CSSRuleUsage struct {
	// StyleSheetID The css style sheet identifier (absent for user agent stylesheet and user-specified
	// stylesheet rules) this rule came from.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// StartOffset Offset of the start of the rule (including selector) from the beginning of the stylesheet.
	StartOffset float64 `json:"startOffset"`

	// EndOffset Offset of the end of the rule body from the beginning of the stylesheet.
	EndOffset float64 `json:"endOffset"`

	// Used Indicates whether the rule was actually used by some element in the page.
	Used bool `json:"used"`
}

CSSRuleUsage CSS coverage information.

type CSSSelectorList

1
2
3
4
5
6
7
type CSSSelectorList struct {
	// Selectors in the list.
	Selectors []*CSSValue `json:"selectors"`

	// Text Rule selector text.
	Text string `json:"text"`
}

CSSSelectorList Selector list data.

type CSSSetContainerQueryText <- 0.101.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetContainerQueryText struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// Text ...
	Text string `json:"text"`
}

CSSSetContainerQueryText (experimental) Modifies the expression of a container query.

(CSSSetContainerQueryText) Call <- 0.101.5

1
func (m CSSSetContainerQueryText) Call(c Client) (*CSSSetContainerQueryTextResult, error)

Call the request.

(CSSSetContainerQueryText) ProtoReq <- 0.101.5

1
func (m CSSSetContainerQueryText) ProtoReq() string

ProtoReq name.

type CSSSetContainerQueryTextResult <- 0.101.5

1
2
3
4
type CSSSetContainerQueryTextResult struct {
	// ContainerQuery The resulting CSS container query rule after modification.
	ContainerQuery *CSSCSSContainerQuery `json:"containerQuery"`
}

CSSSetContainerQueryTextResult (experimental) …

type CSSSetEffectivePropertyValueForNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetEffectivePropertyValueForNode struct {
	// NodeID The element id for which to set property.
	NodeID DOMNodeID `json:"nodeId"`

	// PropertyName ...
	PropertyName string `json:"propertyName"`

	// Value ...
	Value string `json:"value"`
}

CSSSetEffectivePropertyValueForNode Find a rule with the given active property for the given node and set the new value for this property.

(CSSSetEffectivePropertyValueForNode) Call

1
func (m CSSSetEffectivePropertyValueForNode) Call(c Client) error

Call sends the request.

(CSSSetEffectivePropertyValueForNode) ProtoReq <- 0.74.0

1
func (m CSSSetEffectivePropertyValueForNode) ProtoReq() string

ProtoReq name.

type CSSSetKeyframeKey

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetKeyframeKey struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// KeyText ...
	KeyText string `json:"keyText"`
}

CSSSetKeyframeKey Modifies the keyframe rule key text.

(CSSSetKeyframeKey) Call

1
func (m CSSSetKeyframeKey) Call(c Client) (*CSSSetKeyframeKeyResult, error)

Call the request.

(CSSSetKeyframeKey) ProtoReq <- 0.74.0

1
func (m CSSSetKeyframeKey) ProtoReq() string

ProtoReq name.

type CSSSetKeyframeKeyResult

1
2
3
4
type CSSSetKeyframeKeyResult struct {
	// KeyText The resulting key text after modification.
	KeyText *CSSValue `json:"keyText"`
}

CSSSetKeyframeKeyResult …

type CSSSetLocalFontsEnabled <- 0.72.0

1
2
3
4
type CSSSetLocalFontsEnabled struct {
	// Enabled Whether rendering of local fonts is enabled.
	Enabled bool `json:"enabled"`
}

CSSSetLocalFontsEnabled (experimental) Enables/disables rendering of local CSS fonts (enabled by default).

(CSSSetLocalFontsEnabled) Call <- 0.72.0

1
func (m CSSSetLocalFontsEnabled) Call(c Client) error

Call sends the request.

(CSSSetLocalFontsEnabled) ProtoReq <- 0.74.0

1
func (m CSSSetLocalFontsEnabled) ProtoReq() string

ProtoReq name.

type CSSSetMediaText

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetMediaText struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// Text ...
	Text string `json:"text"`
}

CSSSetMediaText Modifies the rule selector.

(CSSSetMediaText) Call

1
func (m CSSSetMediaText) Call(c Client) (*CSSSetMediaTextResult, error)

Call the request.

(CSSSetMediaText) ProtoReq <- 0.74.0

1
func (m CSSSetMediaText) ProtoReq() string

ProtoReq name.

type CSSSetMediaTextResult

1
2
3
4
type CSSSetMediaTextResult struct {
	// Media The resulting CSS media rule after modification.
	Media *CSSCSSMedia `json:"media"`
}

CSSSetMediaTextResult …

type CSSSetPropertyRulePropertyName <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetPropertyRulePropertyName struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// PropertyName ...
	PropertyName string `json:"propertyName"`
}

CSSSetPropertyRulePropertyName Modifies the property rule property name.

(CSSSetPropertyRulePropertyName) Call <- 0.115.0

1
func (m CSSSetPropertyRulePropertyName) Call(c Client) (*CSSSetPropertyRulePropertyNameResult, error)

Call the request.

(CSSSetPropertyRulePropertyName) ProtoReq <- 0.115.0

1
func (m CSSSetPropertyRulePropertyName) ProtoReq() string

ProtoReq name.

type CSSSetPropertyRulePropertyNameResult <- 0.115.0

1
2
3
4
type CSSSetPropertyRulePropertyNameResult struct {
	// PropertyName The resulting key text after modification.
	PropertyName *CSSValue `json:"propertyName"`
}

CSSSetPropertyRulePropertyNameResult …

type CSSSetRuleSelector

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetRuleSelector struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// Selector ...
	Selector string `json:"selector"`
}

CSSSetRuleSelector Modifies the rule selector.

(CSSSetRuleSelector) Call

1
func (m CSSSetRuleSelector) Call(c Client) (*CSSSetRuleSelectorResult, error)

Call the request.

(CSSSetRuleSelector) ProtoReq <- 0.74.0

1
func (m CSSSetRuleSelector) ProtoReq() string

ProtoReq name.

type CSSSetRuleSelectorResult

1
2
3
4
type CSSSetRuleSelectorResult struct {
	// SelectorList The resulting selector list after modification.
	SelectorList *CSSSelectorList `json:"selectorList"`
}

CSSSetRuleSelectorResult …

type CSSSetScopeText <- 0.108.2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetScopeText struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// Text ...
	Text string `json:"text"`
}

CSSSetScopeText (experimental) Modifies the expression of a scope at-rule.

(CSSSetScopeText) Call <- 0.108.2

1
func (m CSSSetScopeText) Call(c Client) (*CSSSetScopeTextResult, error)

Call the request.

(CSSSetScopeText) ProtoReq <- 0.108.2

1
func (m CSSSetScopeText) ProtoReq() string

ProtoReq name.

type CSSSetScopeTextResult <- 0.108.2

1
2
3
4
type CSSSetScopeTextResult struct {
	// Scope The resulting CSS Scope rule after modification.
	Scope *CSSCSSScope `json:"scope"`
}

CSSSetScopeTextResult (experimental) …

type CSSSetStyleSheetText

1
2
3
4
5
6
7
type CSSSetStyleSheetText struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Text ...
	Text string `json:"text"`
}

CSSSetStyleSheetText Sets the new stylesheet text.

(CSSSetStyleSheetText) Call

1
func (m CSSSetStyleSheetText) Call(c Client) (*CSSSetStyleSheetTextResult, error)

Call the request.

(CSSSetStyleSheetText) ProtoReq <- 0.74.0

1
func (m CSSSetStyleSheetText) ProtoReq() string

ProtoReq name.

type CSSSetStyleSheetTextResult

1
2
3
4
type CSSSetStyleSheetTextResult struct {
	// SourceMapURL (optional) URL of source map associated with script (if any).
	SourceMapURL string `json:"sourceMapURL,omitempty"`
}

CSSSetStyleSheetTextResult …

type CSSSetStyleTexts

1
2
3
4
5
6
7
8
9
type CSSSetStyleTexts struct {
	// Edits ...
	Edits []*CSSStyleDeclarationEdit `json:"edits"`

	// NodeForPropertySyntaxValidation (experimental) (optional) NodeId for the DOM node in whose context custom property declarations for registered properties should be
	// validated. If omitted, declarations in the new rule text can only be validated statically, which may produce
	// incorrect results if the declaration contains a var() for example.
	NodeForPropertySyntaxValidation DOMNodeID `json:"nodeForPropertySyntaxValidation,omitempty"`
}

CSSSetStyleTexts Applies specified style edits one after another in the given order.

(CSSSetStyleTexts) Call

1
func (m CSSSetStyleTexts) Call(c Client) (*CSSSetStyleTextsResult, error)

Call the request.

(CSSSetStyleTexts) ProtoReq <- 0.74.0

1
func (m CSSSetStyleTexts) ProtoReq() string

ProtoReq name.

type CSSSetStyleTextsResult

1
2
3
4
type CSSSetStyleTextsResult struct {
	// Styles The resulting styles after modification.
	Styles []*CSSCSSStyle `json:"styles"`
}

CSSSetStyleTextsResult …

type CSSSetSupportsText <- 0.103.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSSetSupportsText struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range ...
	Range *CSSSourceRange `json:"range"`

	// Text ...
	Text string `json:"text"`
}

CSSSetSupportsText (experimental) Modifies the expression of a supports at-rule.

(CSSSetSupportsText) Call <- 0.103.0

1
func (m CSSSetSupportsText) Call(c Client) (*CSSSetSupportsTextResult, error)

Call the request.

(CSSSetSupportsText) ProtoReq <- 0.103.0

1
func (m CSSSetSupportsText) ProtoReq() string

ProtoReq name.

type CSSSetSupportsTextResult <- 0.103.0

1
2
3
4
type CSSSetSupportsTextResult struct {
	// Supports The resulting CSS Supports rule after modification.
	Supports *CSSCSSSupports `json:"supports"`
}

CSSSetSupportsTextResult (experimental) …

type CSSShorthandEntry

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSShorthandEntry struct {
	// Name Shorthand name.
	Name string `json:"name"`

	// Value Shorthand value.
	Value string `json:"value"`

	// Important (optional) Whether the property has "!important" annotation (implies `false` if absent).
	Important bool `json:"important,omitempty"`
}

CSSShorthandEntry …

type CSSSourceRange

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type CSSSourceRange struct {
	// StartLine Start line of range.
	StartLine int `json:"startLine"`

	// StartColumn Start column of range (inclusive).
	StartColumn int `json:"startColumn"`

	// EndLine End line of range
	EndLine int `json:"endLine"`

	// EndColumn End column of range (exclusive).
	EndColumn int `json:"endColumn"`
}

CSSSourceRange Text range within a resource. All numbers are zero-based.

type CSSSpecificity <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CSSSpecificity struct {
	// A The a component, which represents the number of ID selectors.
	A int `json:"a"`

	// B The b component, which represents the number of class selectors, attributes selectors, and
	// pseudo-classes.
	B int `json:"b"`

	// C The c component, which represents the number of type selectors and pseudo-elements.
	C int `json:"c"`
}

CSSSpecificity (experimental) Specificity: https://drafts.csswg.org/selectors/#specificity-rules

type CSSStartRuleUsageTracking

1
type CSSStartRuleUsageTracking struct{}

CSSStartRuleUsageTracking Enables the selector recording.

(CSSStartRuleUsageTracking) Call

1
func (m CSSStartRuleUsageTracking) Call(c Client) error

Call sends the request.

(CSSStartRuleUsageTracking) ProtoReq <- 0.74.0

1
func (m CSSStartRuleUsageTracking) ProtoReq() string

ProtoReq name.

type CSSStopRuleUsageTracking

1
type CSSStopRuleUsageTracking struct{}

CSSStopRuleUsageTracking Stop tracking rule usage and return the list of rules that were used since last call to takeCoverageDelta (or since start of coverage instrumentation).

(CSSStopRuleUsageTracking) Call

1
func (m CSSStopRuleUsageTracking) Call(c Client) (*CSSStopRuleUsageTrackingResult, error)

Call the request.

(CSSStopRuleUsageTracking) ProtoReq <- 0.74.0

1
func (m CSSStopRuleUsageTracking) ProtoReq() string

ProtoReq name.

type CSSStopRuleUsageTrackingResult

1
2
3
4
type CSSStopRuleUsageTrackingResult struct {
	// RuleUsage ...
	RuleUsage []*CSSRuleUsage `json:"ruleUsage"`
}

CSSStopRuleUsageTrackingResult …

type CSSStyleDeclarationEdit

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSStyleDeclarationEdit struct {
	// StyleSheetID The css style sheet identifier.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`

	// Range The range of the style text in the enclosing stylesheet.
	Range *CSSSourceRange `json:"range"`

	// Text New style text.
	Text string `json:"text"`
}

CSSStyleDeclarationEdit A descriptor of operation to mutate style declaration text.

type CSSStyleSheetAdded

1
2
3
4
type CSSStyleSheetAdded struct {
	// Header Added stylesheet metainfo.
	Header *CSSCSSStyleSheetHeader `json:"header"`
}

CSSStyleSheetAdded Fired whenever an active document stylesheet is added.

(CSSStyleSheetAdded) ProtoEvent <- 0.72.0

1
func (evt CSSStyleSheetAdded) ProtoEvent() string

ProtoEvent name.

type CSSStyleSheetChanged

1
2
3
4
type CSSStyleSheetChanged struct {
	// StyleSheetID ...
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
}

CSSStyleSheetChanged Fired whenever a stylesheet is changed as a result of the client operation.

(CSSStyleSheetChanged) ProtoEvent <- 0.72.0

1
func (evt CSSStyleSheetChanged) ProtoEvent() string

ProtoEvent name.

type CSSStyleSheetID

1
type CSSStyleSheetID string

CSSStyleSheetID …

type CSSStyleSheetOrigin

1
type CSSStyleSheetOrigin string

CSSStyleSheetOrigin Stylesheet type: “injected” for stylesheets injected via extension, “user-agent” for user-agent stylesheets, “inspector” for stylesheets created by the inspector (i.e. those holding the “via inspector” rules), “regular” for regular stylesheets.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// CSSStyleSheetOriginInjected enum const.
	CSSStyleSheetOriginInjected CSSStyleSheetOrigin = "injected"

	// CSSStyleSheetOriginUserAgent enum const.
	CSSStyleSheetOriginUserAgent CSSStyleSheetOrigin = "user-agent"

	// CSSStyleSheetOriginInspector enum const.
	CSSStyleSheetOriginInspector CSSStyleSheetOrigin = "inspector"

	// CSSStyleSheetOriginRegular enum const.
	CSSStyleSheetOriginRegular CSSStyleSheetOrigin = "regular"
)

type CSSStyleSheetRemoved

1
2
3
4
type CSSStyleSheetRemoved struct {
	// StyleSheetID Identifier of the removed stylesheet.
	StyleSheetID CSSStyleSheetID `json:"styleSheetId"`
}

CSSStyleSheetRemoved Fired whenever an active document stylesheet is removed.

(CSSStyleSheetRemoved) ProtoEvent <- 0.72.0

1
func (evt CSSStyleSheetRemoved) ProtoEvent() string

ProtoEvent name.

type CSSTakeComputedStyleUpdates <- 0.72.0

1
type CSSTakeComputedStyleUpdates struct{}

CSSTakeComputedStyleUpdates (experimental) Polls the next batch of computed style updates.

(CSSTakeComputedStyleUpdates) Call <- 0.72.0

1
func (m CSSTakeComputedStyleUpdates) Call(c Client) (*CSSTakeComputedStyleUpdatesResult, error)

Call the request.

(CSSTakeComputedStyleUpdates) ProtoReq <- 0.74.0

1
func (m CSSTakeComputedStyleUpdates) ProtoReq() string

ProtoReq name.

type CSSTakeComputedStyleUpdatesResult <- 0.72.0

1
2
3
4
type CSSTakeComputedStyleUpdatesResult struct {
	// NodeIDs The list of node Ids that have their tracked computed styles updated.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

CSSTakeComputedStyleUpdatesResult (experimental) …

type CSSTakeCoverageDelta

1
type CSSTakeCoverageDelta struct{}

CSSTakeCoverageDelta Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation).

(CSSTakeCoverageDelta) Call

1
func (m CSSTakeCoverageDelta) Call(c Client) (*CSSTakeCoverageDeltaResult, error)

Call the request.

(CSSTakeCoverageDelta) ProtoReq <- 0.74.0

1
func (m CSSTakeCoverageDelta) ProtoReq() string

ProtoReq name.

type CSSTakeCoverageDeltaResult

1
2
3
4
5
6
7
type CSSTakeCoverageDeltaResult struct {
	// Coverage ...
	Coverage []*CSSRuleUsage `json:"coverage"`

	// Timestamp Monotonically increasing time, in seconds.
	Timestamp float64 `json:"timestamp"`
}

CSSTakeCoverageDeltaResult …

type CSSTrackComputedStyleUpdates <- 0.72.0

1
2
3
4
type CSSTrackComputedStyleUpdates struct {
	// PropertiesToTrack ...
	PropertiesToTrack []*CSSCSSComputedStyleProperty `json:"propertiesToTrack"`
}

CSSTrackComputedStyleUpdates (experimental) Starts tracking the given computed styles for updates. The specified array of properties replaces the one previously specified. Pass empty array to disable tracking. Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. The changes to computed style properties are only tracked for nodes pushed to the front-end by the DOM agent. If no changes to the tracked properties occur after the node has been pushed to the front-end, no updates will be issued for the node.

(CSSTrackComputedStyleUpdates) Call <- 0.72.0

1
func (m CSSTrackComputedStyleUpdates) Call(c Client) error

Call sends the request.

(CSSTrackComputedStyleUpdates) ProtoReq <- 0.74.0

1
func (m CSSTrackComputedStyleUpdates) ProtoReq() string

ProtoReq name.

type CSSValue

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CSSValue struct {
	// Text Value text.
	Text string `json:"text"`

	// Range (optional) Value range in the underlying resource (if available).
	Range *CSSSourceRange `json:"range,omitempty"`

	// Specificity (experimental) (optional) Specificity of the selector.
	Specificity *CSSSpecificity `json:"specificity,omitempty"`
}

CSSValue Data for a simple selector (these are delimited by commas in a selector list).

type CacheStorageCache

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type CacheStorageCache struct {
	// CacheID An opaque unique id of the cache.
	CacheID CacheStorageCacheID `json:"cacheId"`

	// SecurityOrigin Security origin of the cache.
	SecurityOrigin string `json:"securityOrigin"`

	// StorageKey Storage key of the cache.
	StorageKey string `json:"storageKey"`

	// StorageBucket (optional) Storage bucket of the cache.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// CacheName The name of the cache.
	CacheName string `json:"cacheName"`
}

CacheStorageCache Cache identifier.

type CacheStorageCacheID

1
type CacheStorageCacheID string

CacheStorageCacheID Unique identifier of the Cache object.

type CacheStorageCachedResponse

1
2
3
4
type CacheStorageCachedResponse struct {
	// Body Entry content, base64-encoded.
	Body []byte `json:"body"`
}

CacheStorageCachedResponse Cached response.

type CacheStorageCachedResponseType

1
type CacheStorageCachedResponseType string

CacheStorageCachedResponseType type of HTTP response cached.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// CacheStorageCachedResponseTypeBasic enum const.
	CacheStorageCachedResponseTypeBasic CacheStorageCachedResponseType = "basic"

	// CacheStorageCachedResponseTypeCors enum const.
	CacheStorageCachedResponseTypeCors CacheStorageCachedResponseType = "cors"

	// CacheStorageCachedResponseTypeDefault enum const.
	CacheStorageCachedResponseTypeDefault CacheStorageCachedResponseType = "default"

	// CacheStorageCachedResponseTypeError enum const.
	CacheStorageCachedResponseTypeError CacheStorageCachedResponseType = "error"

	// CacheStorageCachedResponseTypeOpaqueResponse enum const.
	CacheStorageCachedResponseTypeOpaqueResponse CacheStorageCachedResponseType = "opaqueResponse"

	// CacheStorageCachedResponseTypeOpaqueRedirect enum const.
	CacheStorageCachedResponseTypeOpaqueRedirect CacheStorageCachedResponseType = "opaqueRedirect"
)

type CacheStorageDataEntry

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type CacheStorageDataEntry struct {
	// RequestURL Request URL.
	RequestURL string `json:"requestURL"`

	// RequestMethod Request method.
	RequestMethod string `json:"requestMethod"`

	// RequestHeaders Request headers
	RequestHeaders []*CacheStorageHeader `json:"requestHeaders"`

	// ResponseTime Number of seconds since epoch.
	ResponseTime float64 `json:"responseTime"`

	// ResponseStatus HTTP response status code.
	ResponseStatus int `json:"responseStatus"`

	// ResponseStatusText HTTP response status text.
	ResponseStatusText string `json:"responseStatusText"`

	// ResponseType HTTP response type
	ResponseType CacheStorageCachedResponseType `json:"responseType"`

	// ResponseHeaders Response headers
	ResponseHeaders []*CacheStorageHeader `json:"responseHeaders"`
}

CacheStorageDataEntry Data entry.

type CacheStorageDeleteCache

1
2
3
4
type CacheStorageDeleteCache struct {
	// CacheID Id of cache for deletion.
	CacheID CacheStorageCacheID `json:"cacheId"`
}

CacheStorageDeleteCache Deletes a cache.

(CacheStorageDeleteCache) Call

1
func (m CacheStorageDeleteCache) Call(c Client) error

Call sends the request.

(CacheStorageDeleteCache) ProtoReq <- 0.74.0

1
func (m CacheStorageDeleteCache) ProtoReq() string

ProtoReq name.

type CacheStorageDeleteEntry

1
2
3
4
5
6
7
type CacheStorageDeleteEntry struct {
	// CacheID Id of cache where the entry will be deleted.
	CacheID CacheStorageCacheID `json:"cacheId"`

	// Request URL spec of the request.
	Request string `json:"request"`
}

CacheStorageDeleteEntry Deletes a cache entry.

(CacheStorageDeleteEntry) Call

1
func (m CacheStorageDeleteEntry) Call(c Client) error

Call sends the request.

(CacheStorageDeleteEntry) ProtoReq <- 0.74.0

1
func (m CacheStorageDeleteEntry) ProtoReq() string

ProtoReq name.

type CacheStorageHeader

1
2
3
4
5
6
7
type CacheStorageHeader struct {
	// Name ...
	Name string `json:"name"`

	// Value ...
	Value string `json:"value"`
}

CacheStorageHeader …

type CacheStorageRequestCacheNames

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CacheStorageRequestCacheNames struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`
}

CacheStorageRequestCacheNames Requests cache names.

(CacheStorageRequestCacheNames) Call

1
func (m CacheStorageRequestCacheNames) Call(c Client) (*CacheStorageRequestCacheNamesResult, error)

Call the request.

(CacheStorageRequestCacheNames) ProtoReq <- 0.74.0

1
func (m CacheStorageRequestCacheNames) ProtoReq() string

ProtoReq name.

type CacheStorageRequestCacheNamesResult

1
2
3
4
type CacheStorageRequestCacheNamesResult struct {
	// Caches for the security origin.
	Caches []*CacheStorageCache `json:"caches"`
}

CacheStorageRequestCacheNamesResult …

type CacheStorageRequestCachedResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type CacheStorageRequestCachedResponse struct {
	// CacheID Id of cache that contains the entry.
	CacheID CacheStorageCacheID `json:"cacheId"`

	// RequestURL URL spec of the request.
	RequestURL string `json:"requestURL"`

	// RequestHeaders headers of the request.
	RequestHeaders []*CacheStorageHeader `json:"requestHeaders"`
}

CacheStorageRequestCachedResponse Fetches cache entry.

(CacheStorageRequestCachedResponse) Call

1
func (m CacheStorageRequestCachedResponse) Call(c Client) (*CacheStorageRequestCachedResponseResult, error)

Call the request.

(CacheStorageRequestCachedResponse) ProtoReq <- 0.74.0

1
func (m CacheStorageRequestCachedResponse) ProtoReq() string

ProtoReq name.

type CacheStorageRequestCachedResponseResult

1
2
3
4
type CacheStorageRequestCachedResponseResult struct {
	// Response read from the cache.
	Response *CacheStorageCachedResponse `json:"response"`
}

CacheStorageRequestCachedResponseResult …

type CacheStorageRequestEntries

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type CacheStorageRequestEntries struct {
	// CacheID ID of cache to get entries from.
	CacheID CacheStorageCacheID `json:"cacheId"`

	// SkipCount (optional) Number of records to skip.
	SkipCount *int `json:"skipCount,omitempty"`

	// PageSize (optional) Number of records to fetch.
	PageSize *int `json:"pageSize,omitempty"`

	// PathFilter (optional) If present, only return the entries containing this substring in the path
	PathFilter string `json:"pathFilter,omitempty"`
}

CacheStorageRequestEntries Requests data from cache.

(CacheStorageRequestEntries) Call

1
func (m CacheStorageRequestEntries) Call(c Client) (*CacheStorageRequestEntriesResult, error)

Call the request.

(CacheStorageRequestEntries) ProtoReq <- 0.74.0

1
func (m CacheStorageRequestEntries) ProtoReq() string

ProtoReq name.

type CacheStorageRequestEntriesResult

1
2
3
4
5
6
7
8
type CacheStorageRequestEntriesResult struct {
	// CacheDataEntries Array of object store data entries.
	CacheDataEntries []*CacheStorageDataEntry `json:"cacheDataEntries"`

	// ReturnCount Count of returned entries from this storage. If pathFilter is empty, it
	// is the count of all entries from this storage.
	ReturnCount float64 `json:"returnCount"`
}

CacheStorageRequestEntriesResult …

type CastDisable

1
type CastDisable struct{}

CastDisable Stops observing for sinks and issues.

(CastDisable) Call

1
func (m CastDisable) Call(c Client) error

Call sends the request.

(CastDisable) ProtoReq <- 0.74.0

1
func (m CastDisable) ProtoReq() string

ProtoReq name.

type CastEnable

1
2
3
4
type CastEnable struct {
	// PresentationURL (optional) ...
	PresentationURL string `json:"presentationUrl,omitempty"`
}

CastEnable Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.

(CastEnable) Call

1
func (m CastEnable) Call(c Client) error

Call sends the request.

(CastEnable) ProtoReq <- 0.74.0

1
func (m CastEnable) ProtoReq() string

ProtoReq name.

type CastIssueUpdated

1
2
3
4
type CastIssueUpdated struct {
	// IssueMessage ...
	IssueMessage string `json:"issueMessage"`
}

CastIssueUpdated This is fired whenever the outstanding issue/error message changes. |issueMessage| is empty if there is no issue.

(CastIssueUpdated) ProtoEvent <- 0.72.0

1
func (evt CastIssueUpdated) ProtoEvent() string

ProtoEvent name.

type CastSetSinkToUse

1
2
3
4
type CastSetSinkToUse struct {
	// SinkName ...
	SinkName string `json:"sinkName"`
}

CastSetSinkToUse Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.

(CastSetSinkToUse) Call

1
func (m CastSetSinkToUse) Call(c Client) error

Call sends the request.

(CastSetSinkToUse) ProtoReq <- 0.74.0

1
func (m CastSetSinkToUse) ProtoReq() string

ProtoReq name.

type CastSink

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type CastSink struct {
	// Name ...
	Name string `json:"name"`

	// ID ...
	ID string `json:"id"`

	// Session (optional) Text describing the current session. Present only if there is an active
	// session on the sink.
	Session string `json:"session,omitempty"`
}

CastSink …

type CastSinksUpdated

1
2
3
4
type CastSinksUpdated struct {
	// Sinks ...
	Sinks []*CastSink `json:"sinks"`
}

CastSinksUpdated This is fired whenever the list of available sinks changes. A sink is a device or a software surface that you can cast to.

(CastSinksUpdated) ProtoEvent <- 0.72.0

1
func (evt CastSinksUpdated) ProtoEvent() string

ProtoEvent name.

type CastStartDesktopMirroring <- 0.102.0

1
2
3
4
type CastStartDesktopMirroring struct {
	// SinkName ...
	SinkName string `json:"sinkName"`
}

CastStartDesktopMirroring Starts mirroring the desktop to the sink.

(CastStartDesktopMirroring) Call <- 0.102.0

1
func (m CastStartDesktopMirroring) Call(c Client) error

Call sends the request.

(CastStartDesktopMirroring) ProtoReq <- 0.102.0

1
func (m CastStartDesktopMirroring) ProtoReq() string

ProtoReq name.

type CastStartTabMirroring

1
2
3
4
type CastStartTabMirroring struct {
	// SinkName ...
	SinkName string `json:"sinkName"`
}

CastStartTabMirroring Starts mirroring the tab to the sink.

(CastStartTabMirroring) Call

1
func (m CastStartTabMirroring) Call(c Client) error

Call sends the request.

(CastStartTabMirroring) ProtoReq <- 0.74.0

1
func (m CastStartTabMirroring) ProtoReq() string

ProtoReq name.

type CastStopCasting

1
2
3
4
type CastStopCasting struct {
	// SinkName ...
	SinkName string `json:"sinkName"`
}

CastStopCasting Stops the active Cast session on the sink.

(CastStopCasting) Call

1
func (m CastStopCasting) Call(c Client) error

Call sends the request.

(CastStopCasting) ProtoReq <- 0.74.0

1
func (m CastStopCasting) ProtoReq() string

ProtoReq name.

type Client

1
2
3
type Client interface {
	Call(ctx context.Context, sessionID, methodName string, params interface{}) (res []byte, err error)
}

Client interface to send the request. So that this lib doesn’t handle anything has side effect.

type ConsoleClearMessages

1
type ConsoleClearMessages struct{}

ConsoleClearMessages Does nothing.

(ConsoleClearMessages) Call

1
func (m ConsoleClearMessages) Call(c Client) error

Call sends the request.

(ConsoleClearMessages) ProtoReq <- 0.74.0

1
func (m ConsoleClearMessages) ProtoReq() string

ProtoReq name.

type ConsoleConsoleMessage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type ConsoleConsoleMessage struct {
	// Source Message source.
	Source ConsoleConsoleMessageSource `json:"source"`

	// Level Message severity.
	Level ConsoleConsoleMessageLevel `json:"level"`

	// Text Message text.
	Text string `json:"text"`

	// URL (optional) URL of the message origin.
	URL string `json:"url,omitempty"`

	// Line (optional) Line number in the resource that generated this message (1-based).
	Line *int `json:"line,omitempty"`

	// Column (optional) Column number in the resource that generated this message (1-based).
	Column *int `json:"column,omitempty"`
}

ConsoleConsoleMessage Console message.

type ConsoleConsoleMessageLevel

1
type ConsoleConsoleMessageLevel string

ConsoleConsoleMessageLevel enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// ConsoleConsoleMessageLevelLog enum const.
	ConsoleConsoleMessageLevelLog ConsoleConsoleMessageLevel = "log"

	// ConsoleConsoleMessageLevelWarning enum const.
	ConsoleConsoleMessageLevelWarning ConsoleConsoleMessageLevel = "warning"

	// ConsoleConsoleMessageLevelError enum const.
	ConsoleConsoleMessageLevelError ConsoleConsoleMessageLevel = "error"

	// ConsoleConsoleMessageLevelDebug enum const.
	ConsoleConsoleMessageLevelDebug ConsoleConsoleMessageLevel = "debug"

	// ConsoleConsoleMessageLevelInfo enum const.
	ConsoleConsoleMessageLevelInfo ConsoleConsoleMessageLevel = "info"
)

type ConsoleConsoleMessageSource

1
type ConsoleConsoleMessageSource string

ConsoleConsoleMessageSource enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const (
	// ConsoleConsoleMessageSourceXML enum const.
	ConsoleConsoleMessageSourceXML ConsoleConsoleMessageSource = "xml"

	// ConsoleConsoleMessageSourceJavascript enum const.
	ConsoleConsoleMessageSourceJavascript ConsoleConsoleMessageSource = "javascript"

	// ConsoleConsoleMessageSourceNetwork enum const.
	ConsoleConsoleMessageSourceNetwork ConsoleConsoleMessageSource = "network"

	// ConsoleConsoleMessageSourceConsoleAPI enum const.
	ConsoleConsoleMessageSourceConsoleAPI ConsoleConsoleMessageSource = "console-api"

	// ConsoleConsoleMessageSourceStorage enum const.
	ConsoleConsoleMessageSourceStorage ConsoleConsoleMessageSource = "storage"

	// ConsoleConsoleMessageSourceAppcache enum const.
	ConsoleConsoleMessageSourceAppcache ConsoleConsoleMessageSource = "appcache"

	// ConsoleConsoleMessageSourceRendering enum const.
	ConsoleConsoleMessageSourceRendering ConsoleConsoleMessageSource = "rendering"

	// ConsoleConsoleMessageSourceSecurity enum const.
	ConsoleConsoleMessageSourceSecurity ConsoleConsoleMessageSource = "security"

	// ConsoleConsoleMessageSourceOther enum const.
	ConsoleConsoleMessageSourceOther ConsoleConsoleMessageSource = "other"

	// ConsoleConsoleMessageSourceDeprecation enum const.
	ConsoleConsoleMessageSourceDeprecation ConsoleConsoleMessageSource = "deprecation"

	// ConsoleConsoleMessageSourceWorker enum const.
	ConsoleConsoleMessageSourceWorker ConsoleConsoleMessageSource = "worker"
)

type ConsoleDisable

1
type ConsoleDisable struct{}

ConsoleDisable Disables console domain, prevents further console messages from being reported to the client.

(ConsoleDisable) Call

1
func (m ConsoleDisable) Call(c Client) error

Call sends the request.

(ConsoleDisable) ProtoReq <- 0.74.0

1
func (m ConsoleDisable) ProtoReq() string

ProtoReq name.

type ConsoleEnable

1
type ConsoleEnable struct{}

ConsoleEnable Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.

(ConsoleEnable) Call

1
func (m ConsoleEnable) Call(c Client) error

Call sends the request.

(ConsoleEnable) ProtoReq <- 0.74.0

1
func (m ConsoleEnable) ProtoReq() string

ProtoReq name.

type ConsoleMessageAdded

1
2
3
4
type ConsoleMessageAdded struct {
	// Message Console message that has been added.
	Message *ConsoleConsoleMessage `json:"message"`
}

ConsoleMessageAdded Issued when new console message is added.

(ConsoleMessageAdded) ProtoEvent <- 0.72.0

1
func (evt ConsoleMessageAdded) ProtoEvent() string

ProtoEvent name.

type Contextable <- 0.70.0

1
2
3
type Contextable interface {
	GetContext() context.Context
}

Contextable type has a context.Context for its methods.

type DOMAttributeModified

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMAttributeModified struct {
	// NodeID Id of the node that has changed.
	NodeID DOMNodeID `json:"nodeId"`

	// Name Attribute name.
	Name string `json:"name"`

	// Value Attribute value.
	Value string `json:"value"`
}

DOMAttributeModified Fired when Element’s attribute is modified.

(DOMAttributeModified) ProtoEvent <- 0.72.0

1
func (evt DOMAttributeModified) ProtoEvent() string

ProtoEvent name.

type DOMAttributeRemoved

1
2
3
4
5
6
7
type DOMAttributeRemoved struct {
	// NodeID Id of the node that has changed.
	NodeID DOMNodeID `json:"nodeId"`

	// Name A ttribute name.
	Name string `json:"name"`
}

DOMAttributeRemoved Fired when Element’s attribute is removed.

(DOMAttributeRemoved) ProtoEvent <- 0.72.0

1
func (evt DOMAttributeRemoved) ProtoEvent() string

ProtoEvent name.

type DOMBackendNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMBackendNode struct {
	// NodeType `Node`'s nodeType.
	NodeType int `json:"nodeType"`

	// NodeName `Node`'s nodeName.
	NodeName string `json:"nodeName"`

	// BackendNodeID ...
	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`
}

DOMBackendNode Backend node with a friendly name.

type DOMBackendNodeID

1
type DOMBackendNodeID int

DOMBackendNodeID Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.

type DOMBoxModel

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type DOMBoxModel struct {
	// Content box
	Content DOMQuad `json:"content"`

	// Padding box
	Padding DOMQuad `json:"padding"`

	// Border box
	Border DOMQuad `json:"border"`

	// Margin box
	Margin DOMQuad `json:"margin"`

	// Width Node width
	Width int `json:"width"`

	// Height Node height
	Height int `json:"height"`

	// ShapeOutside (optional) Shape outside coordinates
	ShapeOutside *DOMShapeOutsideInfo `json:"shapeOutside,omitempty"`
}

DOMBoxModel Box model.

type DOMCSSComputedStyleProperty <- 0.72.0

1
2
3
4
5
6
7
type DOMCSSComputedStyleProperty struct {
	// Name Computed style property name.
	Name string `json:"name"`

	// Value Computed style property value.
	Value string `json:"value"`
}

DOMCSSComputedStyleProperty …

type DOMCharacterDataModified

1
2
3
4
5
6
7
type DOMCharacterDataModified struct {
	// NodeID Id of the node that has changed.
	NodeID DOMNodeID `json:"nodeId"`

	// CharacterData New text value.
	CharacterData string `json:"characterData"`
}

DOMCharacterDataModified Mirrors DOMCharacterDataModified event.

(DOMCharacterDataModified) ProtoEvent <- 0.72.0

1
func (evt DOMCharacterDataModified) ProtoEvent() string

ProtoEvent name.

type DOMChildNodeCountUpdated

1
2
3
4
5
6
7
type DOMChildNodeCountUpdated struct {
	// NodeID Id of the node that has changed.
	NodeID DOMNodeID `json:"nodeId"`

	// ChildNodeCount New node count.
	ChildNodeCount int `json:"childNodeCount"`
}

DOMChildNodeCountUpdated Fired when Container’s child node count has changed.

(DOMChildNodeCountUpdated) ProtoEvent <- 0.72.0

1
func (evt DOMChildNodeCountUpdated) ProtoEvent() string

ProtoEvent name.

type DOMChildNodeInserted

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMChildNodeInserted struct {
	// ParentNodeID Id of the node that has changed.
	ParentNodeID DOMNodeID `json:"parentNodeId"`

	// PreviousNodeID Id of the previous sibling.
	PreviousNodeID DOMNodeID `json:"previousNodeId"`

	// Node Inserted node data.
	Node *DOMNode `json:"node"`
}

DOMChildNodeInserted Mirrors DOMNodeInserted event.

(DOMChildNodeInserted) ProtoEvent <- 0.72.0

1
func (evt DOMChildNodeInserted) ProtoEvent() string

ProtoEvent name.

type DOMChildNodeRemoved

1
2
3
4
5
6
7
type DOMChildNodeRemoved struct {
	// ParentNodeID Parent id.
	ParentNodeID DOMNodeID `json:"parentNodeId"`

	// NodeID Id of the node that has been removed.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMChildNodeRemoved Mirrors DOMNodeRemoved event.

(DOMChildNodeRemoved) ProtoEvent <- 0.72.0

1
func (evt DOMChildNodeRemoved) ProtoEvent() string

ProtoEvent name.

type DOMCollectClassNamesFromSubtree

1
2
3
4
type DOMCollectClassNamesFromSubtree struct {
	// NodeID Id of the node to collect class names.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMCollectClassNamesFromSubtree (experimental) Collects class names for the node with given id and all of it’s child nodes.

(DOMCollectClassNamesFromSubtree) Call

1
func (m DOMCollectClassNamesFromSubtree) Call(c Client) (*DOMCollectClassNamesFromSubtreeResult, error)

Call the request.

(DOMCollectClassNamesFromSubtree) ProtoReq <- 0.74.0

1
func (m DOMCollectClassNamesFromSubtree) ProtoReq() string

ProtoReq name.

type DOMCollectClassNamesFromSubtreeResult

1
2
3
4
type DOMCollectClassNamesFromSubtreeResult struct {
	// ClassNames Class name list.
	ClassNames []string `json:"classNames"`
}

DOMCollectClassNamesFromSubtreeResult (experimental) …

type DOMCompatibilityMode <- 0.100.0

1
type DOMCompatibilityMode string

DOMCompatibilityMode Document compatibility mode.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// DOMCompatibilityModeQuirksMode enum const.
	DOMCompatibilityModeQuirksMode DOMCompatibilityMode = "QuirksMode"

	// DOMCompatibilityModeLimitedQuirksMode enum const.
	DOMCompatibilityModeLimitedQuirksMode DOMCompatibilityMode = "LimitedQuirksMode"

	// DOMCompatibilityModeNoQuirksMode enum const.
	DOMCompatibilityModeNoQuirksMode DOMCompatibilityMode = "NoQuirksMode"
)

type DOMCopyTo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type DOMCopyTo struct {
	// NodeID Id of the node to copy.
	NodeID DOMNodeID `json:"nodeId"`

	// TargetNodeID Id of the element to drop the copy into.
	TargetNodeID DOMNodeID `json:"targetNodeId"`

	// InsertBeforeNodeID (optional) Drop the copy before this node (if absent, the copy becomes the last child of
	// `targetNodeId`).
	InsertBeforeNodeID DOMNodeID `json:"insertBeforeNodeId,omitempty"`
}

DOMCopyTo (experimental) Creates a deep copy of the specified node and places it into the target container before the given anchor.

(DOMCopyTo) Call

1
func (m DOMCopyTo) Call(c Client) (*DOMCopyToResult, error)

Call the request.

(DOMCopyTo) ProtoReq <- 0.74.0

1
func (m DOMCopyTo) ProtoReq() string

ProtoReq name.

type DOMCopyToResult

1
2
3
4
type DOMCopyToResult struct {
	// NodeID Id of the node clone.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMCopyToResult (experimental) …

type DOMDebuggerCSPViolationType <- 0.90.0

1
type DOMDebuggerCSPViolationType string

DOMDebuggerCSPViolationType (experimental) CSP Violation type.

1
2
3
4
5
6
7
const (
	// DOMDebuggerCSPViolationTypeTrustedtypeSinkViolation enum const.
	DOMDebuggerCSPViolationTypeTrustedtypeSinkViolation DOMDebuggerCSPViolationType = "trustedtype-sink-violation"

	// DOMDebuggerCSPViolationTypeTrustedtypePolicyViolation enum const.
	DOMDebuggerCSPViolationTypeTrustedtypePolicyViolation DOMDebuggerCSPViolationType = "trustedtype-policy-violation"
)

type DOMDebuggerDOMBreakpointType

1
type DOMDebuggerDOMBreakpointType string

DOMDebuggerDOMBreakpointType DOM breakpoint type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// DOMDebuggerDOMBreakpointTypeSubtreeModified enum const.
	DOMDebuggerDOMBreakpointTypeSubtreeModified DOMDebuggerDOMBreakpointType = "subtree-modified"

	// DOMDebuggerDOMBreakpointTypeAttributeModified enum const.
	DOMDebuggerDOMBreakpointTypeAttributeModified DOMDebuggerDOMBreakpointType = "attribute-modified"

	// DOMDebuggerDOMBreakpointTypeNodeRemoved enum const.
	DOMDebuggerDOMBreakpointTypeNodeRemoved DOMDebuggerDOMBreakpointType = "node-removed"
)

type DOMDebuggerEventListener

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type DOMDebuggerEventListener struct {
	// Type `EventListener`'s type.
	Type string `json:"type"`

	// UseCapture `EventListener`'s useCapture.
	UseCapture bool `json:"useCapture"`

	// Passive `EventListener`'s passive flag.
	Passive bool `json:"passive"`

	// Once `EventListener`'s once flag.
	Once bool `json:"once"`

	// ScriptID Script id of the handler code.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// LineNumber Line number in the script (0-based).
	LineNumber int `json:"lineNumber"`

	// ColumnNumber Column number in the script (0-based).
	ColumnNumber int `json:"columnNumber"`

	// Handler (optional) Event handler function value.
	Handler *RuntimeRemoteObject `json:"handler,omitempty"`

	// OriginalHandler (optional) Event original handler function value.
	OriginalHandler *RuntimeRemoteObject `json:"originalHandler,omitempty"`

	// BackendNodeID (optional) Node the listener is added to (if any).
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`
}

DOMDebuggerEventListener Object event listener.

type DOMDebuggerGetEventListeners

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type DOMDebuggerGetEventListeners struct {
	// ObjectID Identifier of the object to return listeners for.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`

	// Depth (optional) The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the
	// entire subtree or provide an integer larger than 0.
	Depth *int `json:"depth,omitempty"`

	// Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree
	// (default is false). Reports listeners for all contexts if pierce is enabled.
	Pierce bool `json:"pierce,omitempty"`
}

DOMDebuggerGetEventListeners Returns event listeners of the given object.

(DOMDebuggerGetEventListeners) Call

1
func (m DOMDebuggerGetEventListeners) Call(c Client) (*DOMDebuggerGetEventListenersResult, error)

Call the request.

(DOMDebuggerGetEventListeners) ProtoReq <- 0.74.0

1
func (m DOMDebuggerGetEventListeners) ProtoReq() string

ProtoReq name.

type DOMDebuggerGetEventListenersResult

1
2
3
4
type DOMDebuggerGetEventListenersResult struct {
	// Listeners Array of relevant listeners.
	Listeners []*DOMDebuggerEventListener `json:"listeners"`
}

DOMDebuggerGetEventListenersResult …

type DOMDebuggerRemoveDOMBreakpoint

1
2
3
4
5
6
7
type DOMDebuggerRemoveDOMBreakpoint struct {
	// NodeID Identifier of the node to remove breakpoint from.
	NodeID DOMNodeID `json:"nodeId"`

	// Type of the breakpoint to remove.
	Type DOMDebuggerDOMBreakpointType `json:"type"`
}

DOMDebuggerRemoveDOMBreakpoint Removes DOM breakpoint that was set using setDOMBreakpoint.

(DOMDebuggerRemoveDOMBreakpoint) Call

1
func (m DOMDebuggerRemoveDOMBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerRemoveDOMBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerRemoveDOMBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerRemoveEventListenerBreakpoint

1
2
3
4
5
6
7
type DOMDebuggerRemoveEventListenerBreakpoint struct {
	// EventName Event name.
	EventName string `json:"eventName"`

	// TargetName (experimental) (optional) EventTarget interface name.
	TargetName string `json:"targetName,omitempty"`
}

DOMDebuggerRemoveEventListenerBreakpoint Removes breakpoint on particular DOM event.

(DOMDebuggerRemoveEventListenerBreakpoint) Call

1
func (m DOMDebuggerRemoveEventListenerBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerRemoveEventListenerBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerRemoveEventListenerBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerRemoveInstrumentationBreakpoint

1
2
3
4
type DOMDebuggerRemoveInstrumentationBreakpoint struct {
	// EventName Instrumentation name to stop on.
	EventName string `json:"eventName"`
}

DOMDebuggerRemoveInstrumentationBreakpoint (deprecated) (experimental) Removes breakpoint on particular native event.

(DOMDebuggerRemoveInstrumentationBreakpoint) Call

1
func (m DOMDebuggerRemoveInstrumentationBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerRemoveInstrumentationBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerRemoveInstrumentationBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerRemoveXHRBreakpoint

1
2
3
4
type DOMDebuggerRemoveXHRBreakpoint struct {
	// URL Resource URL substring.
	URL string `json:"url"`
}

DOMDebuggerRemoveXHRBreakpoint Removes breakpoint from XMLHttpRequest.

(DOMDebuggerRemoveXHRBreakpoint) Call

1
func (m DOMDebuggerRemoveXHRBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerRemoveXHRBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerRemoveXHRBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerSetBreakOnCSPViolation <- 0.90.0

1
2
3
4
type DOMDebuggerSetBreakOnCSPViolation struct {
	// ViolationTypes CSP Violations to stop upon.
	ViolationTypes []DOMDebuggerCSPViolationType `json:"violationTypes"`
}

DOMDebuggerSetBreakOnCSPViolation (experimental) Sets breakpoint on particular CSP violations.

(DOMDebuggerSetBreakOnCSPViolation) Call <- 0.90.0

1
func (m DOMDebuggerSetBreakOnCSPViolation) Call(c Client) error

Call sends the request.

(DOMDebuggerSetBreakOnCSPViolation) ProtoReq <- 0.90.0

1
func (m DOMDebuggerSetBreakOnCSPViolation) ProtoReq() string

ProtoReq name.

type DOMDebuggerSetDOMBreakpoint

1
2
3
4
5
6
7
type DOMDebuggerSetDOMBreakpoint struct {
	// NodeID Identifier of the node to set breakpoint on.
	NodeID DOMNodeID `json:"nodeId"`

	// Type of the operation to stop upon.
	Type DOMDebuggerDOMBreakpointType `json:"type"`
}

DOMDebuggerSetDOMBreakpoint Sets breakpoint on particular operation with DOM.

(DOMDebuggerSetDOMBreakpoint) Call

1
func (m DOMDebuggerSetDOMBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerSetDOMBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerSetDOMBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerSetEventListenerBreakpoint

1
2
3
4
5
6
7
8
type DOMDebuggerSetEventListenerBreakpoint struct {
	// EventName DOM Event name to stop on (any DOM event will do).
	EventName string `json:"eventName"`

	// TargetName (experimental) (optional) EventTarget interface name to stop on. If equal to `"*"` or not provided, will stop on any
	// EventTarget.
	TargetName string `json:"targetName,omitempty"`
}

DOMDebuggerSetEventListenerBreakpoint Sets breakpoint on particular DOM event.

(DOMDebuggerSetEventListenerBreakpoint) Call

1
func (m DOMDebuggerSetEventListenerBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerSetEventListenerBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerSetEventListenerBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerSetInstrumentationBreakpoint

1
2
3
4
type DOMDebuggerSetInstrumentationBreakpoint struct {
	// EventName Instrumentation name to stop on.
	EventName string `json:"eventName"`
}

DOMDebuggerSetInstrumentationBreakpoint (deprecated) (experimental) Sets breakpoint on particular native event.

(DOMDebuggerSetInstrumentationBreakpoint) Call

1
func (m DOMDebuggerSetInstrumentationBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerSetInstrumentationBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerSetInstrumentationBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDebuggerSetXHRBreakpoint

1
2
3
4
type DOMDebuggerSetXHRBreakpoint struct {
	// URL Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
	URL string `json:"url"`
}

DOMDebuggerSetXHRBreakpoint Sets breakpoint on XMLHttpRequest.

(DOMDebuggerSetXHRBreakpoint) Call

1
func (m DOMDebuggerSetXHRBreakpoint) Call(c Client) error

Call sends the request.

(DOMDebuggerSetXHRBreakpoint) ProtoReq <- 0.74.0

1
func (m DOMDebuggerSetXHRBreakpoint) ProtoReq() string

ProtoReq name.

type DOMDescribeNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type DOMDescribeNode struct {
	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
	// entire subtree or provide an integer larger than 0.
	Depth *int `json:"depth,omitempty"`

	// Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree
	// (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

DOMDescribeNode Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.

(DOMDescribeNode) Call

1
func (m DOMDescribeNode) Call(c Client) (*DOMDescribeNodeResult, error)

Call the request.

(DOMDescribeNode) ProtoReq <- 0.74.0

1
func (m DOMDescribeNode) ProtoReq() string

ProtoReq name.

type DOMDescribeNodeResult

1
2
3
4
type DOMDescribeNodeResult struct {
	// Node description.
	Node *DOMNode `json:"node"`
}

DOMDescribeNodeResult …

type DOMDisable

1
type DOMDisable struct{}

DOMDisable Disables DOM agent for the given page.

(DOMDisable) Call

1
func (m DOMDisable) Call(c Client) error

Call sends the request.

(DOMDisable) ProtoReq <- 0.74.0

1
func (m DOMDisable) ProtoReq() string

ProtoReq name.

type DOMDiscardSearchResults

1
2
3
4
type DOMDiscardSearchResults struct {
	// SearchID Unique search session identifier.
	SearchID string `json:"searchId"`
}

DOMDiscardSearchResults (experimental) Discards search results from the session with the given id. getSearchResults should no longer be called for that search.

(DOMDiscardSearchResults) Call

1
func (m DOMDiscardSearchResults) Call(c Client) error

Call sends the request.

(DOMDiscardSearchResults) ProtoReq <- 0.74.0

1
func (m DOMDiscardSearchResults) ProtoReq() string

ProtoReq name.

type DOMDistributedNodesUpdated

1
2
3
4
5
6
7
type DOMDistributedNodesUpdated struct {
	// InsertionPointID Insertion point where distributed nodes were updated.
	InsertionPointID DOMNodeID `json:"insertionPointId"`

	// DistributedNodes Distributed nodes for given insertion point.
	DistributedNodes []*DOMBackendNode `json:"distributedNodes"`
}

DOMDistributedNodesUpdated (experimental) Called when distribution is changed.

(DOMDistributedNodesUpdated) ProtoEvent <- 0.72.0

1
func (evt DOMDistributedNodesUpdated) ProtoEvent() string

ProtoEvent name.

type DOMDocumentUpdated

1
type DOMDocumentUpdated struct{}

DOMDocumentUpdated Fired when Document has been totally updated. Node ids are no longer valid.

(DOMDocumentUpdated) ProtoEvent <- 0.72.0

1
func (evt DOMDocumentUpdated) ProtoEvent() string

ProtoEvent name.

type DOMEnable

1
2
3
4
type DOMEnable struct {
	// IncludeWhitespace (experimental) (optional) Whether to include whitespaces in the children array of returned Nodes.
	IncludeWhitespace DOMEnableIncludeWhitespace `json:"includeWhitespace,omitempty"`
}

DOMEnable Enables DOM agent for the given page.

(DOMEnable) Call

1
func (m DOMEnable) Call(c Client) error

Call sends the request.

(DOMEnable) ProtoReq <- 0.74.0

1
func (m DOMEnable) ProtoReq() string

ProtoReq name.

type DOMEnableIncludeWhitespace <- 0.102.1

1
type DOMEnableIncludeWhitespace string

DOMEnableIncludeWhitespace enum.

1
2
3
4
5
6
7
const (
	// DOMEnableIncludeWhitespaceNone enum const.
	DOMEnableIncludeWhitespaceNone DOMEnableIncludeWhitespace = "none"

	// DOMEnableIncludeWhitespaceAll enum const.
	DOMEnableIncludeWhitespaceAll DOMEnableIncludeWhitespace = "all"
)

type DOMFocus

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMFocus struct {
	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

DOMFocus Focuses the given element.

(DOMFocus) Call

1
func (m DOMFocus) Call(c Client) error

Call sends the request.

(DOMFocus) ProtoReq <- 0.74.0

1
func (m DOMFocus) ProtoReq() string

ProtoReq name.

type DOMGetAnchorElement <- 0.116.2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMGetAnchorElement struct {
	// NodeID Id of the positioned element from which to find the anchor.
	NodeID DOMNodeID `json:"nodeId"`

	// AnchorSpecifier (optional) An optional anchor specifier, as defined in
	// https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.
	// If not provided, it will return the implicit anchor element for
	// the given positioned element.
	AnchorSpecifier string `json:"anchorSpecifier,omitempty"`
}

DOMGetAnchorElement (experimental) Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.

(DOMGetAnchorElement) Call <- 0.116.2

1
func (m DOMGetAnchorElement) Call(c Client) (*DOMGetAnchorElementResult, error)

Call the request.

(DOMGetAnchorElement) ProtoReq <- 0.116.2

1
func (m DOMGetAnchorElement) ProtoReq() string

ProtoReq name.

type DOMGetAnchorElementResult <- 0.116.2

1
2
3
4
type DOMGetAnchorElementResult struct {
	// NodeID The anchor element of the given anchor query.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetAnchorElementResult (experimental) …

type DOMGetAttributes

1
2
3
4
type DOMGetAttributes struct {
	// NodeID Id of the node to retrieve attributes for.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetAttributes Returns attributes for the specified node.

(DOMGetAttributes) Call

1
func (m DOMGetAttributes) Call(c Client) (*DOMGetAttributesResult, error)

Call the request.

(DOMGetAttributes) ProtoReq <- 0.74.0

1
func (m DOMGetAttributes) ProtoReq() string

ProtoReq name.

type DOMGetAttributesResult

1
2
3
4
type DOMGetAttributesResult struct {
	// Attributes An interleaved array of node attribute names and values.
	Attributes []string `json:"attributes"`
}

DOMGetAttributesResult …

type DOMGetBoxModel

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMGetBoxModel struct {
	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

DOMGetBoxModel Returns boxes for the given node.

(DOMGetBoxModel) Call

1
func (m DOMGetBoxModel) Call(c Client) (*DOMGetBoxModelResult, error)

Call the request.

(DOMGetBoxModel) ProtoReq <- 0.74.0

1
func (m DOMGetBoxModel) ProtoReq() string

ProtoReq name.

type DOMGetBoxModelResult

1
2
3
4
type DOMGetBoxModelResult struct {
	// Model Box model for the node.
	Model *DOMBoxModel `json:"model"`
}

DOMGetBoxModelResult …

type DOMGetContainerForNode <- 0.101.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMGetContainerForNode struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`

	// ContainerName (optional) ...
	ContainerName string `json:"containerName,omitempty"`

	// PhysicalAxes (optional) ...
	PhysicalAxes DOMPhysicalAxes `json:"physicalAxes,omitempty"`

	// LogicalAxes (optional) ...
	LogicalAxes DOMLogicalAxes `json:"logicalAxes,omitempty"`
}

DOMGetContainerForNode (experimental) Returns the query container of the given node based on container query conditions: containerName, physical, and logical axes. If no axes are provided, the style container is returned, which is the direct parent or the closest element with a matching container-name.

(DOMGetContainerForNode) Call <- 0.101.5

1
func (m DOMGetContainerForNode) Call(c Client) (*DOMGetContainerForNodeResult, error)

Call the request.

(DOMGetContainerForNode) ProtoReq <- 0.101.5

1
func (m DOMGetContainerForNode) ProtoReq() string

ProtoReq name.

type DOMGetContainerForNodeResult <- 0.101.5

1
2
3
4
type DOMGetContainerForNodeResult struct {
	// NodeID (optional) The container node for the given node, or null if not found.
	NodeID DOMNodeID `json:"nodeId,omitempty"`
}

DOMGetContainerForNodeResult (experimental) …

type DOMGetContentQuads

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMGetContentQuads struct {
	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

DOMGetContentQuads (experimental) Returns quads that describe node position on the page. This method might return multiple quads for inline nodes.

(DOMGetContentQuads) Call

1
func (m DOMGetContentQuads) Call(c Client) (*DOMGetContentQuadsResult, error)

Call the request.

(DOMGetContentQuads) ProtoReq <- 0.74.0

1
func (m DOMGetContentQuads) ProtoReq() string

ProtoReq name.

type DOMGetContentQuadsResult

1
2
3
4
type DOMGetContentQuadsResult struct {
	// Quads that describe node layout relative to viewport.
	Quads []DOMQuad `json:"quads"`
}

DOMGetContentQuadsResult (experimental) …

(*DOMGetContentQuadsResult) Box <- 0.88.6

1
func (res *DOMGetContentQuadsResult) Box() (box *DOMRect)

Box returns the smallest leveled rectangle that can cover the whole shape.

(*DOMGetContentQuadsResult) OnePointInside <- 0.66.0

1
func (res *DOMGetContentQuadsResult) OnePointInside() *Point

OnePointInside the shape.

type DOMGetDocument

1
2
3
4
5
6
7
8
9
type DOMGetDocument struct {
	// Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
	// entire subtree or provide an integer larger than 0.
	Depth *int `json:"depth,omitempty"`

	// Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree
	// (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

DOMGetDocument Returns the root DOM node (and optionally the subtree) to the caller. Implicitly enables the DOM domain events for the current target.

(DOMGetDocument) Call

1
func (m DOMGetDocument) Call(c Client) (*DOMGetDocumentResult, error)

Call the request.

(DOMGetDocument) ProtoReq <- 0.74.0

1
func (m DOMGetDocument) ProtoReq() string

ProtoReq name.

type DOMGetDocumentResult

1
2
3
4
type DOMGetDocumentResult struct {
	// Root Resulting node.
	Root *DOMNode `json:"root"`
}

DOMGetDocumentResult …

type DOMGetElementByRelation <- 0.116.0

1
2
3
4
5
6
7
type DOMGetElementByRelation struct {
	// NodeID Id of the node from which to query the relation.
	NodeID DOMNodeID `json:"nodeId"`

	// Relation Type of relation to get.
	Relation DOMGetElementByRelationRelation `json:"relation"`
}

DOMGetElementByRelation (experimental) Returns the NodeId of the matched element according to certain relations.

(DOMGetElementByRelation) Call <- 0.116.0

1
func (m DOMGetElementByRelation) Call(c Client) (*DOMGetElementByRelationResult, error)

Call the request.

(DOMGetElementByRelation) ProtoReq <- 0.116.0

1
func (m DOMGetElementByRelation) ProtoReq() string

ProtoReq name.

type DOMGetElementByRelationRelation <- 0.116.0

1
type DOMGetElementByRelationRelation string

DOMGetElementByRelationRelation enum.

1
2
3
4
const (
	// DOMGetElementByRelationRelationPopoverTarget enum const.
	DOMGetElementByRelationRelationPopoverTarget DOMGetElementByRelationRelation = "PopoverTarget"
)

type DOMGetElementByRelationResult <- 0.116.0

1
2
3
4
type DOMGetElementByRelationResult struct {
	// NodeID NodeId of the element matching the queried relation.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetElementByRelationResult (experimental) …

type DOMGetFileInfo

1
2
3
4
type DOMGetFileInfo struct {
	// ObjectID JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`
}

DOMGetFileInfo (experimental) Returns file information for the given File wrapper.

(DOMGetFileInfo) Call

1
func (m DOMGetFileInfo) Call(c Client) (*DOMGetFileInfoResult, error)

Call the request.

(DOMGetFileInfo) ProtoReq <- 0.74.0

1
func (m DOMGetFileInfo) ProtoReq() string

ProtoReq name.

type DOMGetFileInfoResult

1
2
3
4
type DOMGetFileInfoResult struct {
	// Path ...
	Path string `json:"path"`
}

DOMGetFileInfoResult (experimental) …

type DOMGetFlattenedDocument

1
2
3
4
5
6
7
8
9
type DOMGetFlattenedDocument struct {
	// Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
	// entire subtree or provide an integer larger than 0.
	Depth *int `json:"depth,omitempty"`

	// Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the subtree
	// (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

DOMGetFlattenedDocument (deprecated) Returns the root DOM node (and optionally the subtree) to the caller. Deprecated, as it is not designed to work well with the rest of the DOM agent. Use DOMSnapshot.captureSnapshot instead.

(DOMGetFlattenedDocument) Call

1
func (m DOMGetFlattenedDocument) Call(c Client) (*DOMGetFlattenedDocumentResult, error)

Call the request.

(DOMGetFlattenedDocument) ProtoReq <- 0.74.0

1
func (m DOMGetFlattenedDocument) ProtoReq() string

ProtoReq name.

type DOMGetFlattenedDocumentResult

1
2
3
4
type DOMGetFlattenedDocumentResult struct {
	// Nodes Resulting node.
	Nodes []*DOMNode `json:"nodes"`
}

DOMGetFlattenedDocumentResult (deprecated) …

type DOMGetFrameOwner

1
2
3
4
type DOMGetFrameOwner struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`
}

DOMGetFrameOwner (experimental) Returns iframe node that owns iframe with the given domain.

(DOMGetFrameOwner) Call

1
func (m DOMGetFrameOwner) Call(c Client) (*DOMGetFrameOwnerResult, error)

Call the request.

(DOMGetFrameOwner) ProtoReq <- 0.74.0

1
func (m DOMGetFrameOwner) ProtoReq() string

ProtoReq name.

type DOMGetFrameOwnerResult

1
2
3
4
5
6
7
type DOMGetFrameOwnerResult struct {
	// BackendNodeID Resulting node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`

	// NodeID (optional) Id of the node at given coordinates, only when enabled and requested document.
	NodeID DOMNodeID `json:"nodeId,omitempty"`
}

DOMGetFrameOwnerResult (experimental) …

type DOMGetNodeForLocation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMGetNodeForLocation struct {
	// X coordinate.
	X int `json:"x"`

	// Y coordinate.
	Y int `json:"y"`

	// IncludeUserAgentShadowDOM (optional) False to skip to the nearest non-UA shadow root ancestor (default: false).
	IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"`

	// IgnorePointerEventsNone (optional) Whether to ignore pointer-events: none on elements and hit test them.
	IgnorePointerEventsNone bool `json:"ignorePointerEventsNone,omitempty"`
}

DOMGetNodeForLocation Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is either returned or not.

(DOMGetNodeForLocation) Call

1
func (m DOMGetNodeForLocation) Call(c Client) (*DOMGetNodeForLocationResult, error)

Call the request.

(DOMGetNodeForLocation) ProtoReq <- 0.74.0

1
func (m DOMGetNodeForLocation) ProtoReq() string

ProtoReq name.

type DOMGetNodeForLocationResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMGetNodeForLocationResult struct {
	// BackendNodeID Resulting node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`

	// FrameID Frame this node belongs to.
	FrameID PageFrameID `json:"frameId"`

	// NodeID (optional) Id of the node at given coordinates, only when enabled and requested document.
	NodeID DOMNodeID `json:"nodeId,omitempty"`
}

DOMGetNodeForLocationResult …

type DOMGetNodeStackTraces

1
2
3
4
type DOMGetNodeStackTraces struct {
	// NodeID Id of the node to get stack traces for.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetNodeStackTraces (experimental) Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.

(DOMGetNodeStackTraces) Call

1
func (m DOMGetNodeStackTraces) Call(c Client) (*DOMGetNodeStackTracesResult, error)

Call the request.

(DOMGetNodeStackTraces) ProtoReq <- 0.74.0

1
func (m DOMGetNodeStackTraces) ProtoReq() string

ProtoReq name.

type DOMGetNodeStackTracesResult

1
2
3
4
type DOMGetNodeStackTracesResult struct {
	// Creation (optional) Creation stack trace, if available.
	Creation *RuntimeStackTrace `json:"creation,omitempty"`
}

DOMGetNodeStackTracesResult (experimental) …

type DOMGetNodesForSubtreeByStyle <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type DOMGetNodesForSubtreeByStyle struct {
	// NodeID Node ID pointing to the root of a subtree.
	NodeID DOMNodeID `json:"nodeId"`

	// ComputedStyles The style to filter nodes by (includes nodes if any of properties matches).
	ComputedStyles []*DOMCSSComputedStyleProperty `json:"computedStyles"`

	// Pierce (optional) Whether or not iframes and shadow roots in the same target should be traversed when returning the
	// results (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

DOMGetNodesForSubtreeByStyle (experimental) Finds nodes with a given computed style in a subtree.

(DOMGetNodesForSubtreeByStyle) Call <- 0.72.0

1
func (m DOMGetNodesForSubtreeByStyle) Call(c Client) (*DOMGetNodesForSubtreeByStyleResult, error)

Call the request.

(DOMGetNodesForSubtreeByStyle) ProtoReq <- 0.74.0

1
func (m DOMGetNodesForSubtreeByStyle) ProtoReq() string

ProtoReq name.

type DOMGetNodesForSubtreeByStyleResult <- 0.72.0

1
2
3
4
type DOMGetNodesForSubtreeByStyleResult struct {
	// NodeIDs Resulting nodes.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMGetNodesForSubtreeByStyleResult (experimental) …

type DOMGetOuterHTML

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMGetOuterHTML struct {
	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

DOMGetOuterHTML Returns node’s HTML markup.

(DOMGetOuterHTML) Call

1
func (m DOMGetOuterHTML) Call(c Client) (*DOMGetOuterHTMLResult, error)

Call the request.

(DOMGetOuterHTML) ProtoReq <- 0.74.0

1
func (m DOMGetOuterHTML) ProtoReq() string

ProtoReq name.

type DOMGetOuterHTMLResult

1
2
3
4
type DOMGetOuterHTMLResult struct {
	// OuterHTML Outer HTML markup.
	OuterHTML string `json:"outerHTML"`
}

DOMGetOuterHTMLResult …

type DOMGetQueryingDescendantsForContainer <- 0.102.0

1
2
3
4
type DOMGetQueryingDescendantsForContainer struct {
	// NodeID Id of the container node to find querying descendants from.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetQueryingDescendantsForContainer (experimental) Returns the descendants of a container query container that have container queries against this container.

(DOMGetQueryingDescendantsForContainer) Call <- 0.102.0

1
func (m DOMGetQueryingDescendantsForContainer) Call(c Client) (*DOMGetQueryingDescendantsForContainerResult, error)

Call the request.

(DOMGetQueryingDescendantsForContainer) ProtoReq <- 0.102.0

1
func (m DOMGetQueryingDescendantsForContainer) ProtoReq() string

ProtoReq name.

type DOMGetQueryingDescendantsForContainerResult <- 0.102.0

1
2
3
4
type DOMGetQueryingDescendantsForContainerResult struct {
	// NodeIDs Descendant nodes with container queries against the given container.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMGetQueryingDescendantsForContainerResult (experimental) …

type DOMGetRelayoutBoundary

1
2
3
4
type DOMGetRelayoutBoundary struct {
	// NodeID Id of the node.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetRelayoutBoundary (experimental) Returns the id of the nearest ancestor that is a relayout boundary.

(DOMGetRelayoutBoundary) Call

1
func (m DOMGetRelayoutBoundary) Call(c Client) (*DOMGetRelayoutBoundaryResult, error)

Call the request.

(DOMGetRelayoutBoundary) ProtoReq <- 0.74.0

1
func (m DOMGetRelayoutBoundary) ProtoReq() string

ProtoReq name.

type DOMGetRelayoutBoundaryResult

1
2
3
4
type DOMGetRelayoutBoundaryResult struct {
	// NodeID Relayout boundary node id for the given node.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMGetRelayoutBoundaryResult (experimental) …

type DOMGetSearchResults

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMGetSearchResults struct {
	// SearchID Unique search session identifier.
	SearchID string `json:"searchId"`

	// FromIndex Start index of the search result to be returned.
	FromIndex int `json:"fromIndex"`

	// ToIndex End index of the search result to be returned.
	ToIndex int `json:"toIndex"`
}

DOMGetSearchResults (experimental) Returns search results from given fromIndex to given toIndex from the search with the given identifier.

(DOMGetSearchResults) Call

1
func (m DOMGetSearchResults) Call(c Client) (*DOMGetSearchResultsResult, error)

Call the request.

(DOMGetSearchResults) ProtoReq <- 0.74.0

1
func (m DOMGetSearchResults) ProtoReq() string

ProtoReq name.

type DOMGetSearchResultsResult

1
2
3
4
type DOMGetSearchResultsResult struct {
	// NodeIDs Ids of the search result nodes.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMGetSearchResultsResult (experimental) …

type DOMGetTopLayerElements <- 0.108.0

1
type DOMGetTopLayerElements struct{}

DOMGetTopLayerElements (experimental) Returns NodeIds of current top layer elements. Top layer is rendered closest to the user within a viewport, therefore its elements always appear on top of all other content.

(DOMGetTopLayerElements) Call <- 0.108.0

1
func (m DOMGetTopLayerElements) Call(c Client) (*DOMGetTopLayerElementsResult, error)

Call the request.

(DOMGetTopLayerElements) ProtoReq <- 0.108.0

1
func (m DOMGetTopLayerElements) ProtoReq() string

ProtoReq name.

type DOMGetTopLayerElementsResult <- 0.108.0

1
2
3
4
type DOMGetTopLayerElementsResult struct {
	// NodeIDs NodeIds of top layer elements
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMGetTopLayerElementsResult (experimental) …

type DOMHideHighlight

1
type DOMHideHighlight struct{}

DOMHideHighlight Hides any highlight.

(DOMHideHighlight) Call

1
func (m DOMHideHighlight) Call(c Client) error

Call sends the request.

(DOMHideHighlight) ProtoReq <- 0.74.0

1
func (m DOMHideHighlight) ProtoReq() string

ProtoReq name.

type DOMHighlightNode

1
type DOMHighlightNode struct{}

DOMHighlightNode Highlights DOM node.

(DOMHighlightNode) Call

1
func (m DOMHighlightNode) Call(c Client) error

Call sends the request.

(DOMHighlightNode) ProtoReq <- 0.74.0

1
func (m DOMHighlightNode) ProtoReq() string

ProtoReq name.

type DOMHighlightRect

1
type DOMHighlightRect struct{}

DOMHighlightRect Highlights given rectangle.

(DOMHighlightRect) Call

1
func (m DOMHighlightRect) Call(c Client) error

Call sends the request.

(DOMHighlightRect) ProtoReq <- 0.74.0

1
func (m DOMHighlightRect) ProtoReq() string

ProtoReq name.

type DOMInlineStyleInvalidated

1
2
3
4
type DOMInlineStyleInvalidated struct {
	// NodeIDs Ids of the nodes for which the inline styles have been invalidated.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMInlineStyleInvalidated (experimental) Fired when Element’s inline style is modified via a CSS property modification.

(DOMInlineStyleInvalidated) ProtoEvent <- 0.72.0

1
func (evt DOMInlineStyleInvalidated) ProtoEvent() string

ProtoEvent name.

type DOMLogicalAxes <- 0.112.3

1
type DOMLogicalAxes string

DOMLogicalAxes ContainerSelector logical axes.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// DOMLogicalAxesInline enum const.
	DOMLogicalAxesInline DOMLogicalAxes = "Inline"

	// DOMLogicalAxesBlock enum const.
	DOMLogicalAxesBlock DOMLogicalAxes = "Block"

	// DOMLogicalAxesBoth enum const.
	DOMLogicalAxesBoth DOMLogicalAxes = "Both"
)

type DOMMarkUndoableState

1
type DOMMarkUndoableState struct{}

DOMMarkUndoableState (experimental) Marks last undoable state.

(DOMMarkUndoableState) Call

1
func (m DOMMarkUndoableState) Call(c Client) error

Call sends the request.

(DOMMarkUndoableState) ProtoReq <- 0.74.0

1
func (m DOMMarkUndoableState) ProtoReq() string

ProtoReq name.

type DOMMoveTo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type DOMMoveTo struct {
	// NodeID Id of the node to move.
	NodeID DOMNodeID `json:"nodeId"`

	// TargetNodeID Id of the element to drop the moved node into.
	TargetNodeID DOMNodeID `json:"targetNodeId"`

	// InsertBeforeNodeID (optional) Drop node before this one (if absent, the moved node becomes the last child of
	// `targetNodeId`).
	InsertBeforeNodeID DOMNodeID `json:"insertBeforeNodeId,omitempty"`
}

DOMMoveTo Moves node into the new container, places it before the given anchor.

(DOMMoveTo) Call

1
func (m DOMMoveTo) Call(c Client) (*DOMMoveToResult, error)

Call the request.

(DOMMoveTo) ProtoReq <- 0.74.0

1
func (m DOMMoveTo) ProtoReq() string

ProtoReq name.

type DOMMoveToResult

1
2
3
4
type DOMMoveToResult struct {
	// NodeID New id of the moved node.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMMoveToResult …

type DOMNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
type DOMNode struct {
	// NodeID Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend
	// will only push node with given `id` once. It is aware of all requested nodes and will only
	// fire DOM events for nodes known to the client.
	NodeID DOMNodeID `json:"nodeId"`

	// ParentID (optional) The id of the parent node if any.
	ParentID DOMNodeID `json:"parentId,omitempty"`

	// BackendNodeID The BackendNodeId for this node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`

	// NodeType `Node`'s nodeType.
	NodeType int `json:"nodeType"`

	// NodeName `Node`'s nodeName.
	NodeName string `json:"nodeName"`

	// LocalName `Node`'s localName.
	LocalName string `json:"localName"`

	// NodeValue `Node`'s nodeValue.
	NodeValue string `json:"nodeValue"`

	// ChildNodeCount (optional) Child count for `Container` nodes.
	ChildNodeCount *int `json:"childNodeCount,omitempty"`

	// Children (optional) Child nodes of this node when requested with children.
	Children []*DOMNode `json:"children,omitempty"`

	// Attributes (optional) Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
	Attributes []string `json:"attributes,omitempty"`

	// DocumentURL (optional) Document URL that `Document` or `FrameOwner` node points to.
	DocumentURL string `json:"documentURL,omitempty"`

	// BaseURL (optional) Base URL that `Document` or `FrameOwner` node uses for URL completion.
	BaseURL string `json:"baseURL,omitempty"`

	// PublicID (optional) `DocumentType`'s publicId.
	PublicID string `json:"publicId,omitempty"`

	// SystemID (optional) `DocumentType`'s systemId.
	SystemID string `json:"systemId,omitempty"`

	// InternalSubset (optional) `DocumentType`'s internalSubset.
	InternalSubset string `json:"internalSubset,omitempty"`

	// XMLVersion (optional) `Document`'s XML version in case of XML documents.
	XMLVersion string `json:"xmlVersion,omitempty"`

	// Name (optional) `Attr`'s name.
	Name string `json:"name,omitempty"`

	// Value (optional) `Attr`'s value.
	Value string `json:"value,omitempty"`

	// PseudoType (optional) Pseudo element type for this node.
	PseudoType DOMPseudoType `json:"pseudoType,omitempty"`

	// PseudoIdentifier (optional) Pseudo element identifier for this node. Only present if there is a
	// valid pseudoType.
	PseudoIdentifier string `json:"pseudoIdentifier,omitempty"`

	// ShadowRootType (optional) Shadow root type.
	ShadowRootType DOMShadowRootType `json:"shadowRootType,omitempty"`

	// FrameID (optional) Frame ID for frame owner elements.
	FrameID PageFrameID `json:"frameId,omitempty"`

	// ContentDocument (optional) Content document for frame owner elements.
	ContentDocument *DOMNode `json:"contentDocument,omitempty"`

	// ShadowRoots (optional) Shadow root list for given element host.
	ShadowRoots []*DOMNode `json:"shadowRoots,omitempty"`

	// TemplateContent (optional) Content document fragment for template elements.
	TemplateContent *DOMNode `json:"templateContent,omitempty"`

	// PseudoElements (optional) Pseudo elements associated with this node.
	PseudoElements []*DOMNode `json:"pseudoElements,omitempty"`

	// ImportedDocument (deprecated) (optional) Deprecated, as the HTML Imports API has been removed (crbug.com/937746).
	// This property used to return the imported document for the HTMLImport links.
	// The property is always undefined now.
	ImportedDocument *DOMNode `json:"importedDocument,omitempty"`

	// DistributedNodes (optional) Distributed nodes for given insertion point.
	DistributedNodes []*DOMBackendNode `json:"distributedNodes,omitempty"`

	// IsSVG (optional) Whether the node is SVG.
	IsSVG bool `json:"isSVG,omitempty"`

	// CompatibilityMode (optional) ...
	CompatibilityMode DOMCompatibilityMode `json:"compatibilityMode,omitempty"`

	// AssignedSlot (optional) ...
	AssignedSlot *DOMBackendNode `json:"assignedSlot,omitempty"`
}

DOMNode DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.

type DOMNodeID

1
type DOMNodeID int

DOMNodeID Unique DOM node identifier.

type DOMPerformSearch

1
2
3
4
5
6
7
type DOMPerformSearch struct {
	// Query Plain text or query selector or XPath search query.
	Query string `json:"query"`

	// IncludeUserAgentShadowDOM (optional) True to search in user agent shadow DOM.
	IncludeUserAgentShadowDOM bool `json:"includeUserAgentShadowDOM,omitempty"`
}

DOMPerformSearch (experimental) Searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.

(DOMPerformSearch) Call

1
func (m DOMPerformSearch) Call(c Client) (*DOMPerformSearchResult, error)

Call the request.

(DOMPerformSearch) ProtoReq <- 0.74.0

1
func (m DOMPerformSearch) ProtoReq() string

ProtoReq name.

type DOMPerformSearchResult

1
2
3
4
5
6
7
type DOMPerformSearchResult struct {
	// SearchID Unique search session identifier.
	SearchID string `json:"searchId"`

	// ResultCount Number of search results.
	ResultCount int `json:"resultCount"`
}

DOMPerformSearchResult (experimental) …

type DOMPhysicalAxes <- 0.112.3

1
type DOMPhysicalAxes string

DOMPhysicalAxes ContainerSelector physical axes.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// DOMPhysicalAxesHorizontal enum const.
	DOMPhysicalAxesHorizontal DOMPhysicalAxes = "Horizontal"

	// DOMPhysicalAxesVertical enum const.
	DOMPhysicalAxesVertical DOMPhysicalAxes = "Vertical"

	// DOMPhysicalAxesBoth enum const.
	DOMPhysicalAxesBoth DOMPhysicalAxes = "Both"
)

type DOMPseudoElementAdded

1
2
3
4
5
6
7
type DOMPseudoElementAdded struct {
	// ParentID Pseudo element's parent element id.
	ParentID DOMNodeID `json:"parentId"`

	// PseudoElement The added pseudo element.
	PseudoElement *DOMNode `json:"pseudoElement"`
}

DOMPseudoElementAdded (experimental) Called when a pseudo element is added to an element.

(DOMPseudoElementAdded) ProtoEvent <- 0.72.0

1
func (evt DOMPseudoElementAdded) ProtoEvent() string

ProtoEvent name.

type DOMPseudoElementRemoved

1
2
3
4
5
6
7
type DOMPseudoElementRemoved struct {
	// ParentID Pseudo element's parent element id.
	ParentID DOMNodeID `json:"parentId"`

	// PseudoElementID The removed pseudo element id.
	PseudoElementID DOMNodeID `json:"pseudoElementId"`
}

DOMPseudoElementRemoved (experimental) Called when a pseudo element is removed from an element.

(DOMPseudoElementRemoved) ProtoEvent <- 0.72.0

1
func (evt DOMPseudoElementRemoved) ProtoEvent() string

ProtoEvent name.

type DOMPseudoType

1
type DOMPseudoType string

DOMPseudoType Pseudo element type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
const (
	// DOMPseudoTypeFirstLine enum const.
	DOMPseudoTypeFirstLine DOMPseudoType = "first-line"

	// DOMPseudoTypeFirstLetter enum const.
	DOMPseudoTypeFirstLetter DOMPseudoType = "first-letter"

	// DOMPseudoTypeBefore enum const.
	DOMPseudoTypeBefore DOMPseudoType = "before"

	// DOMPseudoTypeAfter enum const.
	DOMPseudoTypeAfter DOMPseudoType = "after"

	// DOMPseudoTypeMarker enum const.
	DOMPseudoTypeMarker DOMPseudoType = "marker"

	// DOMPseudoTypeBackdrop enum const.
	DOMPseudoTypeBackdrop DOMPseudoType = "backdrop"

	// DOMPseudoTypeSelection enum const.
	DOMPseudoTypeSelection DOMPseudoType = "selection"

	// DOMPseudoTypeSearchText enum const.
	DOMPseudoTypeSearchText DOMPseudoType = "search-text"

	// DOMPseudoTypeTargetText enum const.
	DOMPseudoTypeTargetText DOMPseudoType = "target-text"

	// DOMPseudoTypeSpellingError enum const.
	DOMPseudoTypeSpellingError DOMPseudoType = "spelling-error"

	// DOMPseudoTypeGrammarError enum const.
	DOMPseudoTypeGrammarError DOMPseudoType = "grammar-error"

	// DOMPseudoTypeHighlight enum const.
	DOMPseudoTypeHighlight DOMPseudoType = "highlight"

	// DOMPseudoTypeFirstLineInherited enum const.
	DOMPseudoTypeFirstLineInherited DOMPseudoType = "first-line-inherited"

	// DOMPseudoTypeScrollMarker enum const.
	DOMPseudoTypeScrollMarker DOMPseudoType = "scroll-marker"

	// DOMPseudoTypeScrollMarkerGroup enum const.
	DOMPseudoTypeScrollMarkerGroup DOMPseudoType = "scroll-marker-group"

	// DOMPseudoTypeScrollbar enum const.
	DOMPseudoTypeScrollbar DOMPseudoType = "scrollbar"

	// DOMPseudoTypeScrollbarThumb enum const.
	DOMPseudoTypeScrollbarThumb DOMPseudoType = "scrollbar-thumb"

	// DOMPseudoTypeScrollbarButton enum const.
	DOMPseudoTypeScrollbarButton DOMPseudoType = "scrollbar-button"

	// DOMPseudoTypeScrollbarTrack enum const.
	DOMPseudoTypeScrollbarTrack DOMPseudoType = "scrollbar-track"

	// DOMPseudoTypeScrollbarTrackPiece enum const.
	DOMPseudoTypeScrollbarTrackPiece DOMPseudoType = "scrollbar-track-piece"

	// DOMPseudoTypeScrollbarCorner enum const.
	DOMPseudoTypeScrollbarCorner DOMPseudoType = "scrollbar-corner"

	// DOMPseudoTypeResizer enum const.
	DOMPseudoTypeResizer DOMPseudoType = "resizer"

	// DOMPseudoTypeInputListButton enum const.
	DOMPseudoTypeInputListButton DOMPseudoType = "input-list-button"

	// DOMPseudoTypeViewTransition enum const.
	DOMPseudoTypeViewTransition DOMPseudoType = "view-transition"

	// DOMPseudoTypeViewTransitionGroup enum const.
	DOMPseudoTypeViewTransitionGroup DOMPseudoType = "view-transition-group"

	// DOMPseudoTypeViewTransitionImagePair enum const.
	DOMPseudoTypeViewTransitionImagePair DOMPseudoType = "view-transition-image-pair"

	// DOMPseudoTypeViewTransitionOld enum const.
	DOMPseudoTypeViewTransitionOld DOMPseudoType = "view-transition-old"

	// DOMPseudoTypeViewTransitionNew enum const.
	DOMPseudoTypeViewTransitionNew DOMPseudoType = "view-transition-new"
)

type DOMPushNodeByPathToFrontend

1
2
3
4
type DOMPushNodeByPathToFrontend struct {
	// Path to node in the proprietary format.
	Path string `json:"path"`
}

DOMPushNodeByPathToFrontend (experimental) Requests that the node is sent to the caller given its path. // FIXME, use XPath.

(DOMPushNodeByPathToFrontend) Call

1
func (m DOMPushNodeByPathToFrontend) Call(c Client) (*DOMPushNodeByPathToFrontendResult, error)

Call the request.

(DOMPushNodeByPathToFrontend) ProtoReq <- 0.74.0

1
func (m DOMPushNodeByPathToFrontend) ProtoReq() string

ProtoReq name.

type DOMPushNodeByPathToFrontendResult

1
2
3
4
type DOMPushNodeByPathToFrontendResult struct {
	// NodeID Id of the node for given path.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMPushNodeByPathToFrontendResult (experimental) …

type DOMPushNodesByBackendIDsToFrontend <- 0.114.8

1
2
3
4
type DOMPushNodesByBackendIDsToFrontend struct {
	// BackendNodeIDs The array of backend node ids.
	BackendNodeIDs []DOMBackendNodeID `json:"backendNodeIds"`
}

DOMPushNodesByBackendIDsToFrontend (experimental) Requests that a batch of nodes is sent to the caller given their backend node ids.

(DOMPushNodesByBackendIDsToFrontend) Call <- 0.114.8

1
func (m DOMPushNodesByBackendIDsToFrontend) Call(c Client) (*DOMPushNodesByBackendIDsToFrontendResult, error)

Call the request.

(DOMPushNodesByBackendIDsToFrontend) ProtoReq <- 0.114.8

1
func (m DOMPushNodesByBackendIDsToFrontend) ProtoReq() string

ProtoReq name.

type DOMPushNodesByBackendIDsToFrontendResult <- 0.114.8

1
2
3
4
5
type DOMPushNodesByBackendIDsToFrontendResult struct {
	// NodeIDs The array of ids of pushed nodes that correspond to the backend ids specified in
	// backendNodeIds.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMPushNodesByBackendIDsToFrontendResult (experimental) …

type DOMQuad

1
type DOMQuad []float64

DOMQuad An array of quad vertices, x immediately followed by y for each point, points clock-wise.

(DOMQuad) Area <- 0.88.11

1
func (q DOMQuad) Area() float64

Area of the polygon https://en.wikipedia.org/wiki/Polygon#Area

(DOMQuad) Center <- 0.66.0

1
func (q DOMQuad) Center() Point

Center of the polygon.

(DOMQuad) Each <- 0.66.0

1
func (q DOMQuad) Each(fn func(pt Point, i int))

Each point.

(DOMQuad) Len <- 0.67.0

1
func (q DOMQuad) Len() int

Len is the number of vertices.

type DOMQuerySelector

1
2
3
4
5
6
7
type DOMQuerySelector struct {
	// NodeID Id of the node to query upon.
	NodeID DOMNodeID `json:"nodeId"`

	// Selector string.
	Selector string `json:"selector"`
}

DOMQuerySelector Executes querySelector on a given node.

(DOMQuerySelector) Call

1
func (m DOMQuerySelector) Call(c Client) (*DOMQuerySelectorResult, error)

Call the request.

(DOMQuerySelector) ProtoReq <- 0.74.0

1
func (m DOMQuerySelector) ProtoReq() string

ProtoReq name.

type DOMQuerySelectorAll

1
2
3
4
5
6
7
type DOMQuerySelectorAll struct {
	// NodeID Id of the node to query upon.
	NodeID DOMNodeID `json:"nodeId"`

	// Selector string.
	Selector string `json:"selector"`
}

DOMQuerySelectorAll Executes querySelectorAll on a given node.

(DOMQuerySelectorAll) Call

1
func (m DOMQuerySelectorAll) Call(c Client) (*DOMQuerySelectorAllResult, error)

Call the request.

(DOMQuerySelectorAll) ProtoReq <- 0.74.0

1
func (m DOMQuerySelectorAll) ProtoReq() string

ProtoReq name.

type DOMQuerySelectorAllResult

1
2
3
4
type DOMQuerySelectorAllResult struct {
	// NodeIDs Query selector result.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

DOMQuerySelectorAllResult …

type DOMQuerySelectorResult

1
2
3
4
type DOMQuerySelectorResult struct {
	// NodeID Query selector result.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMQuerySelectorResult …

type DOMRGBA

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMRGBA struct {
	// R The red component, in the [0-255] range.
	R int `json:"r"`

	// G The green component, in the [0-255] range.
	G int `json:"g"`

	// B The blue component, in the [0-255] range.
	B int `json:"b"`

	// A (optional) The alpha component, in the [0-1] range (default: 1).
	A *float64 `json:"a,omitempty"`
}

DOMRGBA A structure holding an RGBA color.

type DOMRect

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMRect struct {
	// X coordinate
	X float64 `json:"x"`

	// Y coordinate
	Y float64 `json:"y"`

	// Width Rectangle width
	Width float64 `json:"width"`

	// Height Rectangle height
	Height float64 `json:"height"`
}

DOMRect Rectangle.

type DOMRedo

1
type DOMRedo struct{}

DOMRedo (experimental) Re-does the last undone action.

(DOMRedo) Call

1
func (m DOMRedo) Call(c Client) error

Call sends the request.

(DOMRedo) ProtoReq <- 0.74.0

1
func (m DOMRedo) ProtoReq() string

ProtoReq name.

type DOMRemoveAttribute

1
2
3
4
5
6
7
type DOMRemoveAttribute struct {
	// NodeID Id of the element to remove attribute from.
	NodeID DOMNodeID `json:"nodeId"`

	// Name of the attribute to remove.
	Name string `json:"name"`
}

DOMRemoveAttribute Removes attribute with given name from an element with given id.

(DOMRemoveAttribute) Call

1
func (m DOMRemoveAttribute) Call(c Client) error

Call sends the request.

(DOMRemoveAttribute) ProtoReq <- 0.74.0

1
func (m DOMRemoveAttribute) ProtoReq() string

ProtoReq name.

type DOMRemoveNode

1
2
3
4
type DOMRemoveNode struct {
	// NodeID Id of the node to remove.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMRemoveNode Removes node with given id.

(DOMRemoveNode) Call

1
func (m DOMRemoveNode) Call(c Client) error

Call sends the request.

(DOMRemoveNode) ProtoReq <- 0.74.0

1
func (m DOMRemoveNode) ProtoReq() string

ProtoReq name.

type DOMRequestChildNodes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type DOMRequestChildNodes struct {
	// NodeID Id of the node to get children for.
	NodeID DOMNodeID `json:"nodeId"`

	// Depth (optional) The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
	// entire subtree or provide an integer larger than 0.
	Depth *int `json:"depth,omitempty"`

	// Pierce (optional) Whether or not iframes and shadow roots should be traversed when returning the sub-tree
	// (default is false).
	Pierce bool `json:"pierce,omitempty"`
}

DOMRequestChildNodes Requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth.

(DOMRequestChildNodes) Call

1
func (m DOMRequestChildNodes) Call(c Client) error

Call sends the request.

(DOMRequestChildNodes) ProtoReq <- 0.74.0

1
func (m DOMRequestChildNodes) ProtoReq() string

ProtoReq name.

type DOMRequestNode

1
2
3
4
type DOMRequestNode struct {
	// ObjectID JavaScript object id to convert into node.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`
}

DOMRequestNode Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications.

(DOMRequestNode) Call

1
func (m DOMRequestNode) Call(c Client) (*DOMRequestNodeResult, error)

Call the request.

(DOMRequestNode) ProtoReq <- 0.74.0

1
func (m DOMRequestNode) ProtoReq() string

ProtoReq name.

type DOMRequestNodeResult

1
2
3
4
type DOMRequestNodeResult struct {
	// NodeID Node id for given object.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMRequestNodeResult …

type DOMResolveNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMResolveNode struct {
	// NodeID (optional) Id of the node to resolve.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Backend identifier of the node to resolve.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectGroup (optional) Symbolic group name that can be used to release multiple objects.
	ObjectGroup string `json:"objectGroup,omitempty"`

	// ExecutionContextID (optional) Execution context in which to resolve the node.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`
}

DOMResolveNode Resolves the JavaScript node object for a given NodeId or BackendNodeId.

(DOMResolveNode) Call

1
func (m DOMResolveNode) Call(c Client) (*DOMResolveNodeResult, error)

Call the request.

(DOMResolveNode) ProtoReq <- 0.74.0

1
func (m DOMResolveNode) ProtoReq() string

ProtoReq name.

type DOMResolveNodeResult

1
2
3
4
type DOMResolveNodeResult struct {
	// Object JavaScript object wrapper for given node.
	Object *RuntimeRemoteObject `json:"object"`
}

DOMResolveNodeResult …

type DOMScrollIntoViewIfNeeded

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type DOMScrollIntoViewIfNeeded struct {
	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// Rect (optional) The rect to be scrolled into view, relative to the node's border box, in CSS pixels.
	// When omitted, center of the node will be used, similar to Element.scrollIntoView.
	Rect *DOMRect `json:"rect,omitempty"`
}

DOMScrollIntoViewIfNeeded Scrolls the specified rect of the given node into view if not already visible. Note: exactly one between nodeId, backendNodeId and objectId should be passed to identify the node.

(DOMScrollIntoViewIfNeeded) Call

1
func (m DOMScrollIntoViewIfNeeded) Call(c Client) error

Call sends the request.

(DOMScrollIntoViewIfNeeded) ProtoReq <- 0.74.0

1
func (m DOMScrollIntoViewIfNeeded) ProtoReq() string

ProtoReq name.

type DOMScrollOrientation <- 0.115.0

1
type DOMScrollOrientation string

DOMScrollOrientation Physical scroll orientation.

1
2
3
4
5
6
7
const (
	// DOMScrollOrientationHorizontal enum const.
	DOMScrollOrientationHorizontal DOMScrollOrientation = "horizontal"

	// DOMScrollOrientationVertical enum const.
	DOMScrollOrientationVertical DOMScrollOrientation = "vertical"
)

type DOMSetAttributeValue

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMSetAttributeValue struct {
	// NodeID Id of the element to set attribute for.
	NodeID DOMNodeID `json:"nodeId"`

	// Name Attribute name.
	Name string `json:"name"`

	// Value Attribute value.
	Value string `json:"value"`
}

DOMSetAttributeValue Sets attribute for an element with given id.

(DOMSetAttributeValue) Call

1
func (m DOMSetAttributeValue) Call(c Client) error

Call sends the request.

(DOMSetAttributeValue) ProtoReq <- 0.74.0

1
func (m DOMSetAttributeValue) ProtoReq() string

ProtoReq name.

type DOMSetAttributesAsText

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type DOMSetAttributesAsText struct {
	// NodeID Id of the element to set attributes for.
	NodeID DOMNodeID `json:"nodeId"`

	// Text with a number of attributes. Will parse this text using HTML parser.
	Text string `json:"text"`

	// Name (optional) Attribute name to replace with new attributes derived from text in case text parsed
	// successfully.
	Name string `json:"name,omitempty"`
}

DOMSetAttributesAsText Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

(DOMSetAttributesAsText) Call

1
func (m DOMSetAttributesAsText) Call(c Client) error

Call sends the request.

(DOMSetAttributesAsText) ProtoReq <- 0.74.0

1
func (m DOMSetAttributesAsText) ProtoReq() string

ProtoReq name.

type DOMSetChildNodes

1
2
3
4
5
6
7
type DOMSetChildNodes struct {
	// ParentID Parent node id to populate with children.
	ParentID DOMNodeID `json:"parentId"`

	// Nodes Child nodes array.
	Nodes []*DOMNode `json:"nodes"`
}

DOMSetChildNodes Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids.

(DOMSetChildNodes) ProtoEvent <- 0.72.0

1
func (evt DOMSetChildNodes) ProtoEvent() string

ProtoEvent name.

type DOMSetFileInputFiles

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMSetFileInputFiles struct {
	// Files Array of file paths to set.
	Files []string `json:"files"`

	// NodeID (optional) Identifier of the node.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

DOMSetFileInputFiles Sets files for the given file input element.

(DOMSetFileInputFiles) Call

1
func (m DOMSetFileInputFiles) Call(c Client) error

Call sends the request.

(DOMSetFileInputFiles) ProtoReq <- 0.74.0

1
func (m DOMSetFileInputFiles) ProtoReq() string

ProtoReq name.

type DOMSetInspectedNode

1
2
3
4
type DOMSetInspectedNode struct {
	// NodeID DOM node id to be accessible by means of $x command line API.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMSetInspectedNode (experimental) Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

(DOMSetInspectedNode) Call

1
func (m DOMSetInspectedNode) Call(c Client) error

Call sends the request.

(DOMSetInspectedNode) ProtoReq <- 0.74.0

1
func (m DOMSetInspectedNode) ProtoReq() string

ProtoReq name.

type DOMSetNodeName

1
2
3
4
5
6
7
type DOMSetNodeName struct {
	// NodeID Id of the node to set name for.
	NodeID DOMNodeID `json:"nodeId"`

	// Name New node's name.
	Name string `json:"name"`
}

DOMSetNodeName Sets node name for a node with given id.

(DOMSetNodeName) Call

1
func (m DOMSetNodeName) Call(c Client) (*DOMSetNodeNameResult, error)

Call the request.

(DOMSetNodeName) ProtoReq <- 0.74.0

1
func (m DOMSetNodeName) ProtoReq() string

ProtoReq name.

type DOMSetNodeNameResult

1
2
3
4
type DOMSetNodeNameResult struct {
	// NodeID New node's id.
	NodeID DOMNodeID `json:"nodeId"`
}

DOMSetNodeNameResult …

type DOMSetNodeStackTracesEnabled

1
2
3
4
type DOMSetNodeStackTracesEnabled struct {
	// Enable or disable.
	Enable bool `json:"enable"`
}

DOMSetNodeStackTracesEnabled (experimental) Sets if stack traces should be captured for Nodes. See Node.getNodeStackTraces. Default is disabled.

(DOMSetNodeStackTracesEnabled) Call

1
func (m DOMSetNodeStackTracesEnabled) Call(c Client) error

Call sends the request.

(DOMSetNodeStackTracesEnabled) ProtoReq <- 0.74.0

1
func (m DOMSetNodeStackTracesEnabled) ProtoReq() string

ProtoReq name.

type DOMSetNodeValue

1
2
3
4
5
6
7
type DOMSetNodeValue struct {
	// NodeID Id of the node to set value for.
	NodeID DOMNodeID `json:"nodeId"`

	// Value New node's value.
	Value string `json:"value"`
}

DOMSetNodeValue Sets node value for a node with given id.

(DOMSetNodeValue) Call

1
func (m DOMSetNodeValue) Call(c Client) error

Call sends the request.

(DOMSetNodeValue) ProtoReq <- 0.74.0

1
func (m DOMSetNodeValue) ProtoReq() string

ProtoReq name.

type DOMSetOuterHTML

1
2
3
4
5
6
7
type DOMSetOuterHTML struct {
	// NodeID Id of the node to set markup for.
	NodeID DOMNodeID `json:"nodeId"`

	// OuterHTML Outer HTML markup to set.
	OuterHTML string `json:"outerHTML"`
}

DOMSetOuterHTML Sets node HTML markup, returns new node id.

(DOMSetOuterHTML) Call

1
func (m DOMSetOuterHTML) Call(c Client) error

Call sends the request.

(DOMSetOuterHTML) ProtoReq <- 0.74.0

1
func (m DOMSetOuterHTML) ProtoReq() string

ProtoReq name.

type DOMShadowRootPopped

1
2
3
4
5
6
7
type DOMShadowRootPopped struct {
	// HostID Host element id.
	HostID DOMNodeID `json:"hostId"`

	// RootID Shadow root id.
	RootID DOMNodeID `json:"rootId"`
}

DOMShadowRootPopped (experimental) Called when shadow root is popped from the element.

(DOMShadowRootPopped) ProtoEvent <- 0.72.0

1
func (evt DOMShadowRootPopped) ProtoEvent() string

ProtoEvent name.

type DOMShadowRootPushed

1
2
3
4
5
6
7
type DOMShadowRootPushed struct {
	// HostID Host element id.
	HostID DOMNodeID `json:"hostId"`

	// Root Shadow root.
	Root *DOMNode `json:"root"`
}

DOMShadowRootPushed (experimental) Called when shadow root is pushed into the element.

(DOMShadowRootPushed) ProtoEvent <- 0.72.0

1
func (evt DOMShadowRootPushed) ProtoEvent() string

ProtoEvent name.

type DOMShadowRootType

1
type DOMShadowRootType string

DOMShadowRootType Shadow root type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// DOMShadowRootTypeUserAgent enum const.
	DOMShadowRootTypeUserAgent DOMShadowRootType = "user-agent"

	// DOMShadowRootTypeOpen enum const.
	DOMShadowRootTypeOpen DOMShadowRootType = "open"

	// DOMShadowRootTypeClosed enum const.
	DOMShadowRootTypeClosed DOMShadowRootType = "closed"
)

type DOMShapeOutsideInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMShapeOutsideInfo struct {
	// Bounds Shape bounds
	Bounds DOMQuad `json:"bounds"`

	// Shape coordinate details
	Shape []gson.JSON `json:"shape"`

	// MarginShape Margin shape bounds
	MarginShape []gson.JSON `json:"marginShape"`
}

DOMShapeOutsideInfo CSS Shape Outside details.

type DOMSnapshotArrayOfStrings

1
type DOMSnapshotArrayOfStrings []DOMSnapshotStringIndex

DOMSnapshotArrayOfStrings Index of the string in the strings table.

type DOMSnapshotCaptureSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type DOMSnapshotCaptureSnapshot struct {
	// ComputedStyles Whitelist of computed styles to return.
	ComputedStyles []string `json:"computedStyles"`

	// IncludePaintOrder (optional) Whether to include layout object paint orders into the snapshot.
	IncludePaintOrder bool `json:"includePaintOrder,omitempty"`

	// IncludeDOMRects (optional) Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot
	IncludeDOMRects bool `json:"includeDOMRects,omitempty"`

	// IncludeBlendedBackgroundColors (experimental) (optional) Whether to include blended background colors in the snapshot (default: false).
	// Blended background color is achieved by blending background colors of all elements
	// that overlap with the current element.
	IncludeBlendedBackgroundColors bool `json:"includeBlendedBackgroundColors,omitempty"`

	// IncludeTextColorOpacities (experimental) (optional) Whether to include text color opacity in the snapshot (default: false).
	// An element might have the opacity property set that affects the text color of the element.
	// The final text color opacity is computed based on the opacity of all overlapping elements.
	IncludeTextColorOpacities bool `json:"includeTextColorOpacities,omitempty"`
}

DOMSnapshotCaptureSnapshot Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

(DOMSnapshotCaptureSnapshot) Call

1
func (m DOMSnapshotCaptureSnapshot) Call(c Client) (*DOMSnapshotCaptureSnapshotResult, error)

Call the request.

(DOMSnapshotCaptureSnapshot) ProtoReq <- 0.74.0

1
func (m DOMSnapshotCaptureSnapshot) ProtoReq() string

ProtoReq name.

type DOMSnapshotCaptureSnapshotResult

1
2
3
4
5
6
7
type DOMSnapshotCaptureSnapshotResult struct {
	// Documents The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
	Documents []*DOMSnapshotDocumentSnapshot `json:"documents"`

	// Strings Shared string table that all string properties refer to with indexes.
	Strings []string `json:"strings"`
}

DOMSnapshotCaptureSnapshotResult …

type DOMSnapshotComputedStyle

1
2
3
4
type DOMSnapshotComputedStyle struct {
	// Properties Name/value pairs of computed style properties.
	Properties []*DOMSnapshotNameValue `json:"properties"`
}

DOMSnapshotComputedStyle A subset of the full ComputedStyle as defined by the request whitelist.

type DOMSnapshotDOMNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
type DOMSnapshotDOMNode struct {
	// NodeType `Node`'s nodeType.
	NodeType int `json:"nodeType"`

	// NodeName `Node`'s nodeName.
	NodeName string `json:"nodeName"`

	// NodeValue `Node`'s nodeValue.
	NodeValue string `json:"nodeValue"`

	// TextValue (optional) Only set for textarea elements, contains the text value.
	TextValue string `json:"textValue,omitempty"`

	// InputValue (optional) Only set for input elements, contains the input's associated text value.
	InputValue string `json:"inputValue,omitempty"`

	// InputChecked (optional) Only set for radio and checkbox input elements, indicates if the element has been checked
	InputChecked bool `json:"inputChecked,omitempty"`

	// OptionSelected (optional) Only set for option elements, indicates if the element has been selected
	OptionSelected bool `json:"optionSelected,omitempty"`

	// BackendNodeID `Node`'s id, corresponds to DOM.Node.backendNodeId.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`

	// ChildNodeIndexes (optional) The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if
	// any.
	ChildNodeIndexes []int `json:"childNodeIndexes,omitempty"`

	// Attributes (optional) Attributes of an `Element` node.
	Attributes []*DOMSnapshotNameValue `json:"attributes,omitempty"`

	// PseudoElementIndexes (optional) Indexes of pseudo elements associated with this node in the `domNodes` array returned by
	// `getSnapshot`, if any.
	PseudoElementIndexes []int `json:"pseudoElementIndexes,omitempty"`

	// LayoutNodeIndex (optional) The index of the node's related layout tree node in the `layoutTreeNodes` array returned by
	// `getSnapshot`, if any.
	LayoutNodeIndex *int `json:"layoutNodeIndex,omitempty"`

	// DocumentURL (optional) Document URL that `Document` or `FrameOwner` node points to.
	DocumentURL string `json:"documentURL,omitempty"`

	// BaseURL (optional) Base URL that `Document` or `FrameOwner` node uses for URL completion.
	BaseURL string `json:"baseURL,omitempty"`

	// ContentLanguage (optional) Only set for documents, contains the document's content language.
	ContentLanguage string `json:"contentLanguage,omitempty"`

	// DocumentEncoding (optional) Only set for documents, contains the document's character set encoding.
	DocumentEncoding string `json:"documentEncoding,omitempty"`

	// PublicID (optional) `DocumentType` node's publicId.
	PublicID string `json:"publicId,omitempty"`

	// SystemID (optional) `DocumentType` node's systemId.
	SystemID string `json:"systemId,omitempty"`

	// FrameID (optional) Frame ID for frame owner elements and also for the document node.
	FrameID PageFrameID `json:"frameId,omitempty"`

	// ContentDocumentIndex (optional) The index of a frame owner element's content document in the `domNodes` array returned by
	// `getSnapshot`, if any.
	ContentDocumentIndex *int `json:"contentDocumentIndex,omitempty"`

	// PseudoType (optional) Type of a pseudo element node.
	PseudoType DOMPseudoType `json:"pseudoType,omitempty"`

	// ShadowRootType (optional) Shadow root type.
	ShadowRootType DOMShadowRootType `json:"shadowRootType,omitempty"`

	// IsClickable (optional) Whether this DOM node responds to mouse clicks. This includes nodes that have had click
	// event listeners attached via JavaScript as well as anchor tags that naturally navigate when
	// clicked.
	IsClickable bool `json:"isClickable,omitempty"`

	// EventListeners (optional) Details of the node's event listeners, if any.
	EventListeners []*DOMDebuggerEventListener `json:"eventListeners,omitempty"`

	// CurrentSourceURL (optional) The selected url for nodes with a srcset attribute.
	CurrentSourceURL string `json:"currentSourceURL,omitempty"`

	// OriginURL (optional) The url of the script (if any) that generates this node.
	OriginURL string `json:"originURL,omitempty"`

	// ScrollOffsetX (optional) Scroll offsets, set when this node is a Document.
	ScrollOffsetX *float64 `json:"scrollOffsetX,omitempty"`

	// ScrollOffsetY (optional) ...
	ScrollOffsetY *float64 `json:"scrollOffsetY,omitempty"`
}

DOMSnapshotDOMNode A Node in the DOM tree.

type DOMSnapshotDisable

1
type DOMSnapshotDisable struct{}

DOMSnapshotDisable Disables DOM snapshot agent for the given page.

(DOMSnapshotDisable) Call

1
func (m DOMSnapshotDisable) Call(c Client) error

Call sends the request.

(DOMSnapshotDisable) ProtoReq <- 0.74.0

1
func (m DOMSnapshotDisable) ProtoReq() string

ProtoReq name.

type DOMSnapshotDocumentSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
type DOMSnapshotDocumentSnapshot struct {
	// DocumentURL Document URL that `Document` or `FrameOwner` node points to.
	DocumentURL DOMSnapshotStringIndex `json:"documentURL"`

	// Title Document title.
	Title DOMSnapshotStringIndex `json:"title"`

	// BaseURL Base URL that `Document` or `FrameOwner` node uses for URL completion.
	BaseURL DOMSnapshotStringIndex `json:"baseURL"`

	// ContentLanguage Contains the document's content language.
	ContentLanguage DOMSnapshotStringIndex `json:"contentLanguage"`

	// EncodingName Contains the document's character set encoding.
	EncodingName DOMSnapshotStringIndex `json:"encodingName"`

	// PublicID `DocumentType` node's publicId.
	PublicID DOMSnapshotStringIndex `json:"publicId"`

	// SystemID `DocumentType` node's systemId.
	SystemID DOMSnapshotStringIndex `json:"systemId"`

	// FrameID Frame ID for frame owner elements and also for the document node.
	FrameID DOMSnapshotStringIndex `json:"frameId"`

	// Nodes A table with dom nodes.
	Nodes *DOMSnapshotNodeTreeSnapshot `json:"nodes"`

	// Layout The nodes in the layout tree.
	Layout *DOMSnapshotLayoutTreeSnapshot `json:"layout"`

	// TextBoxes The post-layout inline text nodes.
	TextBoxes *DOMSnapshotTextBoxSnapshot `json:"textBoxes"`

	// ScrollOffsetX (optional) Horizontal scroll offset.
	ScrollOffsetX *float64 `json:"scrollOffsetX,omitempty"`

	// ScrollOffsetY (optional) Vertical scroll offset.
	ScrollOffsetY *float64 `json:"scrollOffsetY,omitempty"`

	// ContentWidth (optional) Document content width.
	ContentWidth *float64 `json:"contentWidth,omitempty"`

	// ContentHeight (optional) Document content height.
	ContentHeight *float64 `json:"contentHeight,omitempty"`
}

DOMSnapshotDocumentSnapshot Document snapshot.

type DOMSnapshotEnable

1
type DOMSnapshotEnable struct{}

DOMSnapshotEnable Enables DOM snapshot agent for the given page.

(DOMSnapshotEnable) Call

1
func (m DOMSnapshotEnable) Call(c Client) error

Call sends the request.

(DOMSnapshotEnable) ProtoReq <- 0.74.0

1
func (m DOMSnapshotEnable) ProtoReq() string

ProtoReq name.

type DOMSnapshotGetSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMSnapshotGetSnapshot struct {
	// ComputedStyleWhitelist Whitelist of computed styles to return.
	ComputedStyleWhitelist []string `json:"computedStyleWhitelist"`

	// IncludeEventListeners (optional) Whether or not to retrieve details of DOM listeners (default false).
	IncludeEventListeners bool `json:"includeEventListeners,omitempty"`

	// IncludePaintOrder (optional) Whether to determine and include the paint order index of LayoutTreeNodes (default false).
	IncludePaintOrder bool `json:"includePaintOrder,omitempty"`

	// IncludeUserAgentShadowTree (optional) Whether to include UA shadow tree in the snapshot (default false).
	IncludeUserAgentShadowTree bool `json:"includeUserAgentShadowTree,omitempty"`
}

DOMSnapshotGetSnapshot (deprecated) Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

(DOMSnapshotGetSnapshot) Call

1
func (m DOMSnapshotGetSnapshot) Call(c Client) (*DOMSnapshotGetSnapshotResult, error)

Call the request.

(DOMSnapshotGetSnapshot) ProtoReq <- 0.74.0

1
func (m DOMSnapshotGetSnapshot) ProtoReq() string

ProtoReq name.

type DOMSnapshotGetSnapshotResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMSnapshotGetSnapshotResult struct {
	// DomNodes The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
	DomNodes []*DOMSnapshotDOMNode `json:"domNodes"`

	// LayoutTreeNodes The nodes in the layout tree.
	LayoutTreeNodes []*DOMSnapshotLayoutTreeNode `json:"layoutTreeNodes"`

	// ComputedStyles Whitelisted ComputedStyle properties for each node in the layout tree.
	ComputedStyles []*DOMSnapshotComputedStyle `json:"computedStyles"`
}

DOMSnapshotGetSnapshotResult (deprecated) …

type DOMSnapshotInlineTextBox

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type DOMSnapshotInlineTextBox struct {
	// BoundingBox The bounding box in document coordinates. Note that scroll offset of the document is ignored.
	BoundingBox *DOMRect `json:"boundingBox"`

	// StartCharacterIndex The starting index in characters, for this post layout textbox substring. Characters that
	// would be represented as a surrogate pair in UTF-16 have length 2.
	StartCharacterIndex int `json:"startCharacterIndex"`

	// NumCharacters The number of characters in this post layout textbox substring. Characters that would be
	// represented as a surrogate pair in UTF-16 have length 2.
	NumCharacters int `json:"numCharacters"`
}

DOMSnapshotInlineTextBox Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

type DOMSnapshotLayoutTreeNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
type DOMSnapshotLayoutTreeNode struct {
	// DomNodeIndex The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
	DomNodeIndex int `json:"domNodeIndex"`

	// BoundingBox The bounding box in document coordinates. Note that scroll offset of the document is ignored.
	BoundingBox *DOMRect `json:"boundingBox"`

	// LayoutText (optional) Contents of the LayoutText, if any.
	LayoutText string `json:"layoutText,omitempty"`

	// InlineTextNodes (optional) The post-layout inline text nodes, if any.
	InlineTextNodes []*DOMSnapshotInlineTextBox `json:"inlineTextNodes,omitempty"`

	// StyleIndex (optional) Index into the `computedStyles` array returned by `getSnapshot`.
	StyleIndex *int `json:"styleIndex,omitempty"`

	// PaintOrder (optional) Global paint order index, which is determined by the stacking order of the nodes. Nodes
	// that are painted together will have the same index. Only provided if includePaintOrder in
	// getSnapshot was true.
	PaintOrder *int `json:"paintOrder,omitempty"`

	// IsStackingContext (optional) Set to true to indicate the element begins a new stacking context.
	IsStackingContext bool `json:"isStackingContext,omitempty"`
}

DOMSnapshotLayoutTreeNode Details of an element in the DOM tree with a LayoutObject.

type DOMSnapshotLayoutTreeSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
type DOMSnapshotLayoutTreeSnapshot struct {
	// NodeIndex Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
	NodeIndex []int `json:"nodeIndex"`

	// Styles Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.
	Styles []DOMSnapshotArrayOfStrings `json:"styles"`

	// Bounds The absolute position bounding box.
	Bounds []DOMSnapshotRectangle `json:"bounds"`

	// Text Contents of the LayoutText, if any.
	Text []DOMSnapshotStringIndex `json:"text"`

	// StackingContexts Stacking context information.
	StackingContexts *DOMSnapshotRareBooleanData `json:"stackingContexts"`

	// PaintOrders (optional) Global paint order index, which is determined by the stacking order of the nodes. Nodes
	// that are painted together will have the same index. Only provided if includePaintOrder in
	// captureSnapshot was true.
	PaintOrders []int `json:"paintOrders,omitempty"`

	// OffsetRects (optional) The offset rect of nodes. Only available when includeDOMRects is set to true
	OffsetRects []DOMSnapshotRectangle `json:"offsetRects,omitempty"`

	// ScrollRects (optional) The scroll rect of nodes. Only available when includeDOMRects is set to true
	ScrollRects []DOMSnapshotRectangle `json:"scrollRects,omitempty"`

	// ClientRects (optional) The client rect of nodes. Only available when includeDOMRects is set to true
	ClientRects []DOMSnapshotRectangle `json:"clientRects,omitempty"`

	// BlendedBackgroundColors (experimental) (optional) The list of background colors that are blended with colors of overlapping elements.
	BlendedBackgroundColors []DOMSnapshotStringIndex `json:"blendedBackgroundColors,omitempty"`

	// TextColorOpacities (experimental) (optional) The list of computed text opacities.
	TextColorOpacities []float64 `json:"textColorOpacities,omitempty"`
}

DOMSnapshotLayoutTreeSnapshot Table of details of an element in the DOM tree with a LayoutObject.

type DOMSnapshotNameValue

1
2
3
4
5
6
7
type DOMSnapshotNameValue struct {
	// Name Attribute/property name.
	Name string `json:"name"`

	// Value Attribute/property value.
	Value string `json:"value"`
}

DOMSnapshotNameValue A name/value pair.

type DOMSnapshotNodeTreeSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
type DOMSnapshotNodeTreeSnapshot struct {
	// ParentIndex (optional) Parent node index.
	ParentIndex []int `json:"parentIndex,omitempty"`

	// NodeType (optional) `Node`'s nodeType.
	NodeType []int `json:"nodeType,omitempty"`

	// ShadowRootType (optional) Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.
	ShadowRootType *DOMSnapshotRareStringData `json:"shadowRootType,omitempty"`

	// NodeName (optional) `Node`'s nodeName.
	NodeName []DOMSnapshotStringIndex `json:"nodeName,omitempty"`

	// NodeValue (optional) `Node`'s nodeValue.
	NodeValue []DOMSnapshotStringIndex `json:"nodeValue,omitempty"`

	// BackendNodeID (optional) `Node`'s id, corresponds to DOM.Node.backendNodeId.
	BackendNodeID []DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// Attributes (optional) Attributes of an `Element` node. Flatten name, value pairs.
	Attributes []DOMSnapshotArrayOfStrings `json:"attributes,omitempty"`

	// TextValue (optional) Only set for textarea elements, contains the text value.
	TextValue *DOMSnapshotRareStringData `json:"textValue,omitempty"`

	// InputValue (optional) Only set for input elements, contains the input's associated text value.
	InputValue *DOMSnapshotRareStringData `json:"inputValue,omitempty"`

	// InputChecked (optional) Only set for radio and checkbox input elements, indicates if the element has been checked
	InputChecked *DOMSnapshotRareBooleanData `json:"inputChecked,omitempty"`

	// OptionSelected (optional) Only set for option elements, indicates if the element has been selected
	OptionSelected *DOMSnapshotRareBooleanData `json:"optionSelected,omitempty"`

	// ContentDocumentIndex (optional) The index of the document in the list of the snapshot documents.
	ContentDocumentIndex *DOMSnapshotRareIntegerData `json:"contentDocumentIndex,omitempty"`

	// PseudoType (optional) Type of a pseudo element node.
	PseudoType *DOMSnapshotRareStringData `json:"pseudoType,omitempty"`

	// PseudoIdentifier (optional) Pseudo element identifier for this node. Only present if there is a
	// valid pseudoType.
	PseudoIdentifier *DOMSnapshotRareStringData `json:"pseudoIdentifier,omitempty"`

	// IsClickable (optional) Whether this DOM node responds to mouse clicks. This includes nodes that have had click
	// event listeners attached via JavaScript as well as anchor tags that naturally navigate when
	// clicked.
	IsClickable *DOMSnapshotRareBooleanData `json:"isClickable,omitempty"`

	// CurrentSourceURL (optional) The selected url for nodes with a srcset attribute.
	CurrentSourceURL *DOMSnapshotRareStringData `json:"currentSourceURL,omitempty"`

	// OriginURL (optional) The url of the script (if any) that generates this node.
	OriginURL *DOMSnapshotRareStringData `json:"originURL,omitempty"`
}

DOMSnapshotNodeTreeSnapshot Table containing nodes.

type DOMSnapshotRareBooleanData

1
2
3
4
type DOMSnapshotRareBooleanData struct {
	// Index ...
	Index []int `json:"index"`
}

DOMSnapshotRareBooleanData …

type DOMSnapshotRareIntegerData

1
2
3
4
5
6
7
type DOMSnapshotRareIntegerData struct {
	// Index ...
	Index []int `json:"index"`

	// Value ...
	Value []int `json:"value"`
}

DOMSnapshotRareIntegerData …

type DOMSnapshotRareStringData

1
2
3
4
5
6
7
type DOMSnapshotRareStringData struct {
	// Index ...
	Index []int `json:"index"`

	// Value ...
	Value []DOMSnapshotStringIndex `json:"value"`
}

DOMSnapshotRareStringData Data that is only present on rare nodes.

type DOMSnapshotRectangle

1
type DOMSnapshotRectangle []float64

DOMSnapshotRectangle …

type DOMSnapshotStringIndex

1
type DOMSnapshotStringIndex int

DOMSnapshotStringIndex Index of the string in the strings table.

type DOMSnapshotTextBoxSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type DOMSnapshotTextBoxSnapshot struct {
	// LayoutIndex Index of the layout tree node that owns this box collection.
	LayoutIndex []int `json:"layoutIndex"`

	// Bounds The absolute position bounding box.
	Bounds []DOMSnapshotRectangle `json:"bounds"`

	// Start The starting index in characters, for this post layout textbox substring. Characters that
	// would be represented as a surrogate pair in UTF-16 have length 2.
	Start []int `json:"start"`

	// Length The number of characters in this post layout textbox substring. Characters that would be
	// represented as a surrogate pair in UTF-16 have length 2.
	Length []int `json:"length"`
}

DOMSnapshotTextBoxSnapshot Table of details of the post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

type DOMStorageClear

1
2
3
4
type DOMStorageClear struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`
}

DOMStorageClear …

(DOMStorageClear) Call

1
func (m DOMStorageClear) Call(c Client) error

Call sends the request.

(DOMStorageClear) ProtoReq <- 0.74.0

1
func (m DOMStorageClear) ProtoReq() string

ProtoReq name.

type DOMStorageDisable

1
type DOMStorageDisable struct{}

DOMStorageDisable Disables storage tracking, prevents storage events from being sent to the client.

(DOMStorageDisable) Call

1
func (m DOMStorageDisable) Call(c Client) error

Call sends the request.

(DOMStorageDisable) ProtoReq <- 0.74.0

1
func (m DOMStorageDisable) ProtoReq() string

ProtoReq name.

type DOMStorageDomStorageItemAdded

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMStorageDomStorageItemAdded struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`

	// Key ...
	Key string `json:"key"`

	// NewValue ...
	NewValue string `json:"newValue"`
}

DOMStorageDomStorageItemAdded …

(DOMStorageDomStorageItemAdded) ProtoEvent <- 0.72.0

1
func (evt DOMStorageDomStorageItemAdded) ProtoEvent() string

ProtoEvent name.

type DOMStorageDomStorageItemRemoved

1
2
3
4
5
6
7
type DOMStorageDomStorageItemRemoved struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`

	// Key ...
	Key string `json:"key"`
}

DOMStorageDomStorageItemRemoved …

(DOMStorageDomStorageItemRemoved) ProtoEvent <- 0.72.0

1
func (evt DOMStorageDomStorageItemRemoved) ProtoEvent() string

ProtoEvent name.

type DOMStorageDomStorageItemUpdated

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DOMStorageDomStorageItemUpdated struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`

	// Key ...
	Key string `json:"key"`

	// OldValue ...
	OldValue string `json:"oldValue"`

	// NewValue ...
	NewValue string `json:"newValue"`
}

DOMStorageDomStorageItemUpdated …

(DOMStorageDomStorageItemUpdated) ProtoEvent <- 0.72.0

1
func (evt DOMStorageDomStorageItemUpdated) ProtoEvent() string

ProtoEvent name.

type DOMStorageDomStorageItemsCleared

1
2
3
4
type DOMStorageDomStorageItemsCleared struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`
}

DOMStorageDomStorageItemsCleared …

(DOMStorageDomStorageItemsCleared) ProtoEvent <- 0.72.0

1
func (evt DOMStorageDomStorageItemsCleared) ProtoEvent() string

ProtoEvent name.

type DOMStorageEnable

1
type DOMStorageEnable struct{}

DOMStorageEnable Enables storage tracking, storage events will now be delivered to the client.

(DOMStorageEnable) Call

1
func (m DOMStorageEnable) Call(c Client) error

Call sends the request.

(DOMStorageEnable) ProtoReq <- 0.74.0

1
func (m DOMStorageEnable) ProtoReq() string

ProtoReq name.

type DOMStorageGetDOMStorageItems

1
2
3
4
type DOMStorageGetDOMStorageItems struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`
}

DOMStorageGetDOMStorageItems …

(DOMStorageGetDOMStorageItems) Call

1
func (m DOMStorageGetDOMStorageItems) Call(c Client) (*DOMStorageGetDOMStorageItemsResult, error)

Call the request.

(DOMStorageGetDOMStorageItems) ProtoReq <- 0.74.0

1
func (m DOMStorageGetDOMStorageItems) ProtoReq() string

ProtoReq name.

type DOMStorageGetDOMStorageItemsResult

1
2
3
4
type DOMStorageGetDOMStorageItemsResult struct {
	// Entries ...
	Entries []DOMStorageItem `json:"entries"`
}

DOMStorageGetDOMStorageItemsResult …

type DOMStorageItem

1
type DOMStorageItem []string

DOMStorageItem DOM Storage item.

type DOMStorageRemoveDOMStorageItem

1
2
3
4
5
6
7
type DOMStorageRemoveDOMStorageItem struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`

	// Key ...
	Key string `json:"key"`
}

DOMStorageRemoveDOMStorageItem …

(DOMStorageRemoveDOMStorageItem) Call

1
func (m DOMStorageRemoveDOMStorageItem) Call(c Client) error

Call sends the request.

(DOMStorageRemoveDOMStorageItem) ProtoReq <- 0.74.0

1
func (m DOMStorageRemoveDOMStorageItem) ProtoReq() string

ProtoReq name.

type DOMStorageSerializedStorageKey <- 0.106.7

1
type DOMStorageSerializedStorageKey string

DOMStorageSerializedStorageKey …

type DOMStorageSetDOMStorageItem

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMStorageSetDOMStorageItem struct {
	// StorageID ...
	StorageID *DOMStorageStorageID `json:"storageId"`

	// Key ...
	Key string `json:"key"`

	// Value ...
	Value string `json:"value"`
}

DOMStorageSetDOMStorageItem …

(DOMStorageSetDOMStorageItem) Call

1
func (m DOMStorageSetDOMStorageItem) Call(c Client) error

Call sends the request.

(DOMStorageSetDOMStorageItem) ProtoReq <- 0.74.0

1
func (m DOMStorageSetDOMStorageItem) ProtoReq() string

ProtoReq name.

type DOMStorageStorageID

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DOMStorageStorageID struct {
	// SecurityOrigin (optional) Security origin for the storage.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Represents a key by which DOM Storage keys its CachedStorageAreas
	StorageKey DOMStorageSerializedStorageKey `json:"storageKey,omitempty"`

	// IsLocalStorage Whether the storage is local storage (not session storage).
	IsLocalStorage bool `json:"isLocalStorage"`
}

DOMStorageStorageID DOM Storage identifier.

type DOMTopLayerElementsUpdated <- 0.108.0

1
type DOMTopLayerElementsUpdated struct{}

DOMTopLayerElementsUpdated (experimental) Called when top layer elements are changed.

(DOMTopLayerElementsUpdated) ProtoEvent <- 0.108.0

1
func (evt DOMTopLayerElementsUpdated) ProtoEvent() string

ProtoEvent name.

type DOMUndo

1
type DOMUndo struct{}

DOMUndo (experimental) Undoes the last performed action.

(DOMUndo) Call

1
func (m DOMUndo) Call(c Client) error

Call sends the request.

(DOMUndo) ProtoReq <- 0.74.0

1
func (m DOMUndo) ProtoReq() string

ProtoReq name.

type DatabaseAddDatabase

1
2
3
4
type DatabaseAddDatabase struct {
	// Database ...
	Database *DatabaseDatabase `json:"database"`
}

DatabaseAddDatabase …

(DatabaseAddDatabase) ProtoEvent <- 0.72.0

1
func (evt DatabaseAddDatabase) ProtoEvent() string

ProtoEvent name.

type DatabaseDatabase

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DatabaseDatabase struct {
	// ID Database ID.
	ID DatabaseDatabaseID `json:"id"`

	// Domain Database domain.
	Domain string `json:"domain"`

	// Name Database name.
	Name string `json:"name"`

	// Version Database version.
	Version string `json:"version"`
}

DatabaseDatabase Database object.

type DatabaseDatabaseID

1
type DatabaseDatabaseID string

DatabaseDatabaseID Unique identifier of Database object.

type DatabaseDisable

1
type DatabaseDisable struct{}

DatabaseDisable Disables database tracking, prevents database events from being sent to the client.

(DatabaseDisable) Call

1
func (m DatabaseDisable) Call(c Client) error

Call sends the request.

(DatabaseDisable) ProtoReq <- 0.74.0

1
func (m DatabaseDisable) ProtoReq() string

ProtoReq name.

type DatabaseEnable

1
type DatabaseEnable struct{}

DatabaseEnable Enables database tracking, database events will now be delivered to the client.

(DatabaseEnable) Call

1
func (m DatabaseEnable) Call(c Client) error

Call sends the request.

(DatabaseEnable) ProtoReq <- 0.74.0

1
func (m DatabaseEnable) ProtoReq() string

ProtoReq name.

type DatabaseError

1
2
3
4
5
6
7
type DatabaseError struct {
	// Message Error message.
	Message string `json:"message"`

	// Code Error code.
	Code int `json:"code"`
}

DatabaseError Database error.

type DatabaseExecuteSQL

1
2
3
4
5
6
7
type DatabaseExecuteSQL struct {
	// DatabaseID ...
	DatabaseID DatabaseDatabaseID `json:"databaseId"`

	// Query ...
	Query string `json:"query"`
}

DatabaseExecuteSQL …

(DatabaseExecuteSQL) Call

1
func (m DatabaseExecuteSQL) Call(c Client) (*DatabaseExecuteSQLResult, error)

Call the request.

(DatabaseExecuteSQL) ProtoReq <- 0.74.0

1
func (m DatabaseExecuteSQL) ProtoReq() string

ProtoReq name.

type DatabaseExecuteSQLResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DatabaseExecuteSQLResult struct {
	// ColumnNames (optional) ...
	ColumnNames []string `json:"columnNames,omitempty"`

	// Values (optional) ...
	Values []gson.JSON `json:"values,omitempty"`

	// SQLError (optional) ...
	SQLError *DatabaseError `json:"sqlError,omitempty"`
}

DatabaseExecuteSQLResult …

type DatabaseGetDatabaseTableNames

1
2
3
4
type DatabaseGetDatabaseTableNames struct {
	// DatabaseID ...
	DatabaseID DatabaseDatabaseID `json:"databaseId"`
}

DatabaseGetDatabaseTableNames …

(DatabaseGetDatabaseTableNames) Call

1
func (m DatabaseGetDatabaseTableNames) Call(c Client) (*DatabaseGetDatabaseTableNamesResult, error)

Call the request.

(DatabaseGetDatabaseTableNames) ProtoReq <- 0.74.0

1
func (m DatabaseGetDatabaseTableNames) ProtoReq() string

ProtoReq name.

type DatabaseGetDatabaseTableNamesResult

1
2
3
4
type DatabaseGetDatabaseTableNamesResult struct {
	// TableNames ...
	TableNames []string `json:"tableNames"`
}

DatabaseGetDatabaseTableNamesResult …

type DebuggerBreakLocation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DebuggerBreakLocation struct {
	// ScriptID Script identifier as reported in the `Debugger.scriptParsed`.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// LineNumber Line number in the script (0-based).
	LineNumber int `json:"lineNumber"`

	// ColumnNumber (optional) Column number in the script (0-based).
	ColumnNumber *int `json:"columnNumber,omitempty"`

	// Type (optional) ...
	Type DebuggerBreakLocationType `json:"type,omitempty"`
}

DebuggerBreakLocation …

type DebuggerBreakLocationType

1
type DebuggerBreakLocationType string

DebuggerBreakLocationType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// DebuggerBreakLocationTypeDebuggerStatement enum const.
	DebuggerBreakLocationTypeDebuggerStatement DebuggerBreakLocationType = "debuggerStatement"

	// DebuggerBreakLocationTypeCall enum const.
	DebuggerBreakLocationTypeCall DebuggerBreakLocationType = "call"

	// DebuggerBreakLocationTypeReturn enum const.
	DebuggerBreakLocationTypeReturn DebuggerBreakLocationType = "return"
)

type DebuggerBreakpointID

1
type DebuggerBreakpointID string

DebuggerBreakpointID Breakpoint identifier.

type DebuggerBreakpointResolved

1
2
3
4
5
6
7
type DebuggerBreakpointResolved struct {
	// BreakpointID Breakpoint unique identifier.
	BreakpointID DebuggerBreakpointID `json:"breakpointId"`

	// Location Actual breakpoint location.
	Location *DebuggerLocation `json:"location"`
}

DebuggerBreakpointResolved Fired when breakpoint is resolved to an actual script and location.

(DebuggerBreakpointResolved) ProtoEvent <- 0.72.0

1
func (evt DebuggerBreakpointResolved) ProtoEvent() string

ProtoEvent name.

type DebuggerCallFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
type DebuggerCallFrame struct {
	// CallFrameID Call frame identifier. This identifier is only valid while the virtual machine is paused.
	CallFrameID DebuggerCallFrameID `json:"callFrameId"`

	// FunctionName Name of the JavaScript function called on this call frame.
	FunctionName string `json:"functionName"`

	// FunctionLocation (optional) Location in the source code.
	FunctionLocation *DebuggerLocation `json:"functionLocation,omitempty"`

	// Location in the source code.
	Location *DebuggerLocation `json:"location"`

	// URL (deprecated) JavaScript script name or url.
	// Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously
	// sent `Debugger.scriptParsed` event.
	URL string `json:"url"`

	// ScopeChain Scope chain for this call frame.
	ScopeChain []*DebuggerScope `json:"scopeChain"`

	// This `this` object for this call frame.
	This *RuntimeRemoteObject `json:"this"`

	// ReturnValue (optional) The value being returned, if the function is at return point.
	ReturnValue *RuntimeRemoteObject `json:"returnValue,omitempty"`

	// CanBeRestarted (experimental) (optional) Valid only while the VM is paused and indicates whether this frame
	// can be restarted or not. Note that a `true` value here does not
	// guarantee that Debugger#restartFrame with this CallFrameId will be
	// successful, but it is very likely.
	CanBeRestarted bool `json:"canBeRestarted,omitempty"`
}

DebuggerCallFrame JavaScript call frame. Array of call frames form the call stack.

type DebuggerCallFrameID

1
type DebuggerCallFrameID string

DebuggerCallFrameID Call frame identifier.

type DebuggerContinueToLocation

1
2
3
4
5
6
7
type DebuggerContinueToLocation struct {
	// Location to continue to.
	Location *DebuggerLocation `json:"location"`

	// TargetCallFrames (optional) ...
	TargetCallFrames DebuggerContinueToLocationTargetCallFrames `json:"targetCallFrames,omitempty"`
}

DebuggerContinueToLocation Continues execution until specific location is reached.

(DebuggerContinueToLocation) Call

1
func (m DebuggerContinueToLocation) Call(c Client) error

Call sends the request.

(DebuggerContinueToLocation) ProtoReq <- 0.74.0

1
func (m DebuggerContinueToLocation) ProtoReq() string

ProtoReq name.

type DebuggerContinueToLocationTargetCallFrames

1
type DebuggerContinueToLocationTargetCallFrames string

DebuggerContinueToLocationTargetCallFrames enum.

1
2
3
4
5
6
7
const (
	// DebuggerContinueToLocationTargetCallFramesAny enum const.
	DebuggerContinueToLocationTargetCallFramesAny DebuggerContinueToLocationTargetCallFrames = "any"

	// DebuggerContinueToLocationTargetCallFramesCurrent enum const.
	DebuggerContinueToLocationTargetCallFramesCurrent DebuggerContinueToLocationTargetCallFrames = "current"
)

type DebuggerDebugSymbols <- 0.48.0

1
2
3
4
5
6
7
type DebuggerDebugSymbols struct {
	// Type of the debug symbols.
	Type DebuggerDebugSymbolsType `json:"type"`

	// ExternalURL (optional) URL of the external symbol source.
	ExternalURL string `json:"externalURL,omitempty"`
}

DebuggerDebugSymbols Debug symbols available for a wasm script.

type DebuggerDebugSymbolsType <- 0.48.0

1
type DebuggerDebugSymbolsType string

DebuggerDebugSymbolsType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// DebuggerDebugSymbolsTypeNone enum const.
	DebuggerDebugSymbolsTypeNone DebuggerDebugSymbolsType = "None"

	// DebuggerDebugSymbolsTypeSourceMap enum const.
	DebuggerDebugSymbolsTypeSourceMap DebuggerDebugSymbolsType = "SourceMap"

	// DebuggerDebugSymbolsTypeEmbeddedDWARF enum const.
	DebuggerDebugSymbolsTypeEmbeddedDWARF DebuggerDebugSymbolsType = "EmbeddedDWARF"

	// DebuggerDebugSymbolsTypeExternalDWARF enum const.
	DebuggerDebugSymbolsTypeExternalDWARF DebuggerDebugSymbolsType = "ExternalDWARF"
)

type DebuggerDisable

1
type DebuggerDisable struct{}

DebuggerDisable Disables debugger for given page.

(DebuggerDisable) Call

1
func (m DebuggerDisable) Call(c Client) error

Call sends the request.

(DebuggerDisable) ProtoReq <- 0.74.0

1
func (m DebuggerDisable) ProtoReq() string

ProtoReq name.

type DebuggerDisassembleWasmModule <- 0.108.2

1
2
3
4
type DebuggerDisassembleWasmModule struct {
	// ScriptID Id of the script to disassemble
	ScriptID RuntimeScriptID `json:"scriptId"`
}

DebuggerDisassembleWasmModule (experimental) …

(DebuggerDisassembleWasmModule) Call <- 0.108.2

1
func (m DebuggerDisassembleWasmModule) Call(c Client) (*DebuggerDisassembleWasmModuleResult, error)

Call the request.

(DebuggerDisassembleWasmModule) ProtoReq <- 0.108.2

1
func (m DebuggerDisassembleWasmModule) ProtoReq() string

ProtoReq name.

type DebuggerDisassembleWasmModuleResult <- 0.108.2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type DebuggerDisassembleWasmModuleResult struct {
	// StreamID (optional) For large modules, return a stream from which additional chunks of
	// disassembly can be read successively.
	StreamID string `json:"streamId,omitempty"`

	// TotalNumberOfLines The total number of lines in the disassembly text.
	TotalNumberOfLines int `json:"totalNumberOfLines"`

	// FunctionBodyOffsets The offsets of all function bodies, in the format [start1, end1,
	// start2, end2, ...] where all ends are exclusive.
	FunctionBodyOffsets []int `json:"functionBodyOffsets"`

	// Chunk The first chunk of disassembly.
	Chunk *DebuggerWasmDisassemblyChunk `json:"chunk"`
}

DebuggerDisassembleWasmModuleResult (experimental) …

type DebuggerEnable

1
2
3
4
5
type DebuggerEnable struct {
	// MaxScriptsCacheSize (experimental) (optional) The maximum size in bytes of collected scripts (not referenced by other heap objects)
	// the debugger can hold. Puts no limit if parameter is omitted.
	MaxScriptsCacheSize *float64 `json:"maxScriptsCacheSize,omitempty"`
}

DebuggerEnable Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.

(DebuggerEnable) Call

1
func (m DebuggerEnable) Call(c Client) (*DebuggerEnableResult, error)

Call the request.

(DebuggerEnable) ProtoReq <- 0.74.0

1
func (m DebuggerEnable) ProtoReq() string

ProtoReq name.

type DebuggerEnableResult

1
2
3
4
type DebuggerEnableResult struct {
	// DebuggerID (experimental) Unique identifier of the debugger.
	DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId"`
}

DebuggerEnableResult …

type DebuggerEvaluateOnCallFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type DebuggerEvaluateOnCallFrame struct {
	// CallFrameID Call frame identifier to evaluate on.
	CallFrameID DebuggerCallFrameID `json:"callFrameId"`

	// Expression to evaluate.
	Expression string `json:"expression"`

	// ObjectGroup (optional) String object group name to put result into (allows rapid releasing resulting object handles
	// using `releaseObjectGroup`).
	ObjectGroup string `json:"objectGroup,omitempty"`

	// IncludeCommandLineAPI (optional) Specifies whether command line API should be available to the evaluated expression, defaults
	// to false.
	IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"`

	// Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause
	// execution. Overrides `setPauseOnException` state.
	Silent bool `json:"silent,omitempty"`

	// ReturnByValue (optional) Whether the result is expected to be a JSON object that should be sent by value.
	ReturnByValue bool `json:"returnByValue,omitempty"`

	// GeneratePreview (experimental) (optional) Whether preview should be generated for the result.
	GeneratePreview bool `json:"generatePreview,omitempty"`

	// ThrowOnSideEffect (optional) Whether to throw an exception if side effect cannot be ruled out during evaluation.
	ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"`

	// Timeout (experimental) (optional) Terminate execution after timing out (number of milliseconds).
	Timeout RuntimeTimeDelta `json:"timeout,omitempty"`
}

DebuggerEvaluateOnCallFrame Evaluates expression on a given call frame.

(DebuggerEvaluateOnCallFrame) Call

1
func (m DebuggerEvaluateOnCallFrame) Call(c Client) (*DebuggerEvaluateOnCallFrameResult, error)

Call the request.

(DebuggerEvaluateOnCallFrame) ProtoReq <- 0.74.0

1
func (m DebuggerEvaluateOnCallFrame) ProtoReq() string

ProtoReq name.

type DebuggerEvaluateOnCallFrameResult

1
2
3
4
5
6
7
type DebuggerEvaluateOnCallFrameResult struct {
	// Result Object wrapper for the evaluation result.
	Result *RuntimeRemoteObject `json:"result"`

	// ExceptionDetails (optional) Exception details.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

DebuggerEvaluateOnCallFrameResult …

type DebuggerGetPossibleBreakpoints

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type DebuggerGetPossibleBreakpoints struct {
	// Start of range to search possible breakpoint locations in.
	Start *DebuggerLocation `json:"start"`

	// End (optional) End of range to search possible breakpoint locations in (excluding). When not specified, end
	// of scripts is used as end of range.
	End *DebuggerLocation `json:"end,omitempty"`

	// RestrictToFunction (optional) Only consider locations which are in the same (non-nested) function as start.
	RestrictToFunction bool `json:"restrictToFunction,omitempty"`
}

DebuggerGetPossibleBreakpoints Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.

(DebuggerGetPossibleBreakpoints) Call

1
func (m DebuggerGetPossibleBreakpoints) Call(c Client) (*DebuggerGetPossibleBreakpointsResult, error)

Call the request.

(DebuggerGetPossibleBreakpoints) ProtoReq <- 0.74.0

1
func (m DebuggerGetPossibleBreakpoints) ProtoReq() string

ProtoReq name.

type DebuggerGetPossibleBreakpointsResult

1
2
3
4
type DebuggerGetPossibleBreakpointsResult struct {
	// Locations List of the possible breakpoint locations.
	Locations []*DebuggerBreakLocation `json:"locations"`
}

DebuggerGetPossibleBreakpointsResult …

type DebuggerGetScriptSource

1
2
3
4
type DebuggerGetScriptSource struct {
	// ScriptID Id of the script to get source for.
	ScriptID RuntimeScriptID `json:"scriptId"`
}

DebuggerGetScriptSource Returns source for the script with given id.

(DebuggerGetScriptSource) Call

1
func (m DebuggerGetScriptSource) Call(c Client) (*DebuggerGetScriptSourceResult, error)

Call the request.

(DebuggerGetScriptSource) ProtoReq <- 0.74.0

1
func (m DebuggerGetScriptSource) ProtoReq() string

ProtoReq name.

type DebuggerGetScriptSourceResult

1
2
3
4
5
6
7
type DebuggerGetScriptSourceResult struct {
	// ScriptSource Script source (empty in case of Wasm bytecode).
	ScriptSource string `json:"scriptSource"`

	// Bytecode (optional) Wasm bytecode.
	Bytecode []byte `json:"bytecode,omitempty"`
}

DebuggerGetScriptSourceResult …

type DebuggerGetStackTrace

1
2
3
4
type DebuggerGetStackTrace struct {
	// StackTraceID ...
	StackTraceID *RuntimeStackTraceID `json:"stackTraceId"`
}

DebuggerGetStackTrace (experimental) Returns stack trace with given stackTraceId.

(DebuggerGetStackTrace) Call

1
func (m DebuggerGetStackTrace) Call(c Client) (*DebuggerGetStackTraceResult, error)

Call the request.

(DebuggerGetStackTrace) ProtoReq <- 0.74.0

1
func (m DebuggerGetStackTrace) ProtoReq() string

ProtoReq name.

type DebuggerGetStackTraceResult

1
2
3
4
type DebuggerGetStackTraceResult struct {
	// StackTrace ...
	StackTrace *RuntimeStackTrace `json:"stackTrace"`
}

DebuggerGetStackTraceResult (experimental) …

type DebuggerGetWasmBytecode

1
2
3
4
type DebuggerGetWasmBytecode struct {
	// ScriptID Id of the Wasm script to get source for.
	ScriptID RuntimeScriptID `json:"scriptId"`
}

DebuggerGetWasmBytecode (deprecated) This command is deprecated. Use getScriptSource instead.

(DebuggerGetWasmBytecode) Call

1
func (m DebuggerGetWasmBytecode) Call(c Client) (*DebuggerGetWasmBytecodeResult, error)

Call the request.

(DebuggerGetWasmBytecode) ProtoReq <- 0.74.0

1
func (m DebuggerGetWasmBytecode) ProtoReq() string

ProtoReq name.

type DebuggerGetWasmBytecodeResult

1
2
3
4
type DebuggerGetWasmBytecodeResult struct {
	// Bytecode Script source.
	Bytecode []byte `json:"bytecode"`
}

DebuggerGetWasmBytecodeResult (deprecated) …

type DebuggerLocation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DebuggerLocation struct {
	// ScriptID Script identifier as reported in the `Debugger.scriptParsed`.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// LineNumber Line number in the script (0-based).
	LineNumber int `json:"lineNumber"`

	// ColumnNumber (optional) Column number in the script (0-based).
	ColumnNumber *int `json:"columnNumber,omitempty"`
}

DebuggerLocation Location in the source code.

type DebuggerLocationRange <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DebuggerLocationRange struct {
	// ScriptID ...
	ScriptID RuntimeScriptID `json:"scriptId"`

	// Start ...
	Start *DebuggerScriptPosition `json:"start"`

	// End ...
	End *DebuggerScriptPosition `json:"end"`
}

DebuggerLocationRange (experimental) Location range within one script.

type DebuggerNextWasmDisassemblyChunk <- 0.108.2

1
2
3
4
type DebuggerNextWasmDisassemblyChunk struct {
	// StreamID ...
	StreamID string `json:"streamId"`
}

DebuggerNextWasmDisassemblyChunk (experimental) Disassemble the next chunk of lines for the module corresponding to the stream. If disassembly is complete, this API will invalidate the streamId and return an empty chunk. Any subsequent calls for the now invalid stream will return errors.

(DebuggerNextWasmDisassemblyChunk) Call <- 0.108.2

1
func (m DebuggerNextWasmDisassemblyChunk) Call(c Client) (*DebuggerNextWasmDisassemblyChunkResult, error)

Call the request.

(DebuggerNextWasmDisassemblyChunk) ProtoReq <- 0.108.2

1
func (m DebuggerNextWasmDisassemblyChunk) ProtoReq() string

ProtoReq name.

type DebuggerNextWasmDisassemblyChunkResult <- 0.108.2

1
2
3
4
type DebuggerNextWasmDisassemblyChunkResult struct {
	// Chunk The next chunk of disassembly.
	Chunk *DebuggerWasmDisassemblyChunk `json:"chunk"`
}

DebuggerNextWasmDisassemblyChunkResult (experimental) …

type DebuggerPause

1
type DebuggerPause struct{}

DebuggerPause Stops on the next JavaScript statement.

(DebuggerPause) Call

1
func (m DebuggerPause) Call(c Client) error

Call sends the request.

(DebuggerPause) ProtoReq <- 0.74.0

1
func (m DebuggerPause) ProtoReq() string

ProtoReq name.

type DebuggerPauseOnAsyncCall

1
2
3
4
type DebuggerPauseOnAsyncCall struct {
	// ParentStackTraceID Debugger will pause when async call with given stack trace is started.
	ParentStackTraceID *RuntimeStackTraceID `json:"parentStackTraceId"`
}

DebuggerPauseOnAsyncCall (deprecated) (experimental) …

(DebuggerPauseOnAsyncCall) Call

1
func (m DebuggerPauseOnAsyncCall) Call(c Client) error

Call sends the request.

(DebuggerPauseOnAsyncCall) ProtoReq <- 0.74.0

1
func (m DebuggerPauseOnAsyncCall) ProtoReq() string

ProtoReq name.

type DebuggerPaused

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type DebuggerPaused struct {
	// CallFrames Call stack the virtual machine stopped on.
	CallFrames []*DebuggerCallFrame `json:"callFrames"`

	// Reason Pause reason.
	Reason DebuggerPausedReason `json:"reason"`

	// Data (optional) Object containing break-specific auxiliary properties.
	Data map[string]gson.JSON `json:"data,omitempty"`

	// HitBreakpoints (optional) Hit breakpoints IDs
	HitBreakpoints []string `json:"hitBreakpoints,omitempty"`

	// AsyncStackTrace (optional) Async stack trace, if any.
	AsyncStackTrace *RuntimeStackTrace `json:"asyncStackTrace,omitempty"`

	// AsyncStackTraceID (experimental) (optional) Async stack trace, if any.
	AsyncStackTraceID *RuntimeStackTraceID `json:"asyncStackTraceId,omitempty"`

	// AsyncCallStackTraceID (deprecated) (experimental) (optional) Never present, will be removed.
	AsyncCallStackTraceID *RuntimeStackTraceID `json:"asyncCallStackTraceId,omitempty"`
}

DebuggerPaused Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.

(DebuggerPaused) ProtoEvent <- 0.72.0

1
func (evt DebuggerPaused) ProtoEvent() string

ProtoEvent name.

type DebuggerPausedReason

1
type DebuggerPausedReason string

DebuggerPausedReason enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const (
	// DebuggerPausedReasonAmbiguous enum const.
	DebuggerPausedReasonAmbiguous DebuggerPausedReason = "ambiguous"

	// DebuggerPausedReasonAssert enum const.
	DebuggerPausedReasonAssert DebuggerPausedReason = "assert"

	// DebuggerPausedReasonCSPViolation enum const.
	DebuggerPausedReasonCSPViolation DebuggerPausedReason = "CSPViolation"

	// DebuggerPausedReasonDebugCommand enum const.
	DebuggerPausedReasonDebugCommand DebuggerPausedReason = "debugCommand"

	// DebuggerPausedReasonDOM enum const.
	DebuggerPausedReasonDOM DebuggerPausedReason = "DOM"

	// DebuggerPausedReasonEventListener enum const.
	DebuggerPausedReasonEventListener DebuggerPausedReason = "EventListener"

	// DebuggerPausedReasonException enum const.
	DebuggerPausedReasonException DebuggerPausedReason = "exception"

	// DebuggerPausedReasonInstrumentation enum const.
	DebuggerPausedReasonInstrumentation DebuggerPausedReason = "instrumentation"

	// DebuggerPausedReasonOOM enum const.
	DebuggerPausedReasonOOM DebuggerPausedReason = "OOM"

	// DebuggerPausedReasonOther enum const.
	DebuggerPausedReasonOther DebuggerPausedReason = "other"

	// DebuggerPausedReasonPromiseRejection enum const.
	DebuggerPausedReasonPromiseRejection DebuggerPausedReason = "promiseRejection"

	// DebuggerPausedReasonXHR enum const.
	DebuggerPausedReasonXHR DebuggerPausedReason = "XHR"

	// DebuggerPausedReasonStep enum const.
	DebuggerPausedReasonStep DebuggerPausedReason = "step"
)

type DebuggerRemoveBreakpoint

1
2
3
4
type DebuggerRemoveBreakpoint struct {
	// BreakpointID ...
	BreakpointID DebuggerBreakpointID `json:"breakpointId"`
}

DebuggerRemoveBreakpoint Removes JavaScript breakpoint.

(DebuggerRemoveBreakpoint) Call

1
func (m DebuggerRemoveBreakpoint) Call(c Client) error

Call sends the request.

(DebuggerRemoveBreakpoint) ProtoReq <- 0.74.0

1
func (m DebuggerRemoveBreakpoint) ProtoReq() string

ProtoReq name.

type DebuggerRestartFrame

1
2
3
4
5
6
7
8
type DebuggerRestartFrame struct {
	// CallFrameID Call frame identifier to evaluate on.
	CallFrameID DebuggerCallFrameID `json:"callFrameId"`

	// Mode (experimental) (optional) The `mode` parameter must be present and set to 'StepInto', otherwise
	// `restartFrame` will error out.
	Mode DebuggerRestartFrameMode `json:"mode,omitempty"`
}

DebuggerRestartFrame Restarts particular call frame from the beginning. The old, deprecated behavior of restartFrame is to stay paused and allow further CDP commands after a restart was scheduled. This can cause problems with restarting, so we now continue execution immediately after it has been scheduled until we reach the beginning of the restarted frame.

To stay back-wards compatible, restartFrame now expects a mode parameter to be present. If the mode parameter is missing, restartFrame errors out.

The various return values are deprecated and callFrames is always empty. Use the call frames from the Debugger#paused events instead, that fires once V8 pauses at the beginning of the restarted function.

(DebuggerRestartFrame) Call

1
func (m DebuggerRestartFrame) Call(c Client) (*DebuggerRestartFrameResult, error)

Call the request.

(DebuggerRestartFrame) ProtoReq <- 0.74.0

1
func (m DebuggerRestartFrame) ProtoReq() string

ProtoReq name.

type DebuggerRestartFrameMode <- 0.107.0

1
type DebuggerRestartFrameMode string

DebuggerRestartFrameMode enum.

1
2
3
4
const (
	// DebuggerRestartFrameModeStepInto enum const.
	DebuggerRestartFrameModeStepInto DebuggerRestartFrameMode = "StepInto"
)

type DebuggerRestartFrameResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DebuggerRestartFrameResult struct {
	// CallFrames (deprecated) New stack trace.
	CallFrames []*DebuggerCallFrame `json:"callFrames"`

	// AsyncStackTrace (deprecated) (optional) Async stack trace, if any.
	AsyncStackTrace *RuntimeStackTrace `json:"asyncStackTrace,omitempty"`

	// AsyncStackTraceID (deprecated) (optional) Async stack trace, if any.
	AsyncStackTraceID *RuntimeStackTraceID `json:"asyncStackTraceId,omitempty"`
}

DebuggerRestartFrameResult …

type DebuggerResume

1
2
3
4
5
6
7
8
type DebuggerResume struct {
	// TerminateOnResume (optional) Set to true to terminate execution upon resuming execution. In contrast
	// to Runtime.terminateExecution, this will allows to execute further
	// JavaScript (i.e. via evaluation) until execution of the paused code
	// is actually resumed, at which point termination is triggered.
	// If execution is currently not paused, this parameter has no effect.
	TerminateOnResume bool `json:"terminateOnResume,omitempty"`
}

DebuggerResume Resumes JavaScript execution.

(DebuggerResume) Call

1
func (m DebuggerResume) Call(c Client) error

Call sends the request.

(DebuggerResume) ProtoReq <- 0.74.0

1
func (m DebuggerResume) ProtoReq() string

ProtoReq name.

type DebuggerResumed

1
type DebuggerResumed struct{}

DebuggerResumed Fired when the virtual machine resumed execution.

(DebuggerResumed) ProtoEvent <- 0.72.0

1
func (evt DebuggerResumed) ProtoEvent() string

ProtoEvent name.

type DebuggerScope

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type DebuggerScope struct {
	// Type Scope type.
	Type DebuggerScopeType `json:"type"`

	// Object representing the scope. For `global` and `with` scopes it represents the actual
	// object; for the rest of the scopes, it is artificial transient object enumerating scope
	// variables as its properties.
	Object *RuntimeRemoteObject `json:"object"`

	// Name (optional) ...
	Name string `json:"name,omitempty"`

	// StartLocation (optional) Location in the source code where scope starts
	StartLocation *DebuggerLocation `json:"startLocation,omitempty"`

	// EndLocation (optional) Location in the source code where scope ends
	EndLocation *DebuggerLocation `json:"endLocation,omitempty"`
}

DebuggerScope Scope description.

type DebuggerScopeType

1
type DebuggerScopeType string

DebuggerScopeType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const (
	// DebuggerScopeTypeGlobal enum const.
	DebuggerScopeTypeGlobal DebuggerScopeType = "global"

	// DebuggerScopeTypeLocal enum const.
	DebuggerScopeTypeLocal DebuggerScopeType = "local"

	// DebuggerScopeTypeWith enum const.
	DebuggerScopeTypeWith DebuggerScopeType = "with"

	// DebuggerScopeTypeClosure enum const.
	DebuggerScopeTypeClosure DebuggerScopeType = "closure"

	// DebuggerScopeTypeCatch enum const.
	DebuggerScopeTypeCatch DebuggerScopeType = "catch"

	// DebuggerScopeTypeBlock enum const.
	DebuggerScopeTypeBlock DebuggerScopeType = "block"

	// DebuggerScopeTypeScript enum const.
	DebuggerScopeTypeScript DebuggerScopeType = "script"

	// DebuggerScopeTypeEval enum const.
	DebuggerScopeTypeEval DebuggerScopeType = "eval"

	// DebuggerScopeTypeModule enum const.
	DebuggerScopeTypeModule DebuggerScopeType = "module"

	// DebuggerScopeTypeWasmExpressionStack enum const.
	DebuggerScopeTypeWasmExpressionStack DebuggerScopeType = "wasm-expression-stack"
)

type DebuggerScriptFailedToParse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
type DebuggerScriptFailedToParse struct {
	// ScriptID Identifier of the script parsed.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// URL or name of the script parsed (if any).
	URL string `json:"url"`

	// StartLine Line offset of the script within the resource with given URL (for script tags).
	StartLine int `json:"startLine"`

	// StartColumn Column offset of the script within the resource with given URL.
	StartColumn int `json:"startColumn"`

	// EndLine Last line of the script.
	EndLine int `json:"endLine"`

	// EndColumn Length of the last line of the script.
	EndColumn int `json:"endColumn"`

	// ExecutionContextID Specifies script creation context.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`

	// Hash Content hash of the script, SHA-256.
	Hash string `json:"hash"`

	// ExecutionContextAuxData (optional) Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
	ExecutionContextAuxData map[string]gson.JSON `json:"executionContextAuxData,omitempty"`

	// SourceMapURL (optional) URL of source map associated with script (if any).
	SourceMapURL string `json:"sourceMapURL,omitempty"`

	// HasSourceURL (optional) True, if this script has sourceURL.
	HasSourceURL bool `json:"hasSourceURL,omitempty"`

	// IsModule (optional) True, if this script is ES6 module.
	IsModule bool `json:"isModule,omitempty"`

	// Length (optional) This script length.
	Length *int `json:"length,omitempty"`

	// StackTrace (experimental) (optional) JavaScript top stack frame of where the script parsed event was triggered if available.
	StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"`

	// CodeOffset (experimental) (optional) If the scriptLanguage is WebAssembly, the code section offset in the module.
	CodeOffset *int `json:"codeOffset,omitempty"`

	// ScriptLanguage (experimental) (optional) The language of the script.
	ScriptLanguage DebuggerScriptLanguage `json:"scriptLanguage,omitempty"`

	// EmbedderName (experimental) (optional) The name the embedder supplied for this script.
	EmbedderName string `json:"embedderName,omitempty"`
}

DebuggerScriptFailedToParse Fired when virtual machine fails to parse the script.

(DebuggerScriptFailedToParse) ProtoEvent <- 0.72.0

1
func (evt DebuggerScriptFailedToParse) ProtoEvent() string

ProtoEvent name.

type DebuggerScriptLanguage

1
type DebuggerScriptLanguage string

DebuggerScriptLanguage Enum of possible script languages.

1
2
3
4
5
6
7
const (
	// DebuggerScriptLanguageJavaScript enum const.
	DebuggerScriptLanguageJavaScript DebuggerScriptLanguage = "JavaScript"

	// DebuggerScriptLanguageWebAssembly enum const.
	DebuggerScriptLanguageWebAssembly DebuggerScriptLanguage = "WebAssembly"
)

type DebuggerScriptParsed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
type DebuggerScriptParsed struct {
	// ScriptID Identifier of the script parsed.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// URL or name of the script parsed (if any).
	URL string `json:"url"`

	// StartLine Line offset of the script within the resource with given URL (for script tags).
	StartLine int `json:"startLine"`

	// StartColumn Column offset of the script within the resource with given URL.
	StartColumn int `json:"startColumn"`

	// EndLine Last line of the script.
	EndLine int `json:"endLine"`

	// EndColumn Length of the last line of the script.
	EndColumn int `json:"endColumn"`

	// ExecutionContextID Specifies script creation context.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`

	// Hash Content hash of the script, SHA-256.
	Hash string `json:"hash"`

	// ExecutionContextAuxData (optional) Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
	ExecutionContextAuxData map[string]gson.JSON `json:"executionContextAuxData,omitempty"`

	// IsLiveEdit (experimental) (optional) True, if this script is generated as a result of the live edit operation.
	IsLiveEdit bool `json:"isLiveEdit,omitempty"`

	// SourceMapURL (optional) URL of source map associated with script (if any).
	SourceMapURL string `json:"sourceMapURL,omitempty"`

	// HasSourceURL (optional) True, if this script has sourceURL.
	HasSourceURL bool `json:"hasSourceURL,omitempty"`

	// IsModule (optional) True, if this script is ES6 module.
	IsModule bool `json:"isModule,omitempty"`

	// Length (optional) This script length.
	Length *int `json:"length,omitempty"`

	// StackTrace (experimental) (optional) JavaScript top stack frame of where the script parsed event was triggered if available.
	StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"`

	// CodeOffset (experimental) (optional) If the scriptLanguage is WebAssembly, the code section offset in the module.
	CodeOffset *int `json:"codeOffset,omitempty"`

	// ScriptLanguage (experimental) (optional) The language of the script.
	ScriptLanguage DebuggerScriptLanguage `json:"scriptLanguage,omitempty"`

	// DebugSymbols (experimental) (optional) If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
	DebugSymbols *DebuggerDebugSymbols `json:"debugSymbols,omitempty"`

	// EmbedderName (experimental) (optional) The name the embedder supplied for this script.
	EmbedderName string `json:"embedderName,omitempty"`
}

DebuggerScriptParsed Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.

(DebuggerScriptParsed) ProtoEvent <- 0.72.0

1
func (evt DebuggerScriptParsed) ProtoEvent() string

ProtoEvent name.

type DebuggerScriptPosition

1
2
3
4
5
6
7
type DebuggerScriptPosition struct {
	// LineNumber ...
	LineNumber int `json:"lineNumber"`

	// ColumnNumber ...
	ColumnNumber int `json:"columnNumber"`
}

DebuggerScriptPosition (experimental) Location in the source code.

type DebuggerSearchInContent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type DebuggerSearchInContent struct {
	// ScriptID Id of the script to search in.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// Query String to search for.
	Query string `json:"query"`

	// CaseSensitive (optional) If true, search is case sensitive.
	CaseSensitive bool `json:"caseSensitive,omitempty"`

	// IsRegex (optional) If true, treats string parameter as regex.
	IsRegex bool `json:"isRegex,omitempty"`
}

DebuggerSearchInContent Searches for given string in script content.

(DebuggerSearchInContent) Call

1
func (m DebuggerSearchInContent) Call(c Client) (*DebuggerSearchInContentResult, error)

Call the request.

(DebuggerSearchInContent) ProtoReq <- 0.74.0

1
func (m DebuggerSearchInContent) ProtoReq() string

ProtoReq name.

type DebuggerSearchInContentResult

1
2
3
4
type DebuggerSearchInContentResult struct {
	// Result List of search matches.
	Result []*DebuggerSearchMatch `json:"result"`
}

DebuggerSearchInContentResult …

type DebuggerSearchMatch

1
2
3
4
5
6
7
type DebuggerSearchMatch struct {
	// LineNumber Line number in resource content.
	LineNumber float64 `json:"lineNumber"`

	// LineContent Line with match content.
	LineContent string `json:"lineContent"`
}

DebuggerSearchMatch Search match for resource.

type DebuggerSetAsyncCallStackDepth

1
2
3
4
5
type DebuggerSetAsyncCallStackDepth struct {
	// MaxDepth Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
	// call stacks (default).
	MaxDepth int `json:"maxDepth"`
}

DebuggerSetAsyncCallStackDepth Enables or disables async call stacks tracking.

(DebuggerSetAsyncCallStackDepth) Call

1
func (m DebuggerSetAsyncCallStackDepth) Call(c Client) error

Call sends the request.

(DebuggerSetAsyncCallStackDepth) ProtoReq <- 0.74.0

1
func (m DebuggerSetAsyncCallStackDepth) ProtoReq() string

ProtoReq name.

type DebuggerSetBlackboxPatterns

1
2
3
4
type DebuggerSetBlackboxPatterns struct {
	// Patterns Array of regexps that will be used to check script url for blackbox state.
	Patterns []string `json:"patterns"`
}

DebuggerSetBlackboxPatterns (experimental) Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing ‘step in’ several times, finally resorting to ‘step out’ if unsuccessful.

(DebuggerSetBlackboxPatterns) Call

1
func (m DebuggerSetBlackboxPatterns) Call(c Client) error

Call sends the request.

(DebuggerSetBlackboxPatterns) ProtoReq <- 0.74.0

1
func (m DebuggerSetBlackboxPatterns) ProtoReq() string

ProtoReq name.

type DebuggerSetBlackboxedRanges

1
2
3
4
5
6
7
type DebuggerSetBlackboxedRanges struct {
	// ScriptID Id of the script.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// Positions ...
	Positions []*DebuggerScriptPosition `json:"positions"`
}

DebuggerSetBlackboxedRanges (experimental) Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing ‘step in’ several times, finally resorting to ‘step out’ if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn’t blackboxed. Array should be sorted.

(DebuggerSetBlackboxedRanges) Call

1
func (m DebuggerSetBlackboxedRanges) Call(c Client) error

Call sends the request.

(DebuggerSetBlackboxedRanges) ProtoReq <- 0.74.0

1
func (m DebuggerSetBlackboxedRanges) ProtoReq() string

ProtoReq name.

type DebuggerSetBreakpoint

1
2
3
4
5
6
7
8
type DebuggerSetBreakpoint struct {
	// Location to set breakpoint in.
	Location *DebuggerLocation `json:"location"`

	// Condition (optional) Expression to use as a breakpoint condition. When specified, debugger will only stop on the
	// breakpoint if this expression evaluates to true.
	Condition string `json:"condition,omitempty"`
}

DebuggerSetBreakpoint Sets JavaScript breakpoint at a given location.

(DebuggerSetBreakpoint) Call

1
func (m DebuggerSetBreakpoint) Call(c Client) (*DebuggerSetBreakpointResult, error)

Call the request.

(DebuggerSetBreakpoint) ProtoReq <- 0.74.0

1
func (m DebuggerSetBreakpoint) ProtoReq() string

ProtoReq name.

type DebuggerSetBreakpointByURL

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
type DebuggerSetBreakpointByURL struct {
	// LineNumber Line number to set breakpoint at.
	LineNumber int `json:"lineNumber"`

	// URL (optional) URL of the resources to set breakpoint on.
	URL string `json:"url,omitempty"`

	// URLRegex (optional) Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or
	// `urlRegex` must be specified.
	URLRegex string `json:"urlRegex,omitempty"`

	// ScriptHash (optional) Script hash of the resources to set breakpoint on.
	ScriptHash string `json:"scriptHash,omitempty"`

	// ColumnNumber (optional) Offset in the line to set breakpoint at.
	ColumnNumber *int `json:"columnNumber,omitempty"`

	// Condition (optional) Expression to use as a breakpoint condition. When specified, debugger will only stop on the
	// breakpoint if this expression evaluates to true.
	Condition string `json:"condition,omitempty"`
}

DebuggerSetBreakpointByURL Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads.

(DebuggerSetBreakpointByURL) Call

1
func (m DebuggerSetBreakpointByURL) Call(c Client) (*DebuggerSetBreakpointByURLResult, error)

Call the request.

(DebuggerSetBreakpointByURL) ProtoReq <- 0.74.0

1
func (m DebuggerSetBreakpointByURL) ProtoReq() string

ProtoReq name.

type DebuggerSetBreakpointByURLResult

1
2
3
4
5
6
7
type DebuggerSetBreakpointByURLResult struct {
	// BreakpointID Id of the created breakpoint for further reference.
	BreakpointID DebuggerBreakpointID `json:"breakpointId"`

	// Locations List of the locations this breakpoint resolved into upon addition.
	Locations []*DebuggerLocation `json:"locations"`
}

DebuggerSetBreakpointByURLResult …

type DebuggerSetBreakpointOnFunctionCall

1
2
3
4
5
6
7
8
type DebuggerSetBreakpointOnFunctionCall struct {
	// ObjectID Function object id.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`

	// Condition (optional) Expression to use as a breakpoint condition. When specified, debugger will
	// stop on the breakpoint if this expression evaluates to true.
	Condition string `json:"condition,omitempty"`
}

DebuggerSetBreakpointOnFunctionCall (experimental) Sets JavaScript breakpoint before each call to the given function. If another function was created from the same source as a given one, calling it will also trigger the breakpoint.

(DebuggerSetBreakpointOnFunctionCall) Call

1
func (m DebuggerSetBreakpointOnFunctionCall) Call(c Client) (*DebuggerSetBreakpointOnFunctionCallResult, error)

Call the request.

(DebuggerSetBreakpointOnFunctionCall) ProtoReq <- 0.74.0

1
func (m DebuggerSetBreakpointOnFunctionCall) ProtoReq() string

ProtoReq name.

type DebuggerSetBreakpointOnFunctionCallResult

1
2
3
4
type DebuggerSetBreakpointOnFunctionCallResult struct {
	// BreakpointID Id of the created breakpoint for further reference.
	BreakpointID DebuggerBreakpointID `json:"breakpointId"`
}

DebuggerSetBreakpointOnFunctionCallResult (experimental) …

type DebuggerSetBreakpointResult

1
2
3
4
5
6
7
type DebuggerSetBreakpointResult struct {
	// BreakpointID Id of the created breakpoint for further reference.
	BreakpointID DebuggerBreakpointID `json:"breakpointId"`

	// ActualLocation Location this breakpoint resolved into.
	ActualLocation *DebuggerLocation `json:"actualLocation"`
}

DebuggerSetBreakpointResult …

type DebuggerSetBreakpointsActive

1
2
3
4
type DebuggerSetBreakpointsActive struct {
	// Active New value for breakpoints active state.
	Active bool `json:"active"`
}

DebuggerSetBreakpointsActive Activates / deactivates all breakpoints on the page.

(DebuggerSetBreakpointsActive) Call

1
func (m DebuggerSetBreakpointsActive) Call(c Client) error

Call sends the request.

(DebuggerSetBreakpointsActive) ProtoReq <- 0.74.0

1
func (m DebuggerSetBreakpointsActive) ProtoReq() string

ProtoReq name.

type DebuggerSetInstrumentationBreakpoint

1
2
3
4
type DebuggerSetInstrumentationBreakpoint struct {
	// Instrumentation name.
	Instrumentation DebuggerSetInstrumentationBreakpointInstrumentation `json:"instrumentation"`
}

DebuggerSetInstrumentationBreakpoint Sets instrumentation breakpoint.

(DebuggerSetInstrumentationBreakpoint) Call

1
func (m DebuggerSetInstrumentationBreakpoint) Call(c Client) (*DebuggerSetInstrumentationBreakpointResult, error)

Call the request.

(DebuggerSetInstrumentationBreakpoint) ProtoReq <- 0.74.0

1
func (m DebuggerSetInstrumentationBreakpoint) ProtoReq() string

ProtoReq name.

type DebuggerSetInstrumentationBreakpointInstrumentation

1
type DebuggerSetInstrumentationBreakpointInstrumentation string

DebuggerSetInstrumentationBreakpointInstrumentation enum.

1
2
3
4
5
6
7
const (
	// DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptExecution enum const.
	DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptExecution DebuggerSetInstrumentationBreakpointInstrumentation = "beforeScriptExecution"

	// DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptWithSourceMapExecution enum const.
	DebuggerSetInstrumentationBreakpointInstrumentationBeforeScriptWithSourceMapExecution DebuggerSetInstrumentationBreakpointInstrumentation = "beforeScriptWithSourceMapExecution"
)

type DebuggerSetInstrumentationBreakpointResult

1
2
3
4
type DebuggerSetInstrumentationBreakpointResult struct {
	// BreakpointID Id of the created breakpoint for further reference.
	BreakpointID DebuggerBreakpointID `json:"breakpointId"`
}

DebuggerSetInstrumentationBreakpointResult …

type DebuggerSetPauseOnExceptions

1
2
3
4
type DebuggerSetPauseOnExceptions struct {
	// State Pause on exceptions mode.
	State DebuggerSetPauseOnExceptionsState `json:"state"`
}

DebuggerSetPauseOnExceptions Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, or caught exceptions, no exceptions. Initial pause on exceptions state is none.

(DebuggerSetPauseOnExceptions) Call

1
func (m DebuggerSetPauseOnExceptions) Call(c Client) error

Call sends the request.

(DebuggerSetPauseOnExceptions) ProtoReq <- 0.74.0

1
func (m DebuggerSetPauseOnExceptions) ProtoReq() string

ProtoReq name.

type DebuggerSetPauseOnExceptionsState

1
type DebuggerSetPauseOnExceptionsState string

DebuggerSetPauseOnExceptionsState enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// DebuggerSetPauseOnExceptionsStateNone enum const.
	DebuggerSetPauseOnExceptionsStateNone DebuggerSetPauseOnExceptionsState = "none"

	// DebuggerSetPauseOnExceptionsStateCaught enum const.
	DebuggerSetPauseOnExceptionsStateCaught DebuggerSetPauseOnExceptionsState = "caught"

	// DebuggerSetPauseOnExceptionsStateUncaught enum const.
	DebuggerSetPauseOnExceptionsStateUncaught DebuggerSetPauseOnExceptionsState = "uncaught"

	// DebuggerSetPauseOnExceptionsStateAll enum const.
	DebuggerSetPauseOnExceptionsStateAll DebuggerSetPauseOnExceptionsState = "all"
)

type DebuggerSetReturnValue

1
2
3
4
type DebuggerSetReturnValue struct {
	// NewValue New return value.
	NewValue *RuntimeCallArgument `json:"newValue"`
}

DebuggerSetReturnValue (experimental) Changes return value in top frame. Available only at return break position.

(DebuggerSetReturnValue) Call

1
func (m DebuggerSetReturnValue) Call(c Client) error

Call sends the request.

(DebuggerSetReturnValue) ProtoReq <- 0.74.0

1
func (m DebuggerSetReturnValue) ProtoReq() string

ProtoReq name.

type DebuggerSetScriptSource

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type DebuggerSetScriptSource struct {
	// ScriptID Id of the script to edit.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// ScriptSource New content of the script.
	ScriptSource string `json:"scriptSource"`

	// DryRun (optional) If true the change will not actually be applied. Dry run may be used to get result
	// description without actually modifying the code.
	DryRun bool `json:"dryRun,omitempty"`

	// AllowTopFrameEditing (experimental) (optional) If true, then `scriptSource` is allowed to change the function on top of the stack
	// as long as the top-most stack frame is the only activation of that function.
	AllowTopFrameEditing bool `json:"allowTopFrameEditing,omitempty"`
}

DebuggerSetScriptSource Edits JavaScript source live.

In general, functions that are currently on the stack can not be edited with a single exception: If the edited function is the top-most stack frame and that is the only activation of that function on the stack. In this case the live edit will be successful and a Debugger.restartFrame for the top-most function is automatically triggered.

(DebuggerSetScriptSource) Call

1
func (m DebuggerSetScriptSource) Call(c Client) (*DebuggerSetScriptSourceResult, error)

Call the request.

(DebuggerSetScriptSource) ProtoReq <- 0.74.0

1
func (m DebuggerSetScriptSource) ProtoReq() string

ProtoReq name.

type DebuggerSetScriptSourceResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
type DebuggerSetScriptSourceResult struct {
	// CallFrames (deprecated) (optional) New stack trace in case editing has happened while VM was stopped.
	CallFrames []*DebuggerCallFrame `json:"callFrames,omitempty"`

	// StackChanged (deprecated) (optional) Whether current call stack  was modified after applying the changes.
	StackChanged bool `json:"stackChanged,omitempty"`

	// AsyncStackTrace (deprecated) (optional) Async stack trace, if any.
	AsyncStackTrace *RuntimeStackTrace `json:"asyncStackTrace,omitempty"`

	// AsyncStackTraceID (deprecated) (optional) Async stack trace, if any.
	AsyncStackTraceID *RuntimeStackTraceID `json:"asyncStackTraceId,omitempty"`

	// Status (experimental) Whether the operation was successful or not. Only `Ok` denotes a
	// successful live edit while the other enum variants denote why
	// the live edit failed.
	Status DebuggerSetScriptSourceResultStatus `json:"status"`

	// ExceptionDetails (optional) Exception details if any. Only present when `status` is `CompileError`.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

DebuggerSetScriptSourceResult …

type DebuggerSetScriptSourceResultStatus <- 0.108.0

1
type DebuggerSetScriptSourceResultStatus string

DebuggerSetScriptSourceResultStatus enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// DebuggerSetScriptSourceResultStatusOk enum const.
	DebuggerSetScriptSourceResultStatusOk DebuggerSetScriptSourceResultStatus = "Ok"

	// DebuggerSetScriptSourceResultStatusCompileError enum const.
	DebuggerSetScriptSourceResultStatusCompileError DebuggerSetScriptSourceResultStatus = "CompileError"

	// DebuggerSetScriptSourceResultStatusBlockedByActiveGenerator enum const.
	DebuggerSetScriptSourceResultStatusBlockedByActiveGenerator DebuggerSetScriptSourceResultStatus = "BlockedByActiveGenerator"

	// DebuggerSetScriptSourceResultStatusBlockedByActiveFunction enum const.
	DebuggerSetScriptSourceResultStatusBlockedByActiveFunction DebuggerSetScriptSourceResultStatus = "BlockedByActiveFunction"

	// DebuggerSetScriptSourceResultStatusBlockedByTopLevelEsModuleChange enum const.
	DebuggerSetScriptSourceResultStatusBlockedByTopLevelEsModuleChange DebuggerSetScriptSourceResultStatus = "BlockedByTopLevelEsModuleChange"
)

type DebuggerSetSkipAllPauses

1
2
3
4
type DebuggerSetSkipAllPauses struct {
	// Skip New value for skip pauses state.
	Skip bool `json:"skip"`
}

DebuggerSetSkipAllPauses Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).

(DebuggerSetSkipAllPauses) Call

1
func (m DebuggerSetSkipAllPauses) Call(c Client) error

Call sends the request.

(DebuggerSetSkipAllPauses) ProtoReq <- 0.74.0

1
func (m DebuggerSetSkipAllPauses) ProtoReq() string

ProtoReq name.

type DebuggerSetVariableValue

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type DebuggerSetVariableValue struct {
	// ScopeNumber 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch'
	// scope types are allowed. Other scopes could be manipulated manually.
	ScopeNumber int `json:"scopeNumber"`

	// VariableName Variable name.
	VariableName string `json:"variableName"`

	// NewValue New variable value.
	NewValue *RuntimeCallArgument `json:"newValue"`

	// CallFrameID Id of callframe that holds variable.
	CallFrameID DebuggerCallFrameID `json:"callFrameId"`
}

DebuggerSetVariableValue Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.

(DebuggerSetVariableValue) Call

1
func (m DebuggerSetVariableValue) Call(c Client) error

Call sends the request.

(DebuggerSetVariableValue) ProtoReq <- 0.74.0

1
func (m DebuggerSetVariableValue) ProtoReq() string

ProtoReq name.

type DebuggerStepInto

1
2
3
4
5
6
7
8
type DebuggerStepInto struct {
	// BreakOnAsyncCall (experimental) (optional) Debugger will pause on the execution of the first async task which was scheduled
	// before next pause.
	BreakOnAsyncCall bool `json:"breakOnAsyncCall,omitempty"`

	// SkipList (experimental) (optional) The skipList specifies location ranges that should be skipped on step into.
	SkipList []*DebuggerLocationRange `json:"skipList,omitempty"`
}

DebuggerStepInto Steps into the function call.

(DebuggerStepInto) Call

1
func (m DebuggerStepInto) Call(c Client) error

Call sends the request.

(DebuggerStepInto) ProtoReq <- 0.74.0

1
func (m DebuggerStepInto) ProtoReq() string

ProtoReq name.

type DebuggerStepOut

1
type DebuggerStepOut struct{}

DebuggerStepOut Steps out of the function call.

(DebuggerStepOut) Call

1
func (m DebuggerStepOut) Call(c Client) error

Call sends the request.

(DebuggerStepOut) ProtoReq <- 0.74.0

1
func (m DebuggerStepOut) ProtoReq() string

ProtoReq name.

type DebuggerStepOver

1
2
3
4
type DebuggerStepOver struct {
	// SkipList (experimental) (optional) The skipList specifies location ranges that should be skipped on step over.
	SkipList []*DebuggerLocationRange `json:"skipList,omitempty"`
}

DebuggerStepOver Steps over the statement.

(DebuggerStepOver) Call

1
func (m DebuggerStepOver) Call(c Client) error

Call sends the request.

(DebuggerStepOver) ProtoReq <- 0.74.0

1
func (m DebuggerStepOver) ProtoReq() string

ProtoReq name.

type DebuggerWasmDisassemblyChunk <- 0.108.2

1
2
3
4
5
6
7
type DebuggerWasmDisassemblyChunk struct {
	// Lines The next chunk of disassembled lines.
	Lines []string `json:"lines"`

	// BytecodeOffsets The bytecode offsets describing the start of each line.
	BytecodeOffsets []int `json:"bytecodeOffsets"`
}

DebuggerWasmDisassemblyChunk (experimental) …

type DeviceAccessCancelPrompt <- 0.112.9

1
2
3
4
type DeviceAccessCancelPrompt struct {
	// ID ...
	ID DeviceAccessRequestID `json:"id"`
}

DeviceAccessCancelPrompt Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.

(DeviceAccessCancelPrompt) Call <- 0.112.9

1
func (m DeviceAccessCancelPrompt) Call(c Client) error

Call sends the request.

(DeviceAccessCancelPrompt) ProtoReq <- 0.112.9

1
func (m DeviceAccessCancelPrompt) ProtoReq() string

ProtoReq name.

type DeviceAccessDeviceID <- 0.112.9

1
type DeviceAccessDeviceID string

DeviceAccessDeviceID A device id.

type DeviceAccessDeviceRequestPrompted <- 0.112.9

1
2
3
4
5
6
7
type DeviceAccessDeviceRequestPrompted struct {
	// ID ...
	ID DeviceAccessRequestID `json:"id"`

	// Devices ...
	Devices []*DeviceAccessPromptDevice `json:"devices"`
}

DeviceAccessDeviceRequestPrompted A device request opened a user prompt to select a device. Respond with the selectPrompt or cancelPrompt command.

(DeviceAccessDeviceRequestPrompted) ProtoEvent <- 0.112.9

1
func (evt DeviceAccessDeviceRequestPrompted) ProtoEvent() string

ProtoEvent name.

type DeviceAccessDisable <- 0.112.9

1
type DeviceAccessDisable struct{}

DeviceAccessDisable Disable events in this domain.

(DeviceAccessDisable) Call <- 0.112.9

1
func (m DeviceAccessDisable) Call(c Client) error

Call sends the request.

(DeviceAccessDisable) ProtoReq <- 0.112.9

1
func (m DeviceAccessDisable) ProtoReq() string

ProtoReq name.

type DeviceAccessEnable <- 0.112.9

1
type DeviceAccessEnable struct{}

DeviceAccessEnable Enable events in this domain.

(DeviceAccessEnable) Call <- 0.112.9

1
func (m DeviceAccessEnable) Call(c Client) error

Call sends the request.

(DeviceAccessEnable) ProtoReq <- 0.112.9

1
func (m DeviceAccessEnable) ProtoReq() string

ProtoReq name.

type DeviceAccessPromptDevice <- 0.112.9

1
2
3
4
5
6
7
type DeviceAccessPromptDevice struct {
	// ID ...
	ID DeviceAccessDeviceID `json:"id"`

	// Name Display name as it appears in a device request user prompt.
	Name string `json:"name"`
}

DeviceAccessPromptDevice Device information displayed in a user prompt to select a device.

type DeviceAccessRequestID <- 0.112.9

1
type DeviceAccessRequestID string

DeviceAccessRequestID Device request id.

type DeviceAccessSelectPrompt <- 0.112.9

1
2
3
4
5
6
7
type DeviceAccessSelectPrompt struct {
	// ID ...
	ID DeviceAccessRequestID `json:"id"`

	// DeviceID ...
	DeviceID DeviceAccessDeviceID `json:"deviceId"`
}

DeviceAccessSelectPrompt Select a device in response to a DeviceAccess.deviceRequestPrompted event.

(DeviceAccessSelectPrompt) Call <- 0.112.9

1
func (m DeviceAccessSelectPrompt) Call(c Client) error

Call sends the request.

(DeviceAccessSelectPrompt) ProtoReq <- 0.112.9

1
func (m DeviceAccessSelectPrompt) ProtoReq() string

ProtoReq name.

type DeviceOrientationClearDeviceOrientationOverride

1
type DeviceOrientationClearDeviceOrientationOverride struct{}

DeviceOrientationClearDeviceOrientationOverride Clears the overridden Device Orientation.

(DeviceOrientationClearDeviceOrientationOverride) Call

1
func (m DeviceOrientationClearDeviceOrientationOverride) Call(c Client) error

Call sends the request.

(DeviceOrientationClearDeviceOrientationOverride) ProtoReq <- 0.74.0

1
func (m DeviceOrientationClearDeviceOrientationOverride) ProtoReq() string

ProtoReq name.

type DeviceOrientationSetDeviceOrientationOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type DeviceOrientationSetDeviceOrientationOverride struct {
	// Alpha Mock alpha
	Alpha float64 `json:"alpha"`

	// Beta Mock beta
	Beta float64 `json:"beta"`

	// Gamma Mock gamma
	Gamma float64 `json:"gamma"`
}

DeviceOrientationSetDeviceOrientationOverride Overrides the Device Orientation.

(DeviceOrientationSetDeviceOrientationOverride) Call

1
func (m DeviceOrientationSetDeviceOrientationOverride) Call(c Client) error

Call sends the request.

(DeviceOrientationSetDeviceOrientationOverride) ProtoReq <- 0.74.0

1
func (m DeviceOrientationSetDeviceOrientationOverride) ProtoReq() string

ProtoReq name.

type EmulationCanEmulate

1
type EmulationCanEmulate struct{}

EmulationCanEmulate (deprecated) Tells whether emulation is supported.

(EmulationCanEmulate) Call

1
func (m EmulationCanEmulate) Call(c Client) (*EmulationCanEmulateResult, error)

Call the request.

(EmulationCanEmulate) ProtoReq <- 0.74.0

1
func (m EmulationCanEmulate) ProtoReq() string

ProtoReq name.

type EmulationCanEmulateResult

1
2
3
4
type EmulationCanEmulateResult struct {
	// Result True if emulation is supported.
	Result bool `json:"result"`
}

EmulationCanEmulateResult (deprecated) …

type EmulationClearDeviceMetricsOverride

1
type EmulationClearDeviceMetricsOverride struct{}

EmulationClearDeviceMetricsOverride Clears the overridden device metrics.

(EmulationClearDeviceMetricsOverride) Call

1
func (m EmulationClearDeviceMetricsOverride) Call(c Client) error

Call sends the request.

(EmulationClearDeviceMetricsOverride) ProtoReq <- 0.74.0

1
func (m EmulationClearDeviceMetricsOverride) ProtoReq() string

ProtoReq name.

type EmulationClearDevicePostureOverride <- 0.116.0

1
type EmulationClearDevicePostureOverride struct{}

EmulationClearDevicePostureOverride (experimental) Clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set.

(EmulationClearDevicePostureOverride) Call <- 0.116.0

1
func (m EmulationClearDevicePostureOverride) Call(c Client) error

Call sends the request.

(EmulationClearDevicePostureOverride) ProtoReq <- 0.116.0

1
func (m EmulationClearDevicePostureOverride) ProtoReq() string

ProtoReq name.

type EmulationClearGeolocationOverride

1
type EmulationClearGeolocationOverride struct{}

EmulationClearGeolocationOverride Clears the overridden Geolocation Position and Error.

(EmulationClearGeolocationOverride) Call

1
func (m EmulationClearGeolocationOverride) Call(c Client) error

Call sends the request.

(EmulationClearGeolocationOverride) ProtoReq <- 0.74.0

1
func (m EmulationClearGeolocationOverride) ProtoReq() string

ProtoReq name.

type EmulationClearIdleOverride <- 0.72.0

1
type EmulationClearIdleOverride struct{}

EmulationClearIdleOverride Clears Idle state overrides.

(EmulationClearIdleOverride) Call <- 0.72.0

1
func (m EmulationClearIdleOverride) Call(c Client) error

Call sends the request.

(EmulationClearIdleOverride) ProtoReq <- 0.74.0

1
func (m EmulationClearIdleOverride) ProtoReq() string

ProtoReq name.

type EmulationDevicePosture <- 0.115.0

1
2
3
4
type EmulationDevicePosture struct {
	// Type Current posture of the device
	Type EmulationDevicePostureType `json:"type"`
}

EmulationDevicePosture …

type EmulationDevicePostureType <- 0.115.0

1
type EmulationDevicePostureType string

EmulationDevicePostureType enum.

1
2
3
4
5
6
7
const (
	// EmulationDevicePostureTypeContinuous enum const.
	EmulationDevicePostureTypeContinuous EmulationDevicePostureType = "continuous"

	// EmulationDevicePostureTypeFolded enum const.
	EmulationDevicePostureTypeFolded EmulationDevicePostureType = "folded"
)

type EmulationDisabledImageType <- 0.90.0

1
type EmulationDisabledImageType string

EmulationDisabledImageType (experimental) Enum of image types that can be disabled.

1
2
3
4
5
6
7
const (
	// EmulationDisabledImageTypeAvif enum const.
	EmulationDisabledImageTypeAvif EmulationDisabledImageType = "avif"

	// EmulationDisabledImageTypeWebp enum const.
	EmulationDisabledImageTypeWebp EmulationDisabledImageType = "webp"
)

type EmulationDisplayFeature <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type EmulationDisplayFeature struct {
	// Orientation of a display feature in relation to screen
	Orientation EmulationDisplayFeatureOrientation `json:"orientation"`

	// Offset The offset from the screen origin in either the x (for vertical
	// orientation) or y (for horizontal orientation) direction.
	Offset int `json:"offset"`

	// MaskLength A display feature may mask content such that it is not physically
	// displayed - this length along with the offset describes this area.
	// A display feature that only splits content will have a 0 mask_length.
	MaskLength int `json:"maskLength"`
}

EmulationDisplayFeature …

type EmulationDisplayFeatureOrientation <- 0.72.0

1
type EmulationDisplayFeatureOrientation string

EmulationDisplayFeatureOrientation enum.

1
2
3
4
5
6
7
const (
	// EmulationDisplayFeatureOrientationVertical enum const.
	EmulationDisplayFeatureOrientationVertical EmulationDisplayFeatureOrientation = "vertical"

	// EmulationDisplayFeatureOrientationHorizontal enum const.
	EmulationDisplayFeatureOrientationHorizontal EmulationDisplayFeatureOrientation = "horizontal"
)

type EmulationGetOverriddenSensorInformation <- 0.115.0

1
2
3
4
type EmulationGetOverriddenSensorInformation struct {
	// Type ...
	Type EmulationSensorType `json:"type"`
}

EmulationGetOverriddenSensorInformation (experimental) …

(EmulationGetOverriddenSensorInformation) Call <- 0.115.0

1
func (m EmulationGetOverriddenSensorInformation) Call(c Client) (*EmulationGetOverriddenSensorInformationResult, error)

Call the request.

(EmulationGetOverriddenSensorInformation) ProtoReq <- 0.115.0

1
func (m EmulationGetOverriddenSensorInformation) ProtoReq() string

ProtoReq name.

type EmulationGetOverriddenSensorInformationResult <- 0.115.0

1
2
3
4
type EmulationGetOverriddenSensorInformationResult struct {
	// RequestedSamplingFrequency ...
	RequestedSamplingFrequency float64 `json:"requestedSamplingFrequency"`
}

EmulationGetOverriddenSensorInformationResult (experimental) …

type EmulationMediaFeature

1
2
3
4
5
6
7
type EmulationMediaFeature struct {
	// Name ...
	Name string `json:"name"`

	// Value ...
	Value string `json:"value"`
}

EmulationMediaFeature …

type EmulationResetPageScaleFactor

1
type EmulationResetPageScaleFactor struct{}

EmulationResetPageScaleFactor (experimental) Requests that page scale factor is reset to initial values.

(EmulationResetPageScaleFactor) Call

1
func (m EmulationResetPageScaleFactor) Call(c Client) error

Call sends the request.

(EmulationResetPageScaleFactor) ProtoReq <- 0.74.0

1
func (m EmulationResetPageScaleFactor) ProtoReq() string

ProtoReq name.

type EmulationScreenOrientation

1
2
3
4
5
6
7
type EmulationScreenOrientation struct {
	// Type Orientation type.
	Type EmulationScreenOrientationType `json:"type"`

	// Angle Orientation angle.
	Angle int `json:"angle"`
}

EmulationScreenOrientation Screen orientation.

type EmulationScreenOrientationType

1
type EmulationScreenOrientationType string

EmulationScreenOrientationType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// EmulationScreenOrientationTypePortraitPrimary enum const.
	EmulationScreenOrientationTypePortraitPrimary EmulationScreenOrientationType = "portraitPrimary"

	// EmulationScreenOrientationTypePortraitSecondary enum const.
	EmulationScreenOrientationTypePortraitSecondary EmulationScreenOrientationType = "portraitSecondary"

	// EmulationScreenOrientationTypeLandscapePrimary enum const.
	EmulationScreenOrientationTypeLandscapePrimary EmulationScreenOrientationType = "landscapePrimary"

	// EmulationScreenOrientationTypeLandscapeSecondary enum const.
	EmulationScreenOrientationTypeLandscapeSecondary EmulationScreenOrientationType = "landscapeSecondary"
)

type EmulationSensorMetadata <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type EmulationSensorMetadata struct {
	// Available (optional) ...
	Available bool `json:"available,omitempty"`

	// MinimumFrequency (optional) ...
	MinimumFrequency *float64 `json:"minimumFrequency,omitempty"`

	// MaximumFrequency (optional) ...
	MaximumFrequency *float64 `json:"maximumFrequency,omitempty"`
}

EmulationSensorMetadata (experimental) …

type EmulationSensorReading <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type EmulationSensorReading struct {
	// Single (optional) ...
	Single *EmulationSensorReadingSingle `json:"single,omitempty"`

	// Xyz (optional) ...
	Xyz *EmulationSensorReadingXYZ `json:"xyz,omitempty"`

	// Quaternion (optional) ...
	Quaternion *EmulationSensorReadingQuaternion `json:"quaternion,omitempty"`
}

EmulationSensorReading (experimental) …

type EmulationSensorReadingQuaternion <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type EmulationSensorReadingQuaternion struct {
	// X ...
	X float64 `json:"x"`

	// Y ...
	Y float64 `json:"y"`

	// Z ...
	Z float64 `json:"z"`

	// W ...
	W float64 `json:"w"`
}

EmulationSensorReadingQuaternion (experimental) …

type EmulationSensorReadingSingle <- 0.115.0

1
2
3
4
type EmulationSensorReadingSingle struct {
	// Value ...
	Value float64 `json:"value"`
}

EmulationSensorReadingSingle (experimental) …

type EmulationSensorReadingXYZ <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type EmulationSensorReadingXYZ struct {
	// X ...
	X float64 `json:"x"`

	// Y ...
	Y float64 `json:"y"`

	// Z ...
	Z float64 `json:"z"`
}

EmulationSensorReadingXYZ (experimental) …

type EmulationSensorType <- 0.115.0

1
type EmulationSensorType string

EmulationSensorType (experimental) Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const (
	// EmulationSensorTypeAbsoluteOrientation enum const.
	EmulationSensorTypeAbsoluteOrientation EmulationSensorType = "absolute-orientation"

	// EmulationSensorTypeAccelerometer enum const.
	EmulationSensorTypeAccelerometer EmulationSensorType = "accelerometer"

	// EmulationSensorTypeAmbientLight enum const.
	EmulationSensorTypeAmbientLight EmulationSensorType = "ambient-light"

	// EmulationSensorTypeGravity enum const.
	EmulationSensorTypeGravity EmulationSensorType = "gravity"

	// EmulationSensorTypeGyroscope enum const.
	EmulationSensorTypeGyroscope EmulationSensorType = "gyroscope"

	// EmulationSensorTypeLinearAcceleration enum const.
	EmulationSensorTypeLinearAcceleration EmulationSensorType = "linear-acceleration"

	// EmulationSensorTypeMagnetometer enum const.
	EmulationSensorTypeMagnetometer EmulationSensorType = "magnetometer"

	// EmulationSensorTypeProximity enum const.
	EmulationSensorTypeProximity EmulationSensorType = "proximity"

	// EmulationSensorTypeRelativeOrientation enum const.
	EmulationSensorTypeRelativeOrientation EmulationSensorType = "relative-orientation"
)

type EmulationSetAutoDarkModeOverride <- 0.102.0

1
2
3
4
5
type EmulationSetAutoDarkModeOverride struct {
	// Enabled (optional) Whether to enable or disable automatic dark mode.
	// If not specified, any existing override will be cleared.
	Enabled bool `json:"enabled,omitempty"`
}

EmulationSetAutoDarkModeOverride (experimental) Automatically render all web contents using a dark theme.

(EmulationSetAutoDarkModeOverride) Call <- 0.102.0

1
func (m EmulationSetAutoDarkModeOverride) Call(c Client) error

Call sends the request.

(EmulationSetAutoDarkModeOverride) ProtoReq <- 0.102.0

1
func (m EmulationSetAutoDarkModeOverride) ProtoReq() string

ProtoReq name.

type EmulationSetAutomationOverride <- 0.103.0

1
2
3
4
type EmulationSetAutomationOverride struct {
	// Enabled Whether the override should be enabled.
	Enabled bool `json:"enabled"`
}

EmulationSetAutomationOverride (experimental) Allows overriding the automation flag.

(EmulationSetAutomationOverride) Call <- 0.103.0

1
func (m EmulationSetAutomationOverride) Call(c Client) error

Call sends the request.

(EmulationSetAutomationOverride) ProtoReq <- 0.103.0

1
func (m EmulationSetAutomationOverride) ProtoReq() string

ProtoReq name.

type EmulationSetCPUThrottlingRate

1
2
3
4
type EmulationSetCPUThrottlingRate struct {
	// Rate Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
	Rate float64 `json:"rate"`
}

EmulationSetCPUThrottlingRate Enables CPU throttling to emulate slow CPUs.

(EmulationSetCPUThrottlingRate) Call

1
func (m EmulationSetCPUThrottlingRate) Call(c Client) error

Call sends the request.

(EmulationSetCPUThrottlingRate) ProtoReq <- 0.74.0

1
func (m EmulationSetCPUThrottlingRate) ProtoReq() string

ProtoReq name.

type EmulationSetDefaultBackgroundColorOverride

1
2
3
4
5
type EmulationSetDefaultBackgroundColorOverride struct {
	// Color (optional) RGBA of the default background color. If not specified, any existing override will be
	// cleared.
	Color *DOMRGBA `json:"color,omitempty"`
}

EmulationSetDefaultBackgroundColorOverride Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.

(EmulationSetDefaultBackgroundColorOverride) Call

1
func (m EmulationSetDefaultBackgroundColorOverride) Call(c Client) error

Call sends the request.

(EmulationSetDefaultBackgroundColorOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetDefaultBackgroundColorOverride) ProtoReq() string

ProtoReq name.

type EmulationSetDeviceMetricsOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
type EmulationSetDeviceMetricsOverride struct {
	// Width Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
	Width int `json:"width"`

	// Height Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
	Height int `json:"height"`

	// DeviceScaleFactor Overriding device scale factor value. 0 disables the override.
	DeviceScaleFactor float64 `json:"deviceScaleFactor"`

	// Mobile Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text
	// autosizing and more.
	Mobile bool `json:"mobile"`

	// Scale (experimental) (optional) Scale to apply to resulting view image.
	Scale *float64 `json:"scale,omitempty"`

	// ScreenWidth (experimental) (optional) Overriding screen width value in pixels (minimum 0, maximum 10000000).
	ScreenWidth *int `json:"screenWidth,omitempty"`

	// ScreenHeight (experimental) (optional) Overriding screen height value in pixels (minimum 0, maximum 10000000).
	ScreenHeight *int `json:"screenHeight,omitempty"`

	// PositionX (experimental) (optional) Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
	PositionX *int `json:"positionX,omitempty"`

	// PositionY (experimental) (optional) Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
	PositionY *int `json:"positionY,omitempty"`

	// DontSetVisibleSize (experimental) (optional) Do not set visible view size, rely upon explicit setVisibleSize call.
	DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"`

	// ScreenOrientation (optional) Screen orientation override.
	ScreenOrientation *EmulationScreenOrientation `json:"screenOrientation,omitempty"`

	// Viewport (experimental) (optional) If set, the visible area of the page will be overridden to this viewport. This viewport
	// change is not observed by the page, e.g. viewport-relative elements do not change positions.
	Viewport *PageViewport `json:"viewport,omitempty"`

	// DisplayFeature (experimental) (optional) If set, the display feature of a multi-segment screen. If not set, multi-segment support
	// is turned-off.
	DisplayFeature *EmulationDisplayFeature `json:"displayFeature,omitempty"`

	// DevicePosture (deprecated) (experimental) (optional) If set, the posture of a foldable device. If not set the posture is set
	// to continuous.
	// Deprecated, use Emulation.setDevicePostureOverride.
	DevicePosture *EmulationDevicePosture `json:"devicePosture,omitempty"`
}

EmulationSetDeviceMetricsOverride Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and “device-width”/“device-height”-related CSS media query results).

(EmulationSetDeviceMetricsOverride) Call

1
func (m EmulationSetDeviceMetricsOverride) Call(c Client) error

Call sends the request.

(EmulationSetDeviceMetricsOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetDeviceMetricsOverride) ProtoReq() string

ProtoReq name.

type EmulationSetDevicePostureOverride <- 0.116.0

1
2
3
4
type EmulationSetDevicePostureOverride struct {
	// Posture ...
	Posture *EmulationDevicePosture `json:"posture"`
}

EmulationSetDevicePostureOverride (experimental) Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().

(EmulationSetDevicePostureOverride) Call <- 0.116.0

1
func (m EmulationSetDevicePostureOverride) Call(c Client) error

Call sends the request.

(EmulationSetDevicePostureOverride) ProtoReq <- 0.116.0

1
func (m EmulationSetDevicePostureOverride) ProtoReq() string

ProtoReq name.

type EmulationSetDisabledImageTypes <- 0.90.0

1
2
3
4
type EmulationSetDisabledImageTypes struct {
	// ImageTypes Image types to disable.
	ImageTypes []EmulationDisabledImageType `json:"imageTypes"`
}

EmulationSetDisabledImageTypes (experimental) …

(EmulationSetDisabledImageTypes) Call <- 0.90.0

1
func (m EmulationSetDisabledImageTypes) Call(c Client) error

Call sends the request.

(EmulationSetDisabledImageTypes) ProtoReq <- 0.90.0

1
func (m EmulationSetDisabledImageTypes) ProtoReq() string

ProtoReq name.

type EmulationSetDocumentCookieDisabled

1
2
3
4
type EmulationSetDocumentCookieDisabled struct {
	// Disabled Whether document.coookie API should be disabled.
	Disabled bool `json:"disabled"`
}

EmulationSetDocumentCookieDisabled (experimental) …

(EmulationSetDocumentCookieDisabled) Call

1
func (m EmulationSetDocumentCookieDisabled) Call(c Client) error

Call sends the request.

(EmulationSetDocumentCookieDisabled) ProtoReq <- 0.74.0

1
func (m EmulationSetDocumentCookieDisabled) ProtoReq() string

ProtoReq name.

type EmulationSetEmitTouchEventsForMouse

1
2
3
4
5
6
7
type EmulationSetEmitTouchEventsForMouse struct {
	// Enabled Whether touch emulation based on mouse input should be enabled.
	Enabled bool `json:"enabled"`

	// Configuration (optional) Touch/gesture events configuration. Default: current platform.
	Configuration EmulationSetEmitTouchEventsForMouseConfiguration `json:"configuration,omitempty"`
}

EmulationSetEmitTouchEventsForMouse (experimental) …

(EmulationSetEmitTouchEventsForMouse) Call

1
func (m EmulationSetEmitTouchEventsForMouse) Call(c Client) error

Call sends the request.

(EmulationSetEmitTouchEventsForMouse) ProtoReq <- 0.74.0

1
func (m EmulationSetEmitTouchEventsForMouse) ProtoReq() string

ProtoReq name.

type EmulationSetEmitTouchEventsForMouseConfiguration

1
type EmulationSetEmitTouchEventsForMouseConfiguration string

EmulationSetEmitTouchEventsForMouseConfiguration enum.

1
2
3
4
5
6
7
const (
	// EmulationSetEmitTouchEventsForMouseConfigurationMobile enum const.
	EmulationSetEmitTouchEventsForMouseConfigurationMobile EmulationSetEmitTouchEventsForMouseConfiguration = "mobile"

	// EmulationSetEmitTouchEventsForMouseConfigurationDesktop enum const.
	EmulationSetEmitTouchEventsForMouseConfigurationDesktop EmulationSetEmitTouchEventsForMouseConfiguration = "desktop"
)

type EmulationSetEmulatedMedia

1
2
3
4
5
6
7
type EmulationSetEmulatedMedia struct {
	// Media (optional) Media type to emulate. Empty string disables the override.
	Media string `json:"media,omitempty"`

	// Features (optional) Media features to emulate.
	Features []*EmulationMediaFeature `json:"features,omitempty"`
}

EmulationSetEmulatedMedia Emulates the given media type or media feature for CSS media queries.

(EmulationSetEmulatedMedia) Call

1
func (m EmulationSetEmulatedMedia) Call(c Client) error

Call sends the request.

(EmulationSetEmulatedMedia) ProtoReq <- 0.74.0

1
func (m EmulationSetEmulatedMedia) ProtoReq() string

ProtoReq name.

type EmulationSetEmulatedVisionDeficiency

1
2
3
4
5
type EmulationSetEmulatedVisionDeficiency struct {
	// Type Vision deficiency to emulate. Order: best-effort emulations come first, followed by any
	// physiologically accurate emulations for medically recognized color vision deficiencies.
	Type EmulationSetEmulatedVisionDeficiencyType `json:"type"`
}

EmulationSetEmulatedVisionDeficiency Emulates the given vision deficiency.

(EmulationSetEmulatedVisionDeficiency) Call

1
func (m EmulationSetEmulatedVisionDeficiency) Call(c Client) error

Call sends the request.

(EmulationSetEmulatedVisionDeficiency) ProtoReq <- 0.74.0

1
func (m EmulationSetEmulatedVisionDeficiency) ProtoReq() string

ProtoReq name.

type EmulationSetEmulatedVisionDeficiencyType

1
type EmulationSetEmulatedVisionDeficiencyType string

EmulationSetEmulatedVisionDeficiencyType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
const (
	// EmulationSetEmulatedVisionDeficiencyTypeNone enum const.
	EmulationSetEmulatedVisionDeficiencyTypeNone EmulationSetEmulatedVisionDeficiencyType = "none"

	// EmulationSetEmulatedVisionDeficiencyTypeBlurredVision enum const.
	EmulationSetEmulatedVisionDeficiencyTypeBlurredVision EmulationSetEmulatedVisionDeficiencyType = "blurredVision"

	// EmulationSetEmulatedVisionDeficiencyTypeReducedContrast enum const.
	EmulationSetEmulatedVisionDeficiencyTypeReducedContrast EmulationSetEmulatedVisionDeficiencyType = "reducedContrast"

	// EmulationSetEmulatedVisionDeficiencyTypeAchromatopsia enum const.
	EmulationSetEmulatedVisionDeficiencyTypeAchromatopsia EmulationSetEmulatedVisionDeficiencyType = "achromatopsia"

	// EmulationSetEmulatedVisionDeficiencyTypeDeuteranopia enum const.
	EmulationSetEmulatedVisionDeficiencyTypeDeuteranopia EmulationSetEmulatedVisionDeficiencyType = "deuteranopia"

	// EmulationSetEmulatedVisionDeficiencyTypeProtanopia enum const.
	EmulationSetEmulatedVisionDeficiencyTypeProtanopia EmulationSetEmulatedVisionDeficiencyType = "protanopia"

	// EmulationSetEmulatedVisionDeficiencyTypeTritanopia enum const.
	EmulationSetEmulatedVisionDeficiencyTypeTritanopia EmulationSetEmulatedVisionDeficiencyType = "tritanopia"
)

type EmulationSetFocusEmulationEnabled

1
2
3
4
type EmulationSetFocusEmulationEnabled struct {
	// Enabled Whether to enable to disable focus emulation.
	Enabled bool `json:"enabled"`
}

EmulationSetFocusEmulationEnabled (experimental) Enables or disables simulating a focused and active page.

(EmulationSetFocusEmulationEnabled) Call

1
func (m EmulationSetFocusEmulationEnabled) Call(c Client) error

Call sends the request.

(EmulationSetFocusEmulationEnabled) ProtoReq <- 0.74.0

1
func (m EmulationSetFocusEmulationEnabled) ProtoReq() string

ProtoReq name.

type EmulationSetGeolocationOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type EmulationSetGeolocationOverride struct {
	// Latitude (optional) Mock latitude
	Latitude *float64 `json:"latitude,omitempty"`

	// Longitude (optional) Mock longitude
	Longitude *float64 `json:"longitude,omitempty"`

	// Accuracy (optional) Mock accuracy
	Accuracy *float64 `json:"accuracy,omitempty"`
}

EmulationSetGeolocationOverride Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

(EmulationSetGeolocationOverride) Call

1
func (m EmulationSetGeolocationOverride) Call(c Client) error

Call sends the request.

(EmulationSetGeolocationOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetGeolocationOverride) ProtoReq() string

ProtoReq name.

type EmulationSetHardwareConcurrencyOverride <- 0.107.0

1
2
3
4
type EmulationSetHardwareConcurrencyOverride struct {
	// HardwareConcurrency Hardware concurrency to report
	HardwareConcurrency int `json:"hardwareConcurrency"`
}

EmulationSetHardwareConcurrencyOverride (experimental) …

(EmulationSetHardwareConcurrencyOverride) Call <- 0.107.0

1
func (m EmulationSetHardwareConcurrencyOverride) Call(c Client) error

Call sends the request.

(EmulationSetHardwareConcurrencyOverride) ProtoReq <- 0.107.0

1
func (m EmulationSetHardwareConcurrencyOverride) ProtoReq() string

ProtoReq name.

type EmulationSetIdleOverride <- 0.72.0

1
2
3
4
5
6
7
type EmulationSetIdleOverride struct {
	// IsUserActive Mock isUserActive
	IsUserActive bool `json:"isUserActive"`

	// IsScreenUnlocked Mock isScreenUnlocked
	IsScreenUnlocked bool `json:"isScreenUnlocked"`
}

EmulationSetIdleOverride Overrides the Idle state.

(EmulationSetIdleOverride) Call <- 0.72.0

1
func (m EmulationSetIdleOverride) Call(c Client) error

Call sends the request.

(EmulationSetIdleOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetIdleOverride) ProtoReq() string

ProtoReq name.

type EmulationSetLocaleOverride

1
2
3
4
5
type EmulationSetLocaleOverride struct {
	// Locale (optional) ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and
	// restores default host system locale.
	Locale string `json:"locale,omitempty"`
}

EmulationSetLocaleOverride (experimental) Overrides default host system locale with the specified one.

(EmulationSetLocaleOverride) Call

1
func (m EmulationSetLocaleOverride) Call(c Client) error

Call sends the request.

(EmulationSetLocaleOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetLocaleOverride) ProtoReq() string

ProtoReq name.

type EmulationSetNavigatorOverrides

1
2
3
4
type EmulationSetNavigatorOverrides struct {
	// Platform The platform navigator.platform should return.
	Platform string `json:"platform"`
}

EmulationSetNavigatorOverrides (deprecated) (experimental) Overrides value returned by the javascript navigator object.

(EmulationSetNavigatorOverrides) Call

1
func (m EmulationSetNavigatorOverrides) Call(c Client) error

Call sends the request.

(EmulationSetNavigatorOverrides) ProtoReq <- 0.74.0

1
func (m EmulationSetNavigatorOverrides) ProtoReq() string

ProtoReq name.

type EmulationSetPageScaleFactor

1
2
3
4
type EmulationSetPageScaleFactor struct {
	// PageScaleFactor Page scale factor.
	PageScaleFactor float64 `json:"pageScaleFactor"`
}

EmulationSetPageScaleFactor (experimental) Sets a specified page scale factor.

(EmulationSetPageScaleFactor) Call

1
func (m EmulationSetPageScaleFactor) Call(c Client) error

Call sends the request.

(EmulationSetPageScaleFactor) ProtoReq <- 0.74.0

1
func (m EmulationSetPageScaleFactor) ProtoReq() string

ProtoReq name.

type EmulationSetScriptExecutionDisabled

1
2
3
4
type EmulationSetScriptExecutionDisabled struct {
	// Value Whether script execution should be disabled in the page.
	Value bool `json:"value"`
}

EmulationSetScriptExecutionDisabled Switches script execution in the page.

(EmulationSetScriptExecutionDisabled) Call

1
func (m EmulationSetScriptExecutionDisabled) Call(c Client) error

Call sends the request.

(EmulationSetScriptExecutionDisabled) ProtoReq <- 0.74.0

1
func (m EmulationSetScriptExecutionDisabled) ProtoReq() string

ProtoReq name.

type EmulationSetScrollbarsHidden

1
2
3
4
type EmulationSetScrollbarsHidden struct {
	// Hidden Whether scrollbars should be always hidden.
	Hidden bool `json:"hidden"`
}

EmulationSetScrollbarsHidden (experimental) …

(EmulationSetScrollbarsHidden) Call

1
func (m EmulationSetScrollbarsHidden) Call(c Client) error

Call sends the request.

(EmulationSetScrollbarsHidden) ProtoReq <- 0.74.0

1
func (m EmulationSetScrollbarsHidden) ProtoReq() string

ProtoReq name.

type EmulationSetSensorOverrideEnabled <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type EmulationSetSensorOverrideEnabled struct {
	// Enabled ...
	Enabled bool `json:"enabled"`

	// Type ...
	Type EmulationSensorType `json:"type"`

	// Metadata (optional) ...
	Metadata *EmulationSensorMetadata `json:"metadata,omitempty"`
}

EmulationSetSensorOverrideEnabled (experimental) Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead.

(EmulationSetSensorOverrideEnabled) Call <- 0.115.0

1
func (m EmulationSetSensorOverrideEnabled) Call(c Client) error

Call sends the request.

(EmulationSetSensorOverrideEnabled) ProtoReq <- 0.115.0

1
func (m EmulationSetSensorOverrideEnabled) ProtoReq() string

ProtoReq name.

type EmulationSetSensorOverrideReadings <- 0.115.0

1
2
3
4
5
6
7
type EmulationSetSensorOverrideReadings struct {
	// Type ...
	Type EmulationSensorType `json:"type"`

	// Reading ...
	Reading *EmulationSensorReading `json:"reading"`
}

EmulationSetSensorOverrideReadings (experimental) Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.

(EmulationSetSensorOverrideReadings) Call <- 0.115.0

1
func (m EmulationSetSensorOverrideReadings) Call(c Client) error

Call sends the request.

(EmulationSetSensorOverrideReadings) ProtoReq <- 0.115.0

1
func (m EmulationSetSensorOverrideReadings) ProtoReq() string

ProtoReq name.

type EmulationSetTimezoneOverride

1
2
3
4
5
6
type EmulationSetTimezoneOverride struct {
	// TimezoneID The timezone identifier. List of supported timezones:
	// https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt
	// If empty, disables the override and restores default host system timezone.
	TimezoneID string `json:"timezoneId"`
}

EmulationSetTimezoneOverride Overrides default host system timezone with the specified one.

(EmulationSetTimezoneOverride) Call

1
func (m EmulationSetTimezoneOverride) Call(c Client) error

Call sends the request.

(EmulationSetTimezoneOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetTimezoneOverride) ProtoReq() string

ProtoReq name.

type EmulationSetTouchEmulationEnabled

1
2
3
4
5
6
7
type EmulationSetTouchEmulationEnabled struct {
	// Enabled Whether the touch event emulation should be enabled.
	Enabled bool `json:"enabled"`

	// MaxTouchPoints (optional) Maximum touch points supported. Defaults to one.
	MaxTouchPoints *int `json:"maxTouchPoints,omitempty"`
}

EmulationSetTouchEmulationEnabled Enables touch on platforms which do not support them.

(EmulationSetTouchEmulationEnabled) Call

1
func (m EmulationSetTouchEmulationEnabled) Call(c Client) error

Call sends the request.

(EmulationSetTouchEmulationEnabled) ProtoReq <- 0.74.0

1
func (m EmulationSetTouchEmulationEnabled) ProtoReq() string

ProtoReq name.

type EmulationSetUserAgentOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type EmulationSetUserAgentOverride struct {
	// UserAgent User agent to use.
	UserAgent string `json:"userAgent"`

	// AcceptLanguage (optional) Browser language to emulate.
	AcceptLanguage string `json:"acceptLanguage,omitempty"`

	// Platform (optional) The platform navigator.platform should return.
	Platform string `json:"platform,omitempty"`

	// UserAgentMetadata (experimental) (optional) To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
	UserAgentMetadata *EmulationUserAgentMetadata `json:"userAgentMetadata,omitempty"`
}

EmulationSetUserAgentOverride Allows overriding user agent with the given string. userAgentMetadata must be set for Client Hint headers to be sent.

(EmulationSetUserAgentOverride) Call

1
func (m EmulationSetUserAgentOverride) Call(c Client) error

Call sends the request.

(EmulationSetUserAgentOverride) ProtoReq <- 0.74.0

1
func (m EmulationSetUserAgentOverride) ProtoReq() string

ProtoReq name.

type EmulationSetVirtualTimePolicy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type EmulationSetVirtualTimePolicy struct {
	// Policy ...
	Policy EmulationVirtualTimePolicy `json:"policy"`

	// Budget (optional) If set, after this many virtual milliseconds have elapsed virtual time will be paused and a
	// virtualTimeBudgetExpired event is sent.
	Budget *float64 `json:"budget,omitempty"`

	// MaxVirtualTimeTaskStarvationCount (optional) If set this specifies the maximum number of tasks that can be run before virtual is forced
	// forwards to prevent deadlock.
	MaxVirtualTimeTaskStarvationCount *int `json:"maxVirtualTimeTaskStarvationCount,omitempty"`

	// InitialVirtualTime (optional) If set, base::Time::Now will be overridden to initially return this value.
	InitialVirtualTime TimeSinceEpoch `json:"initialVirtualTime,omitempty"`
}

EmulationSetVirtualTimePolicy (experimental) Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.

(EmulationSetVirtualTimePolicy) Call

1
func (m EmulationSetVirtualTimePolicy) Call(c Client) (*EmulationSetVirtualTimePolicyResult, error)

Call the request.

(EmulationSetVirtualTimePolicy) ProtoReq <- 0.74.0

1
func (m EmulationSetVirtualTimePolicy) ProtoReq() string

ProtoReq name.

type EmulationSetVirtualTimePolicyResult

1
2
3
4
type EmulationSetVirtualTimePolicyResult struct {
	// VirtualTimeTicksBase Absolute timestamp at which virtual time was first enabled (up time in milliseconds).
	VirtualTimeTicksBase float64 `json:"virtualTimeTicksBase"`
}

EmulationSetVirtualTimePolicyResult (experimental) …

type EmulationSetVisibleSize

1
2
3
4
5
6
7
type EmulationSetVisibleSize struct {
	// Width Frame width (DIP).
	Width int `json:"width"`

	// Height Frame height (DIP).
	Height int `json:"height"`
}

EmulationSetVisibleSize (deprecated) (experimental) Resizes the frame/viewport of the page. Note that this does not affect the frame’s container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

(EmulationSetVisibleSize) Call

1
func (m EmulationSetVisibleSize) Call(c Client) error

Call sends the request.

(EmulationSetVisibleSize) ProtoReq <- 0.74.0

1
func (m EmulationSetVisibleSize) ProtoReq() string

ProtoReq name.

type EmulationUserAgentBrandVersion <- 0.48.0

1
2
3
4
5
6
7
type EmulationUserAgentBrandVersion struct {
	// Brand ...
	Brand string `json:"brand"`

	// Version ...
	Version string `json:"version"`
}

EmulationUserAgentBrandVersion (experimental) Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints

type EmulationUserAgentMetadata <- 0.48.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type EmulationUserAgentMetadata struct {
	// Brands (optional) Brands appearing in Sec-CH-UA.
	Brands []*EmulationUserAgentBrandVersion `json:"brands,omitempty"`

	// FullVersionList (optional) Brands appearing in Sec-CH-UA-Full-Version-List.
	FullVersionList []*EmulationUserAgentBrandVersion `json:"fullVersionList,omitempty"`

	// FullVersion (deprecated) (optional) ...
	FullVersion string `json:"fullVersion,omitempty"`

	// Platform ...
	Platform string `json:"platform"`

	// PlatformVersion ...
	PlatformVersion string `json:"platformVersion"`

	// Architecture ...
	Architecture string `json:"architecture"`

	// Model ...
	Model string `json:"model"`

	// Mobile ...
	Mobile bool `json:"mobile"`

	// Bitness (optional) ...
	Bitness string `json:"bitness,omitempty"`

	// Wow64 (optional) ...
	Wow64 bool `json:"wow64,omitempty"`
}

EmulationUserAgentMetadata (experimental) Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.

type EmulationVirtualTimeBudgetExpired

1
type EmulationVirtualTimeBudgetExpired struct{}

EmulationVirtualTimeBudgetExpired (experimental) Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.

(EmulationVirtualTimeBudgetExpired) ProtoEvent <- 0.72.0

1
func (evt EmulationVirtualTimeBudgetExpired) ProtoEvent() string

ProtoEvent name.

type EmulationVirtualTimePolicy

1
type EmulationVirtualTimePolicy string

EmulationVirtualTimePolicy (experimental) advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// EmulationVirtualTimePolicyAdvance enum const.
	EmulationVirtualTimePolicyAdvance EmulationVirtualTimePolicy = "advance"

	// EmulationVirtualTimePolicyPause enum const.
	EmulationVirtualTimePolicyPause EmulationVirtualTimePolicy = "pause"

	// EmulationVirtualTimePolicyPauseIfNetworkFetchesPending enum const.
	EmulationVirtualTimePolicyPauseIfNetworkFetchesPending EmulationVirtualTimePolicy = "pauseIfNetworkFetchesPending"
)

type Event <- 0.72.0

1
2
3
4
type Event interface {
	// ProtoEvent returns the cdp.Event.Method
	ProtoEvent() string
}

Event represents a cdp.Event.Params.

type EventBreakpointsDisable <- 0.115.0

1
type EventBreakpointsDisable struct{}

EventBreakpointsDisable Removes all breakpoints.

(EventBreakpointsDisable) Call <- 0.115.0

1
func (m EventBreakpointsDisable) Call(c Client) error

Call sends the request.

(EventBreakpointsDisable) ProtoReq <- 0.115.0

1
func (m EventBreakpointsDisable) ProtoReq() string

ProtoReq name.

type EventBreakpointsRemoveInstrumentationBreakpoint <- 0.102.0

1
2
3
4
type EventBreakpointsRemoveInstrumentationBreakpoint struct {
	// EventName Instrumentation name to stop on.
	EventName string `json:"eventName"`
}

EventBreakpointsRemoveInstrumentationBreakpoint Removes breakpoint on particular native event.

(EventBreakpointsRemoveInstrumentationBreakpoint) Call <- 0.102.0

1
func (m EventBreakpointsRemoveInstrumentationBreakpoint) Call(c Client) error

Call sends the request.

(EventBreakpointsRemoveInstrumentationBreakpoint) ProtoReq <- 0.102.0

1
func (m EventBreakpointsRemoveInstrumentationBreakpoint) ProtoReq() string

ProtoReq name.

type EventBreakpointsSetInstrumentationBreakpoint <- 0.102.0

1
2
3
4
type EventBreakpointsSetInstrumentationBreakpoint struct {
	// EventName Instrumentation name to stop on.
	EventName string `json:"eventName"`
}

EventBreakpointsSetInstrumentationBreakpoint Sets breakpoint on particular native event.

(EventBreakpointsSetInstrumentationBreakpoint) Call <- 0.102.0

1
func (m EventBreakpointsSetInstrumentationBreakpoint) Call(c Client) error

Call sends the request.

(EventBreakpointsSetInstrumentationBreakpoint) ProtoReq <- 0.102.0

1
func (m EventBreakpointsSetInstrumentationBreakpoint) ProtoReq() string

ProtoReq name.

type ExtensionsLoadUnpacked <- 0.116.0

1
2
3
4
type ExtensionsLoadUnpacked struct {
	// Path Absolute file path.
	Path string `json:"path"`
}

ExtensionsLoadUnpacked Installs an unpacked extension from the filesystem similar to –load-extension CLI flags. Returns extension ID once the extension has been installed.

(ExtensionsLoadUnpacked) Call <- 0.116.0

1
func (m ExtensionsLoadUnpacked) Call(c Client) (*ExtensionsLoadUnpackedResult, error)

Call the request.

(ExtensionsLoadUnpacked) ProtoReq <- 0.116.0

1
func (m ExtensionsLoadUnpacked) ProtoReq() string

ProtoReq name.

type ExtensionsLoadUnpackedResult <- 0.116.0

1
2
3
4
type ExtensionsLoadUnpackedResult struct {
	// ID Extension id.
	ID string `json:"id"`
}

ExtensionsLoadUnpackedResult …

type FedCmAccount <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type FedCmAccount struct {
	// AccountID ...
	AccountID string `json:"accountId"`

	// Email ...
	Email string `json:"email"`

	// Name ...
	Name string `json:"name"`

	// GivenName ...
	GivenName string `json:"givenName"`

	// PictureURL ...
	PictureURL string `json:"pictureUrl"`

	// IdpConfigURL ...
	IdpConfigURL string `json:"idpConfigUrl"`

	// IdpLoginURL ...
	IdpLoginURL string `json:"idpLoginUrl"`

	// LoginState ...
	LoginState FedCmLoginState `json:"loginState"`

	// TermsOfServiceURL (optional) These two are only set if the loginState is signUp
	TermsOfServiceURL string `json:"termsOfServiceUrl,omitempty"`

	// PrivacyPolicyURL (optional) ...
	PrivacyPolicyURL string `json:"privacyPolicyUrl,omitempty"`
}

FedCmAccount Corresponds to IdentityRequestAccount.

type FedCmAccountURLType <- 0.115.0

1
type FedCmAccountURLType string

FedCmAccountURLType The URLs that each account has.

1
2
3
4
5
6
7
const (
	// FedCmAccountURLTypeTermsOfService enum const.
	FedCmAccountURLTypeTermsOfService FedCmAccountURLType = "TermsOfService"

	// FedCmAccountURLTypePrivacyPolicy enum const.
	FedCmAccountURLTypePrivacyPolicy FedCmAccountURLType = "PrivacyPolicy"
)

type FedCmClickDialogButton <- 0.115.0

1
2
3
4
5
6
7
type FedCmClickDialogButton struct {
	// DialogID ...
	DialogID string `json:"dialogId"`

	// DialogButton ...
	DialogButton FedCmDialogButton `json:"dialogButton"`
}

FedCmClickDialogButton …

(FedCmClickDialogButton) Call <- 0.115.0

1
func (m FedCmClickDialogButton) Call(c Client) error

Call sends the request.

(FedCmClickDialogButton) ProtoReq <- 0.115.0

1
func (m FedCmClickDialogButton) ProtoReq() string

ProtoReq name.

type FedCmDialogButton <- 0.115.0

1
type FedCmDialogButton string

FedCmDialogButton The buttons on the FedCM dialog.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// FedCmDialogButtonConfirmIdpLoginContinue enum const.
	FedCmDialogButtonConfirmIdpLoginContinue FedCmDialogButton = "ConfirmIdpLoginContinue"

	// FedCmDialogButtonErrorGotIt enum const.
	FedCmDialogButtonErrorGotIt FedCmDialogButton = "ErrorGotIt"

	// FedCmDialogButtonErrorMoreDetails enum const.
	FedCmDialogButtonErrorMoreDetails FedCmDialogButton = "ErrorMoreDetails"
)

type FedCmDialogClosed <- 0.115.0

1
2
3
4
type FedCmDialogClosed struct {
	// DialogID ...
	DialogID string `json:"dialogId"`
}

FedCmDialogClosed Triggered when a dialog is closed, either by user action, JS abort, or a command below.

(FedCmDialogClosed) ProtoEvent <- 0.115.0

1
func (evt FedCmDialogClosed) ProtoEvent() string

ProtoEvent name.

type FedCmDialogShown <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type FedCmDialogShown struct {
	// DialogID ...
	DialogID string `json:"dialogId"`

	// DialogType ...
	DialogType FedCmDialogType `json:"dialogType"`

	// Accounts ...
	Accounts []*FedCmAccount `json:"accounts"`

	// Title These exist primarily so that the caller can verify the
	// RP context was used appropriately.
	Title string `json:"title"`

	// Subtitle (optional) ...
	Subtitle string `json:"subtitle,omitempty"`
}

FedCmDialogShown …

(FedCmDialogShown) ProtoEvent <- 0.112.9

1
func (evt FedCmDialogShown) ProtoEvent() string

ProtoEvent name.

type FedCmDialogType <- 0.115.0

1
type FedCmDialogType string

FedCmDialogType The types of FedCM dialogs.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// FedCmDialogTypeAccountChooser enum const.
	FedCmDialogTypeAccountChooser FedCmDialogType = "AccountChooser"

	// FedCmDialogTypeAutoReauthn enum const.
	FedCmDialogTypeAutoReauthn FedCmDialogType = "AutoReauthn"

	// FedCmDialogTypeConfirmIdpLogin enum const.
	FedCmDialogTypeConfirmIdpLogin FedCmDialogType = "ConfirmIdpLogin"

	// FedCmDialogTypeError enum const.
	FedCmDialogTypeError FedCmDialogType = "Error"
)

type FedCmDisable <- 0.112.9

1
type FedCmDisable struct{}

FedCmDisable …

(FedCmDisable) Call <- 0.112.9

1
func (m FedCmDisable) Call(c Client) error

Call sends the request.

(FedCmDisable) ProtoReq <- 0.112.9

1
func (m FedCmDisable) ProtoReq() string

ProtoReq name.

type FedCmDismissDialog <- 0.112.9

1
2
3
4
5
6
7
type FedCmDismissDialog struct {
	// DialogID ...
	DialogID string `json:"dialogId"`

	// TriggerCooldown (optional) ...
	TriggerCooldown bool `json:"triggerCooldown,omitempty"`
}

FedCmDismissDialog …

(FedCmDismissDialog) Call <- 0.112.9

1
func (m FedCmDismissDialog) Call(c Client) error

Call sends the request.

(FedCmDismissDialog) ProtoReq <- 0.112.9

1
func (m FedCmDismissDialog) ProtoReq() string

ProtoReq name.

type FedCmEnable <- 0.112.9

1
2
3
4
5
6
type FedCmEnable struct {
	// DisableRejectionDelay (optional) Allows callers to disable the promise rejection delay that would
	// normally happen, if this is unimportant to what's being tested.
	// (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
	DisableRejectionDelay bool `json:"disableRejectionDelay,omitempty"`
}

FedCmEnable …

(FedCmEnable) Call <- 0.112.9

1
func (m FedCmEnable) Call(c Client) error

Call sends the request.

(FedCmEnable) ProtoReq <- 0.112.9

1
func (m FedCmEnable) ProtoReq() string

ProtoReq name.

type FedCmLoginState <- 0.112.9

1
type FedCmLoginState string

FedCmLoginState Whether this is a sign-up or sign-in action for this account, i.e. whether this account has ever been used to sign in to this RP before.

1
2
3
4
5
6
7
const (
	// FedCmLoginStateSignIn enum const.
	FedCmLoginStateSignIn FedCmLoginState = "SignIn"

	// FedCmLoginStateSignUp enum const.
	FedCmLoginStateSignUp FedCmLoginState = "SignUp"
)

type FedCmOpenURL <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type FedCmOpenURL struct {
	// DialogID ...
	DialogID string `json:"dialogId"`

	// AccountIndex ...
	AccountIndex int `json:"accountIndex"`

	// AccountURLType ...
	AccountURLType FedCmAccountURLType `json:"accountUrlType"`
}

FedCmOpenURL …

(FedCmOpenURL) Call <- 0.115.0

1
func (m FedCmOpenURL) Call(c Client) error

Call sends the request.

(FedCmOpenURL) ProtoReq <- 0.115.0

1
func (m FedCmOpenURL) ProtoReq() string

ProtoReq name.

type FedCmResetCooldown <- 0.112.9

1
type FedCmResetCooldown struct{}

FedCmResetCooldown Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user.

(FedCmResetCooldown) Call <- 0.112.9

1
func (m FedCmResetCooldown) Call(c Client) error

Call sends the request.

(FedCmResetCooldown) ProtoReq <- 0.112.9

1
func (m FedCmResetCooldown) ProtoReq() string

ProtoReq name.

type FedCmSelectAccount <- 0.112.9

1
2
3
4
5
6
7
type FedCmSelectAccount struct {
	// DialogID ...
	DialogID string `json:"dialogId"`

	// AccountIndex ...
	AccountIndex int `json:"accountIndex"`
}

FedCmSelectAccount …

(FedCmSelectAccount) Call <- 0.112.9

1
func (m FedCmSelectAccount) Call(c Client) error

Call sends the request.

(FedCmSelectAccount) ProtoReq <- 0.112.9

1
func (m FedCmSelectAccount) ProtoReq() string

ProtoReq name.

type FetchAuthChallenge

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type FetchAuthChallenge struct {
	// Source (optional) Source of the authentication challenge.
	Source FetchAuthChallengeSource `json:"source,omitempty"`

	// Origin of the challenger.
	Origin string `json:"origin"`

	// Scheme The authentication scheme used, such as basic or digest
	Scheme string `json:"scheme"`

	// Realm The realm of the challenge. May be empty.
	Realm string `json:"realm"`
}

FetchAuthChallenge Authorization challenge for HTTP status code 401 or 407.

type FetchAuthChallengeResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type FetchAuthChallengeResponse struct {
	// Response The decision on what to do in response to the authorization challenge.  Default means
	// deferring to the default behavior of the net stack, which will likely either the Cancel
	// authentication or display a popup dialog box.
	Response FetchAuthChallengeResponseResponse `json:"response"`

	// Username (optional) The username to provide, possibly empty. Should only be set if response is
	// ProvideCredentials.
	Username string `json:"username,omitempty"`

	// Password (optional) The password to provide, possibly empty. Should only be set if response is
	// ProvideCredentials.
	Password string `json:"password,omitempty"`
}

FetchAuthChallengeResponse Response to an AuthChallenge.

type FetchAuthChallengeResponseResponse

1
type FetchAuthChallengeResponseResponse string

FetchAuthChallengeResponseResponse enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// FetchAuthChallengeResponseResponseDefault enum const.
	FetchAuthChallengeResponseResponseDefault FetchAuthChallengeResponseResponse = "Default"

	// FetchAuthChallengeResponseResponseCancelAuth enum const.
	FetchAuthChallengeResponseResponseCancelAuth FetchAuthChallengeResponseResponse = "CancelAuth"

	// FetchAuthChallengeResponseResponseProvideCredentials enum const.
	FetchAuthChallengeResponseResponseProvideCredentials FetchAuthChallengeResponseResponse = "ProvideCredentials"
)

type FetchAuthChallengeSource

1
type FetchAuthChallengeSource string

FetchAuthChallengeSource enum.

1
2
3
4
5
6
7
const (
	// FetchAuthChallengeSourceServer enum const.
	FetchAuthChallengeSourceServer FetchAuthChallengeSource = "Server"

	// FetchAuthChallengeSourceProxy enum const.
	FetchAuthChallengeSourceProxy FetchAuthChallengeSource = "Proxy"
)

type FetchAuthRequired

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type FetchAuthRequired struct {
	// RequestID Each request the page makes will have a unique id.
	RequestID FetchRequestID `json:"requestId"`

	// Request The details of the request.
	Request *NetworkRequest `json:"request"`

	// FrameID The id of the frame that initiated the request.
	FrameID PageFrameID `json:"frameId"`

	// ResourceType How the requested resource will be used.
	ResourceType NetworkResourceType `json:"resourceType"`

	// AuthChallenge Details of the Authorization Challenge encountered.
	// If this is set, client should respond with continueRequest that
	// contains AuthChallengeResponse.
	AuthChallenge *FetchAuthChallenge `json:"authChallenge"`
}

FetchAuthRequired Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.

(FetchAuthRequired) ProtoEvent <- 0.72.0

1
func (evt FetchAuthRequired) ProtoEvent() string

ProtoEvent name.

type FetchContinueRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
type FetchContinueRequest struct {
	// RequestID An id the client received in requestPaused event.
	RequestID FetchRequestID `json:"requestId"`

	// URL (optional) If set, the request url will be modified in a way that's not observable by page.
	URL string `json:"url,omitempty"`

	// Method (optional) If set, the request method is overridden.
	Method string `json:"method,omitempty"`

	// PostData (optional) If set, overrides the post data in the request.
	PostData []byte `json:"postData,omitempty"`

	// Headers (optional) If set, overrides the request headers. Note that the overrides do not
	// extend to subsequent redirect hops, if a redirect happens. Another override
	// may be applied to a different request produced by a redirect.
	Headers []*FetchHeaderEntry `json:"headers,omitempty"`

	// InterceptResponse (experimental) (optional) If set, overrides response interception behavior for this request.
	InterceptResponse bool `json:"interceptResponse,omitempty"`
}

FetchContinueRequest Continues the request, optionally modifying some of its parameters.

(FetchContinueRequest) Call

1
func (m FetchContinueRequest) Call(c Client) error

Call sends the request.

(FetchContinueRequest) ProtoReq <- 0.74.0

1
func (m FetchContinueRequest) ProtoReq() string

ProtoReq name.

type FetchContinueResponse <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type FetchContinueResponse struct {
	// RequestID An id the client received in requestPaused event.
	RequestID FetchRequestID `json:"requestId"`

	// ResponseCode (optional) An HTTP response code. If absent, original response code will be used.
	ResponseCode *int `json:"responseCode,omitempty"`

	// ResponsePhrase (optional) A textual representation of responseCode.
	// If absent, a standard phrase matching responseCode is used.
	ResponsePhrase string `json:"responsePhrase,omitempty"`

	// ResponseHeaders (optional) Response headers. If absent, original response headers will be used.
	ResponseHeaders []*FetchHeaderEntry `json:"responseHeaders,omitempty"`

	// BinaryResponseHeaders (optional) Alternative way of specifying response headers as a \0-separated
	// series of name: value pairs. Prefer the above method unless you
	// need to represent some non-UTF8 values that can't be transmitted
	// over the protocol as text.
	BinaryResponseHeaders []byte `json:"binaryResponseHeaders,omitempty"`
}

FetchContinueResponse (experimental) Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.

(FetchContinueResponse) Call <- 0.102.0

1
func (m FetchContinueResponse) Call(c Client) error

Call sends the request.

(FetchContinueResponse) ProtoReq <- 0.102.0

1
func (m FetchContinueResponse) ProtoReq() string

ProtoReq name.

type FetchContinueWithAuth

1
2
3
4
5
6
7
type FetchContinueWithAuth struct {
	// RequestID An id the client received in authRequired event.
	RequestID FetchRequestID `json:"requestId"`

	// AuthChallengeResponse Response to  with an authChallenge.
	AuthChallengeResponse *FetchAuthChallengeResponse `json:"authChallengeResponse"`
}

FetchContinueWithAuth Continues a request supplying authChallengeResponse following authRequired event.

(FetchContinueWithAuth) Call

1
func (m FetchContinueWithAuth) Call(c Client) error

Call sends the request.

(FetchContinueWithAuth) ProtoReq <- 0.74.0

1
func (m FetchContinueWithAuth) ProtoReq() string

ProtoReq name.

type FetchDisable

1
type FetchDisable struct{}

FetchDisable Disables the fetch domain.

(FetchDisable) Call

1
func (m FetchDisable) Call(c Client) error

Call sends the request.

(FetchDisable) ProtoReq <- 0.74.0

1
func (m FetchDisable) ProtoReq() string

ProtoReq name.

type FetchEnable

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type FetchEnable struct {
	// Patterns (optional) If specified, only requests matching any of these patterns will produce
	// fetchRequested event and will be paused until clients response. If not set,
	// all requests will be affected.
	Patterns []*FetchRequestPattern `json:"patterns,omitempty"`

	// HandleAuthRequests (optional) If true, authRequired events will be issued and requests will be paused
	// expecting a call to continueWithAuth.
	HandleAuthRequests bool `json:"handleAuthRequests,omitempty"`
}

FetchEnable Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.

(FetchEnable) Call

1
func (m FetchEnable) Call(c Client) error

Call sends the request.

(FetchEnable) ProtoReq <- 0.74.0

1
func (m FetchEnable) ProtoReq() string

ProtoReq name.

type FetchFailRequest

1
2
3
4
5
6
7
type FetchFailRequest struct {
	// RequestID An id the client received in requestPaused event.
	RequestID FetchRequestID `json:"requestId"`

	// ErrorReason Causes the request to fail with the given reason.
	ErrorReason NetworkErrorReason `json:"errorReason"`
}

FetchFailRequest Causes the request to fail with specified reason.

(FetchFailRequest) Call

1
func (m FetchFailRequest) Call(c Client) error

Call sends the request.

(FetchFailRequest) ProtoReq <- 0.74.0

1
func (m FetchFailRequest) ProtoReq() string

ProtoReq name.

type FetchFulfillRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type FetchFulfillRequest struct {
	// RequestID An id the client received in requestPaused event.
	RequestID FetchRequestID `json:"requestId"`

	// ResponseCode An HTTP response code.
	ResponseCode int `json:"responseCode"`

	// ResponseHeaders (optional) Response headers.
	ResponseHeaders []*FetchHeaderEntry `json:"responseHeaders,omitempty"`

	// BinaryResponseHeaders (optional) Alternative way of specifying response headers as a \0-separated
	// series of name: value pairs. Prefer the above method unless you
	// need to represent some non-UTF8 values that can't be transmitted
	// over the protocol as text.
	BinaryResponseHeaders []byte `json:"binaryResponseHeaders,omitempty"`

	// Body A response body. If absent, original response body will be used if
	// the request is intercepted at the response stage and empty body
	// will be used if the request is intercepted at the request stage.
	Body []byte `json:"body"`

	// ResponsePhrase (optional) A textual representation of responseCode.
	// If absent, a standard phrase matching responseCode is used.
	ResponsePhrase string `json:"responsePhrase,omitempty"`
}

FetchFulfillRequest Provides response to the request.

(FetchFulfillRequest) Call

1
func (m FetchFulfillRequest) Call(c Client) error

Call sends the request.

(FetchFulfillRequest) ProtoReq <- 0.74.0

1
func (m FetchFulfillRequest) ProtoReq() string

ProtoReq name.

type FetchGetResponseBody

1
2
3
4
type FetchGetResponseBody struct {
	// RequestID Identifier for the intercepted request to get body for.
	RequestID FetchRequestID `json:"requestId"`
}

FetchGetResponseBody Causes the body of the response to be received from the server and returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior. Note that the response body is not available for redirects. Requests paused in the redirect received state may be differentiated by responseCode and presence of location response header, see comments to requestPaused for details.

(FetchGetResponseBody) Call

1
func (m FetchGetResponseBody) Call(c Client) (*FetchGetResponseBodyResult, error)

Call the request.

(FetchGetResponseBody) ProtoReq <- 0.74.0

1
func (m FetchGetResponseBody) ProtoReq() string

ProtoReq name.

type FetchGetResponseBodyResult

1
2
3
4
5
6
7
type FetchGetResponseBodyResult struct {
	// Body Response body.
	Body string `json:"body"`

	// Base64Encoded True, if content was sent as base64.
	Base64Encoded bool `json:"base64Encoded"`
}

FetchGetResponseBodyResult …

type FetchHeaderEntry

1
2
3
4
5
6
7
type FetchHeaderEntry struct {
	// Name ...
	Name string `json:"name"`

	// Value ...
	Value string `json:"value"`
}

FetchHeaderEntry Response HTTP header entry.

type FetchRequestID

1
type FetchRequestID string

FetchRequestID Unique request identifier.

type FetchRequestPattern

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type FetchRequestPattern struct {
	// URLPattern (optional) Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is
	// backslash. Omitting is equivalent to `"*"`.
	URLPattern string `json:"urlPattern,omitempty"`

	// ResourceType (optional) If set, only requests for matching resource types will be intercepted.
	ResourceType NetworkResourceType `json:"resourceType,omitempty"`

	// RequestStage (optional) Stage at which to begin intercepting requests. Default is Request.
	RequestStage FetchRequestStage `json:"requestStage,omitempty"`
}

FetchRequestPattern …

type FetchRequestPaused

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
type FetchRequestPaused struct {
	// RequestID Each request the page makes will have a unique id.
	RequestID FetchRequestID `json:"requestId"`

	// Request The details of the request.
	Request *NetworkRequest `json:"request"`

	// FrameID The id of the frame that initiated the request.
	FrameID PageFrameID `json:"frameId"`

	// ResourceType How the requested resource will be used.
	ResourceType NetworkResourceType `json:"resourceType"`

	// ResponseErrorReason (optional) Response error if intercepted at response stage.
	ResponseErrorReason NetworkErrorReason `json:"responseErrorReason,omitempty"`

	// ResponseStatusCode (optional) Response code if intercepted at response stage.
	ResponseStatusCode *int `json:"responseStatusCode,omitempty"`

	// ResponseStatusText (optional) Response status text if intercepted at response stage.
	ResponseStatusText string `json:"responseStatusText,omitempty"`

	// ResponseHeaders (optional) Response headers if intercepted at the response stage.
	ResponseHeaders []*FetchHeaderEntry `json:"responseHeaders,omitempty"`

	// NetworkID (optional) If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,
	// then this networkId will be the same as the requestId present in the requestWillBeSent event.
	NetworkID NetworkRequestID `json:"networkId,omitempty"`

	// RedirectedRequestID (experimental) (optional) If the request is due to a redirect response from the server, the id of the request that
	// has caused the redirect.
	RedirectedRequestID FetchRequestID `json:"redirectedRequestId,omitempty"`
}

FetchRequestPaused Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode – the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set.

(FetchRequestPaused) ProtoEvent <- 0.72.0

1
func (evt FetchRequestPaused) ProtoEvent() string

ProtoEvent name.

type FetchRequestStage

1
type FetchRequestStage string

FetchRequestStage Stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received).

1
2
3
4
5
6
7
const (
	// FetchRequestStageRequest enum const.
	FetchRequestStageRequest FetchRequestStage = "Request"

	// FetchRequestStageResponse enum const.
	FetchRequestStageResponse FetchRequestStage = "Response"
)

type FetchTakeResponseBodyAsStream

1
2
3
4
type FetchTakeResponseBodyAsStream struct {
	// RequestID ...
	RequestID FetchRequestID `json:"requestId"`
}

FetchTakeResponseBodyAsStream Returns a handle to the stream representing the response body. The request must be paused in the HeadersReceived stage. Note that after this command the request can’t be continued as is – client either needs to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. This method is mutually exclusive with getResponseBody. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior.

(FetchTakeResponseBodyAsStream) Call

1
func (m FetchTakeResponseBodyAsStream) Call(c Client) (*FetchTakeResponseBodyAsStreamResult, error)

Call the request.

(FetchTakeResponseBodyAsStream) ProtoReq <- 0.74.0

1
func (m FetchTakeResponseBodyAsStream) ProtoReq() string

ProtoReq name.

type FetchTakeResponseBodyAsStreamResult

1
2
3
4
type FetchTakeResponseBodyAsStreamResult struct {
	// Stream ...
	Stream IOStreamHandle `json:"stream"`
}

FetchTakeResponseBodyAsStreamResult …

type HeadlessExperimentalBeginFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type HeadlessExperimentalBeginFrame struct {
	// FrameTimeTicks (optional) Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,
	// the current time will be used.
	FrameTimeTicks *float64 `json:"frameTimeTicks,omitempty"`

	// Interval (optional) The interval between BeginFrames that is reported to the compositor, in milliseconds.
	// Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.
	Interval *float64 `json:"interval,omitempty"`

	// NoDisplayUpdates (optional) Whether updates should not be committed and drawn onto the display. False by default. If
	// true, only side effects of the BeginFrame will be run, such as layout and animations, but
	// any visual updates may not be visible on the display or in screenshots.
	NoDisplayUpdates bool `json:"noDisplayUpdates,omitempty"`

	// Screenshot (optional) If set, a screenshot of the frame will be captured and returned in the response. Otherwise,
	// no screenshot will be captured. Note that capturing a screenshot can fail, for example,
	// during renderer initialization. In such a case, no screenshot data will be returned.
	Screenshot *HeadlessExperimentalScreenshotParams `json:"screenshot,omitempty"`
}

HeadlessExperimentalBeginFrame Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a screenshot from the resulting frame. Requires that the target was created with enabled BeginFrameControl. Designed for use with –run-all-compositor-stages-before-draw, see also https://goo.gle/chrome-headless-rendering for more background.

(HeadlessExperimentalBeginFrame) Call

1
func (m HeadlessExperimentalBeginFrame) Call(c Client) (*HeadlessExperimentalBeginFrameResult, error)

Call the request.

(HeadlessExperimentalBeginFrame) ProtoReq <- 0.74.0

1
func (m HeadlessExperimentalBeginFrame) ProtoReq() string

ProtoReq name.

type HeadlessExperimentalBeginFrameResult

1
2
3
4
5
6
7
8
type HeadlessExperimentalBeginFrameResult struct {
	// HasDamage Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the
	// display. Reported for diagnostic uses, may be removed in the future.
	HasDamage bool `json:"hasDamage"`

	// ScreenshotData (optional) Base64-encoded image data of the screenshot, if one was requested and successfully taken.
	ScreenshotData []byte `json:"screenshotData,omitempty"`
}

HeadlessExperimentalBeginFrameResult …

type HeadlessExperimentalDisable

1
type HeadlessExperimentalDisable struct{}

HeadlessExperimentalDisable (deprecated) Disables headless events for the target.

(HeadlessExperimentalDisable) Call

1
func (m HeadlessExperimentalDisable) Call(c Client) error

Call sends the request.

(HeadlessExperimentalDisable) ProtoReq <- 0.74.0

1
func (m HeadlessExperimentalDisable) ProtoReq() string

ProtoReq name.

type HeadlessExperimentalEnable

1
type HeadlessExperimentalEnable struct{}

HeadlessExperimentalEnable (deprecated) Enables headless events for the target.

(HeadlessExperimentalEnable) Call

1
func (m HeadlessExperimentalEnable) Call(c Client) error

Call sends the request.

(HeadlessExperimentalEnable) ProtoReq <- 0.74.0

1
func (m HeadlessExperimentalEnable) ProtoReq() string

ProtoReq name.

type HeadlessExperimentalScreenshotParams

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type HeadlessExperimentalScreenshotParams struct {
	// Format (optional) Image compression format (defaults to png).
	Format HeadlessExperimentalScreenshotParamsFormat `json:"format,omitempty"`

	// Quality (optional) Compression quality from range [0..100] (jpeg and webp only).
	Quality *int `json:"quality,omitempty"`

	// OptimizeForSpeed (optional) Optimize image encoding for speed, not for resulting size (defaults to false)
	OptimizeForSpeed bool `json:"optimizeForSpeed,omitempty"`
}

HeadlessExperimentalScreenshotParams Encoding options for a screenshot.

type HeadlessExperimentalScreenshotParamsFormat

1
type HeadlessExperimentalScreenshotParamsFormat string

HeadlessExperimentalScreenshotParamsFormat enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// HeadlessExperimentalScreenshotParamsFormatJpeg enum const.
	HeadlessExperimentalScreenshotParamsFormatJpeg HeadlessExperimentalScreenshotParamsFormat = "jpeg"

	// HeadlessExperimentalScreenshotParamsFormatPng enum const.
	HeadlessExperimentalScreenshotParamsFormatPng HeadlessExperimentalScreenshotParamsFormat = "png"

	// HeadlessExperimentalScreenshotParamsFormatWebp enum const.
	HeadlessExperimentalScreenshotParamsFormatWebp HeadlessExperimentalScreenshotParamsFormat = "webp"
)

type HeapProfilerAddHeapSnapshotChunk

1
2
3
4
type HeapProfilerAddHeapSnapshotChunk struct {
	// Chunk ...
	Chunk string `json:"chunk"`
}

HeapProfilerAddHeapSnapshotChunk …

(HeapProfilerAddHeapSnapshotChunk) ProtoEvent <- 0.72.0

1
func (evt HeapProfilerAddHeapSnapshotChunk) ProtoEvent() string

ProtoEvent name.

type HeapProfilerAddInspectedHeapObject

1
2
3
4
type HeapProfilerAddInspectedHeapObject struct {
	// HeapObjectID Heap snapshot object id to be accessible by means of $x command line API.
	HeapObjectID HeapProfilerHeapSnapshotObjectID `json:"heapObjectId"`
}

HeapProfilerAddInspectedHeapObject Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

(HeapProfilerAddInspectedHeapObject) Call

1
func (m HeapProfilerAddInspectedHeapObject) Call(c Client) error

Call sends the request.

(HeapProfilerAddInspectedHeapObject) ProtoReq <- 0.74.0

1
func (m HeapProfilerAddInspectedHeapObject) ProtoReq() string

ProtoReq name.

type HeapProfilerCollectGarbage

1
type HeapProfilerCollectGarbage struct{}

HeapProfilerCollectGarbage …

(HeapProfilerCollectGarbage) Call

1
func (m HeapProfilerCollectGarbage) Call(c Client) error

Call sends the request.

(HeapProfilerCollectGarbage) ProtoReq <- 0.74.0

1
func (m HeapProfilerCollectGarbage) ProtoReq() string

ProtoReq name.

type HeapProfilerDisable

1
type HeapProfilerDisable struct{}

HeapProfilerDisable …

(HeapProfilerDisable) Call

1
func (m HeapProfilerDisable) Call(c Client) error

Call sends the request.

(HeapProfilerDisable) ProtoReq <- 0.74.0

1
func (m HeapProfilerDisable) ProtoReq() string

ProtoReq name.

type HeapProfilerEnable

1
type HeapProfilerEnable struct{}

HeapProfilerEnable …

(HeapProfilerEnable) Call

1
func (m HeapProfilerEnable) Call(c Client) error

Call sends the request.

(HeapProfilerEnable) ProtoReq <- 0.74.0

1
func (m HeapProfilerEnable) ProtoReq() string

ProtoReq name.

type HeapProfilerGetHeapObjectID

1
2
3
4
type HeapProfilerGetHeapObjectID struct {
	// ObjectID Identifier of the object to get heap object id for.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`
}

HeapProfilerGetHeapObjectID …

(HeapProfilerGetHeapObjectID) Call

1
func (m HeapProfilerGetHeapObjectID) Call(c Client) (*HeapProfilerGetHeapObjectIDResult, error)

Call the request.

(HeapProfilerGetHeapObjectID) ProtoReq <- 0.74.0

1
func (m HeapProfilerGetHeapObjectID) ProtoReq() string

ProtoReq name.

type HeapProfilerGetHeapObjectIDResult

1
2
3
4
type HeapProfilerGetHeapObjectIDResult struct {
	// HeapSnapshotObjectID Id of the heap snapshot object corresponding to the passed remote object id.
	HeapSnapshotObjectID HeapProfilerHeapSnapshotObjectID `json:"heapSnapshotObjectId"`
}

HeapProfilerGetHeapObjectIDResult …

type HeapProfilerGetObjectByHeapObjectID

1
2
3
4
5
6
7
type HeapProfilerGetObjectByHeapObjectID struct {
	// ObjectID ...
	ObjectID HeapProfilerHeapSnapshotObjectID `json:"objectId"`

	// ObjectGroup (optional) Symbolic group name that can be used to release multiple objects.
	ObjectGroup string `json:"objectGroup,omitempty"`
}

HeapProfilerGetObjectByHeapObjectID …

(HeapProfilerGetObjectByHeapObjectID) Call

1
func (m HeapProfilerGetObjectByHeapObjectID) Call(c Client) (*HeapProfilerGetObjectByHeapObjectIDResult, error)

Call the request.

(HeapProfilerGetObjectByHeapObjectID) ProtoReq <- 0.74.0

1
func (m HeapProfilerGetObjectByHeapObjectID) ProtoReq() string

ProtoReq name.

type HeapProfilerGetObjectByHeapObjectIDResult

1
2
3
4
type HeapProfilerGetObjectByHeapObjectIDResult struct {
	// Result Evaluation result.
	Result *RuntimeRemoteObject `json:"result"`
}

HeapProfilerGetObjectByHeapObjectIDResult …

type HeapProfilerGetSamplingProfile

1
type HeapProfilerGetSamplingProfile struct{}

HeapProfilerGetSamplingProfile …

(HeapProfilerGetSamplingProfile) Call

1
func (m HeapProfilerGetSamplingProfile) Call(c Client) (*HeapProfilerGetSamplingProfileResult, error)

Call the request.

(HeapProfilerGetSamplingProfile) ProtoReq <- 0.74.0

1
func (m HeapProfilerGetSamplingProfile) ProtoReq() string

ProtoReq name.

type HeapProfilerGetSamplingProfileResult

1
2
3
4
type HeapProfilerGetSamplingProfileResult struct {
	// Profile Return the sampling profile being collected.
	Profile *HeapProfilerSamplingHeapProfile `json:"profile"`
}

HeapProfilerGetSamplingProfileResult …

type HeapProfilerHeapSnapshotObjectID

1
type HeapProfilerHeapSnapshotObjectID string

HeapProfilerHeapSnapshotObjectID Heap snapshot object id.

type HeapProfilerHeapStatsUpdate

1
2
3
4
5
6
type HeapProfilerHeapStatsUpdate struct {
	// StatsUpdate An array of triplets. Each triplet describes a fragment. The first integer is the fragment
	// index, the second integer is a total count of objects for the fragment, the third integer is
	// a total size of the objects for the fragment.
	StatsUpdate []int `json:"statsUpdate"`
}

HeapProfilerHeapStatsUpdate If heap objects tracking has been started then backend may send update for one or more fragments.

(HeapProfilerHeapStatsUpdate) ProtoEvent <- 0.72.0

1
func (evt HeapProfilerHeapStatsUpdate) ProtoEvent() string

ProtoEvent name.

type HeapProfilerLastSeenObjectID

1
2
3
4
5
6
7
type HeapProfilerLastSeenObjectID struct {
	// LastSeenObjectID ...
	LastSeenObjectID int `json:"lastSeenObjectId"`

	// Timestamp ...
	Timestamp float64 `json:"timestamp"`
}

HeapProfilerLastSeenObjectID If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.

(HeapProfilerLastSeenObjectID) ProtoEvent <- 0.72.0

1
func (evt HeapProfilerLastSeenObjectID) ProtoEvent() string

ProtoEvent name.

type HeapProfilerReportHeapSnapshotProgress

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type HeapProfilerReportHeapSnapshotProgress struct {
	// Done ...
	Done int `json:"done"`

	// Total ...
	Total int `json:"total"`

	// Finished (optional) ...
	Finished bool `json:"finished,omitempty"`
}

HeapProfilerReportHeapSnapshotProgress …

(HeapProfilerReportHeapSnapshotProgress) ProtoEvent <- 0.72.0

1
func (evt HeapProfilerReportHeapSnapshotProgress) ProtoEvent() string

ProtoEvent name.

type HeapProfilerResetProfiles

1
type HeapProfilerResetProfiles struct{}

HeapProfilerResetProfiles …

(HeapProfilerResetProfiles) ProtoEvent <- 0.72.0

1
func (evt HeapProfilerResetProfiles) ProtoEvent() string

ProtoEvent name.

type HeapProfilerSamplingHeapProfile

1
2
3
4
5
6
7
type HeapProfilerSamplingHeapProfile struct {
	// Head ...
	Head *HeapProfilerSamplingHeapProfileNode `json:"head"`

	// Samples ...
	Samples []*HeapProfilerSamplingHeapProfileSample `json:"samples"`
}

HeapProfilerSamplingHeapProfile Sampling profile.

type HeapProfilerSamplingHeapProfileNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type HeapProfilerSamplingHeapProfileNode struct {
	// CallFrame Function location.
	CallFrame *RuntimeCallFrame `json:"callFrame"`

	// SelfSize Allocations size in bytes for the node excluding children.
	SelfSize float64 `json:"selfSize"`

	// ID Node id. Ids are unique across all profiles collected between startSampling and stopSampling.
	ID int `json:"id"`

	// Children Child nodes.
	Children []*HeapProfilerSamplingHeapProfileNode `json:"children"`
}

HeapProfilerSamplingHeapProfileNode Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.

type HeapProfilerSamplingHeapProfileSample

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type HeapProfilerSamplingHeapProfileSample struct {
	// Size Allocation size in bytes attributed to the sample.
	Size float64 `json:"size"`

	// NodeID Id of the corresponding profile tree node.
	NodeID int `json:"nodeId"`

	// Ordinal Time-ordered sample ordinal number. It is unique across all profiles retrieved
	// between startSampling and stopSampling.
	Ordinal float64 `json:"ordinal"`
}

HeapProfilerSamplingHeapProfileSample A single sample from a sampling profile.

type HeapProfilerStartSampling

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type HeapProfilerStartSampling struct {
	// SamplingInterval (optional) Average sample interval in bytes. Poisson distribution is used for the intervals. The
	// default value is 32768 bytes.
	SamplingInterval *float64 `json:"samplingInterval,omitempty"`

	// IncludeObjectsCollectedByMajorGC (optional) By default, the sampling heap profiler reports only objects which are
	// still alive when the profile is returned via getSamplingProfile or
	// stopSampling, which is useful for determining what functions contribute
	// the most to steady-state memory usage. This flag instructs the sampling
	// heap profiler to also include information about objects discarded by
	// major GC, which will show which functions cause large temporary memory
	// usage or long GC pauses.
	IncludeObjectsCollectedByMajorGC bool `json:"includeObjectsCollectedByMajorGC,omitempty"`

	// IncludeObjectsCollectedByMinorGC (optional) By default, the sampling heap profiler reports only objects which are
	// still alive when the profile is returned via getSamplingProfile or
	// stopSampling, which is useful for determining what functions contribute
	// the most to steady-state memory usage. This flag instructs the sampling
	// heap profiler to also include information about objects discarded by
	// minor GC, which is useful when tuning a latency-sensitive application
	// for minimal GC activity.
	IncludeObjectsCollectedByMinorGC bool `json:"includeObjectsCollectedByMinorGC,omitempty"`
}

HeapProfilerStartSampling …

(HeapProfilerStartSampling) Call

1
func (m HeapProfilerStartSampling) Call(c Client) error

Call sends the request.

(HeapProfilerStartSampling) ProtoReq <- 0.74.0

1
func (m HeapProfilerStartSampling) ProtoReq() string

ProtoReq name.

type HeapProfilerStartTrackingHeapObjects

1
2
3
4
type HeapProfilerStartTrackingHeapObjects struct {
	// TrackAllocations (optional) ...
	TrackAllocations bool `json:"trackAllocations,omitempty"`
}

HeapProfilerStartTrackingHeapObjects …

(HeapProfilerStartTrackingHeapObjects) Call

1
func (m HeapProfilerStartTrackingHeapObjects) Call(c Client) error

Call sends the request.

(HeapProfilerStartTrackingHeapObjects) ProtoReq <- 0.74.0

1
func (m HeapProfilerStartTrackingHeapObjects) ProtoReq() string

ProtoReq name.

type HeapProfilerStopSampling

1
type HeapProfilerStopSampling struct{}

HeapProfilerStopSampling …

(HeapProfilerStopSampling) Call

1
func (m HeapProfilerStopSampling) Call(c Client) (*HeapProfilerStopSamplingResult, error)

Call the request.

(HeapProfilerStopSampling) ProtoReq <- 0.74.0

1
func (m HeapProfilerStopSampling) ProtoReq() string

ProtoReq name.

type HeapProfilerStopSamplingResult

1
2
3
4
type HeapProfilerStopSamplingResult struct {
	// Profile Recorded sampling heap profile.
	Profile *HeapProfilerSamplingHeapProfile `json:"profile"`
}

HeapProfilerStopSamplingResult …

type HeapProfilerStopTrackingHeapObjects

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type HeapProfilerStopTrackingHeapObjects struct {
	// ReportProgress (optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken
	// when the tracking is stopped.
	ReportProgress bool `json:"reportProgress,omitempty"`

	// TreatGlobalObjectsAsRoots (deprecated) (optional) Deprecated in favor of `exposeInternals`.
	TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"`

	// CaptureNumericValue (optional) If true, numerical values are included in the snapshot
	CaptureNumericValue bool `json:"captureNumericValue,omitempty"`

	// ExposeInternals (experimental) (optional) If true, exposes internals of the snapshot.
	ExposeInternals bool `json:"exposeInternals,omitempty"`
}

HeapProfilerStopTrackingHeapObjects …

(HeapProfilerStopTrackingHeapObjects) Call

1
func (m HeapProfilerStopTrackingHeapObjects) Call(c Client) error

Call sends the request.

(HeapProfilerStopTrackingHeapObjects) ProtoReq <- 0.74.0

1
func (m HeapProfilerStopTrackingHeapObjects) ProtoReq() string

ProtoReq name.

type HeapProfilerTakeHeapSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type HeapProfilerTakeHeapSnapshot struct {
	// ReportProgress (optional) If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
	ReportProgress bool `json:"reportProgress,omitempty"`

	// TreatGlobalObjectsAsRoots (deprecated) (optional) If true, a raw snapshot without artificial roots will be generated.
	// Deprecated in favor of `exposeInternals`.
	TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"`

	// CaptureNumericValue (optional) If true, numerical values are included in the snapshot
	CaptureNumericValue bool `json:"captureNumericValue,omitempty"`

	// ExposeInternals (experimental) (optional) If true, exposes internals of the snapshot.
	ExposeInternals bool `json:"exposeInternals,omitempty"`
}

HeapProfilerTakeHeapSnapshot …

(HeapProfilerTakeHeapSnapshot) Call

1
func (m HeapProfilerTakeHeapSnapshot) Call(c Client) error

Call sends the request.

(HeapProfilerTakeHeapSnapshot) ProtoReq <- 0.74.0

1
func (m HeapProfilerTakeHeapSnapshot) ProtoReq() string

ProtoReq name.

type IOClose

1
2
3
4
type IOClose struct {
	// Handle of the stream to close.
	Handle IOStreamHandle `json:"handle"`
}

IOClose Close the stream, discard any temporary backing storage.

(IOClose) Call

1
func (m IOClose) Call(c Client) error

Call sends the request.

(IOClose) ProtoReq <- 0.74.0

1
func (m IOClose) ProtoReq() string

ProtoReq name.

type IORead

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type IORead struct {
	// Handle of the stream to read.
	Handle IOStreamHandle `json:"handle"`

	// Offset (optional) Seek to the specified offset before reading (if not specified, proceed with offset
	// following the last read). Some types of streams may only support sequential reads.
	Offset *int `json:"offset,omitempty"`

	// Size (optional) Maximum number of bytes to read (left upon the agent discretion if not specified).
	Size *int `json:"size,omitempty"`
}

IORead Read a chunk of the stream.

(IORead) Call

1
func (m IORead) Call(c Client) (*IOReadResult, error)

Call the request.

(IORead) ProtoReq <- 0.74.0

1
func (m IORead) ProtoReq() string

ProtoReq name.

type IOReadResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type IOReadResult struct {
	// Base64Encoded (optional) Set if the data is base64-encoded
	Base64Encoded bool `json:"base64Encoded,omitempty"`

	// Data that were read.
	Data string `json:"data"`

	// EOF Set if the end-of-file condition occurred while reading.
	EOF bool `json:"eof"`
}

IOReadResult …

type IOResolveBlob

1
2
3
4
type IOResolveBlob struct {
	// ObjectID Object id of a Blob object wrapper.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`
}

IOResolveBlob Return UUID of Blob object specified by a remote object id.

(IOResolveBlob) Call

1
func (m IOResolveBlob) Call(c Client) (*IOResolveBlobResult, error)

Call the request.

(IOResolveBlob) ProtoReq <- 0.74.0

1
func (m IOResolveBlob) ProtoReq() string

ProtoReq name.

type IOResolveBlobResult

1
2
3
4
type IOResolveBlobResult struct {
	// UUID of the specified Blob.
	UUID string `json:"uuid"`
}

IOResolveBlobResult …

type IOStreamHandle

1
type IOStreamHandle string

IOStreamHandle This is either obtained from another method or specified as blob:<uuid> where <uuid> is an UUID of a Blob.

type IndexedDBClearObjectStore

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type IndexedDBClearObjectStore struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// DatabaseName Database name.
	DatabaseName string `json:"databaseName"`

	// ObjectStoreName Object store name.
	ObjectStoreName string `json:"objectStoreName"`
}

IndexedDBClearObjectStore Clears all entries from an object store.

(IndexedDBClearObjectStore) Call

1
func (m IndexedDBClearObjectStore) Call(c Client) error

Call sends the request.

(IndexedDBClearObjectStore) ProtoReq <- 0.74.0

1
func (m IndexedDBClearObjectStore) ProtoReq() string

ProtoReq name.

type IndexedDBDataEntry

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type IndexedDBDataEntry struct {
	// Key object.
	Key *RuntimeRemoteObject `json:"key"`

	// PrimaryKey Primary key object.
	PrimaryKey *RuntimeRemoteObject `json:"primaryKey"`

	// Value object.
	Value *RuntimeRemoteObject `json:"value"`
}

IndexedDBDataEntry Data entry.

type IndexedDBDatabaseWithObjectStores

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type IndexedDBDatabaseWithObjectStores struct {
	// Name Database name.
	Name string `json:"name"`

	// Version Database version (type is not 'integer', as the standard
	// requires the version number to be 'unsigned long long')
	Version float64 `json:"version"`

	// ObjectStores Object stores in this database.
	ObjectStores []*IndexedDBObjectStore `json:"objectStores"`
}

IndexedDBDatabaseWithObjectStores Database with an array of object stores.

type IndexedDBDeleteDatabase

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type IndexedDBDeleteDatabase struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// DatabaseName Database name.
	DatabaseName string `json:"databaseName"`
}

IndexedDBDeleteDatabase Deletes a database.

(IndexedDBDeleteDatabase) Call

1
func (m IndexedDBDeleteDatabase) Call(c Client) error

Call sends the request.

(IndexedDBDeleteDatabase) ProtoReq <- 0.74.0

1
func (m IndexedDBDeleteDatabase) ProtoReq() string

ProtoReq name.

type IndexedDBDeleteObjectStoreEntries

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type IndexedDBDeleteObjectStoreEntries struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// DatabaseName ...
	DatabaseName string `json:"databaseName"`

	// ObjectStoreName ...
	ObjectStoreName string `json:"objectStoreName"`

	// KeyRange Range of entry keys to delete
	KeyRange *IndexedDBKeyRange `json:"keyRange"`
}

IndexedDBDeleteObjectStoreEntries Delete a range of entries from an object store.

(IndexedDBDeleteObjectStoreEntries) Call

1
func (m IndexedDBDeleteObjectStoreEntries) Call(c Client) error

Call sends the request.

(IndexedDBDeleteObjectStoreEntries) ProtoReq <- 0.74.0

1
func (m IndexedDBDeleteObjectStoreEntries) ProtoReq() string

ProtoReq name.

type IndexedDBDisable

1
type IndexedDBDisable struct{}

IndexedDBDisable Disables events from backend.

(IndexedDBDisable) Call

1
func (m IndexedDBDisable) Call(c Client) error

Call sends the request.

(IndexedDBDisable) ProtoReq <- 0.74.0

1
func (m IndexedDBDisable) ProtoReq() string

ProtoReq name.

type IndexedDBEnable

1
type IndexedDBEnable struct{}

IndexedDBEnable Enables events from backend.

(IndexedDBEnable) Call

1
func (m IndexedDBEnable) Call(c Client) error

Call sends the request.

(IndexedDBEnable) ProtoReq <- 0.74.0

1
func (m IndexedDBEnable) ProtoReq() string

ProtoReq name.

type IndexedDBGetMetadata

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type IndexedDBGetMetadata struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// DatabaseName Database name.
	DatabaseName string `json:"databaseName"`

	// ObjectStoreName Object store name.
	ObjectStoreName string `json:"objectStoreName"`
}

IndexedDBGetMetadata Gets metadata of an object store.

(IndexedDBGetMetadata) Call

1
func (m IndexedDBGetMetadata) Call(c Client) (*IndexedDBGetMetadataResult, error)

Call the request.

(IndexedDBGetMetadata) ProtoReq <- 0.74.0

1
func (m IndexedDBGetMetadata) ProtoReq() string

ProtoReq name.

type IndexedDBGetMetadataResult

1
2
3
4
5
6
7
8
9
type IndexedDBGetMetadataResult struct {
	// EntriesCount the entries count
	EntriesCount float64 `json:"entriesCount"`

	// KeyGeneratorValue the current value of key generator, to become the next inserted
	// key into the object store. Valid if objectStore.autoIncrement
	// is true.
	KeyGeneratorValue float64 `json:"keyGeneratorValue"`
}

IndexedDBGetMetadataResult …

type IndexedDBKey

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type IndexedDBKey struct {
	// Type Key type.
	Type IndexedDBKeyType `json:"type"`

	// Number (optional) Number value.
	Number *float64 `json:"number,omitempty"`

	// String (optional) String value.
	String string `json:"string,omitempty"`

	// Date (optional) Date value.
	Date *float64 `json:"date,omitempty"`

	// Array (optional) Array value.
	Array []*IndexedDBKey `json:"array,omitempty"`
}

IndexedDBKey Key.

type IndexedDBKeyPath

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type IndexedDBKeyPath struct {
	// Type Key path type.
	Type IndexedDBKeyPathType `json:"type"`

	// String (optional) String value.
	String string `json:"string,omitempty"`

	// Array (optional) Array value.
	Array []string `json:"array,omitempty"`
}

IndexedDBKeyPath Key path.

type IndexedDBKeyPathType

1
type IndexedDBKeyPathType string

IndexedDBKeyPathType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// IndexedDBKeyPathTypeNull enum const.
	IndexedDBKeyPathTypeNull IndexedDBKeyPathType = "null"

	// IndexedDBKeyPathTypeString enum const.
	IndexedDBKeyPathTypeString IndexedDBKeyPathType = "string"

	// IndexedDBKeyPathTypeArray enum const.
	IndexedDBKeyPathTypeArray IndexedDBKeyPathType = "array"
)

type IndexedDBKeyRange

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type IndexedDBKeyRange struct {
	// Lower (optional) Lower bound.
	Lower *IndexedDBKey `json:"lower,omitempty"`

	// Upper (optional) Upper bound.
	Upper *IndexedDBKey `json:"upper,omitempty"`

	// LowerOpen If true lower bound is open.
	LowerOpen bool `json:"lowerOpen"`

	// UpperOpen If true upper bound is open.
	UpperOpen bool `json:"upperOpen"`
}

IndexedDBKeyRange Key range.

type IndexedDBKeyType

1
type IndexedDBKeyType string

IndexedDBKeyType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// IndexedDBKeyTypeNumber enum const.
	IndexedDBKeyTypeNumber IndexedDBKeyType = "number"

	// IndexedDBKeyTypeString enum const.
	IndexedDBKeyTypeString IndexedDBKeyType = "string"

	// IndexedDBKeyTypeDate enum const.
	IndexedDBKeyTypeDate IndexedDBKeyType = "date"

	// IndexedDBKeyTypeArray enum const.
	IndexedDBKeyTypeArray IndexedDBKeyType = "array"
)

type IndexedDBObjectStore

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type IndexedDBObjectStore struct {
	// Name Object store name.
	Name string `json:"name"`

	// KeyPath Object store key path.
	KeyPath *IndexedDBKeyPath `json:"keyPath"`

	// AutoIncrement If true, object store has auto increment flag set.
	AutoIncrement bool `json:"autoIncrement"`

	// Indexes in this object store.
	Indexes []*IndexedDBObjectStoreIndex `json:"indexes"`
}

IndexedDBObjectStore Object store.

type IndexedDBObjectStoreIndex

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type IndexedDBObjectStoreIndex struct {
	// Name Index name.
	Name string `json:"name"`

	// KeyPath Index key path.
	KeyPath *IndexedDBKeyPath `json:"keyPath"`

	// Unique If true, index is unique.
	Unique bool `json:"unique"`

	// MultiEntry If true, index allows multiple entries for a key.
	MultiEntry bool `json:"multiEntry"`
}

IndexedDBObjectStoreIndex Object store index.

type IndexedDBRequestData

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
type IndexedDBRequestData struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// DatabaseName Database name.
	DatabaseName string `json:"databaseName"`

	// ObjectStoreName Object store name.
	ObjectStoreName string `json:"objectStoreName"`

	// IndexName Index name, empty string for object store data requests.
	IndexName string `json:"indexName"`

	// SkipCount Number of records to skip.
	SkipCount int `json:"skipCount"`

	// PageSize Number of records to fetch.
	PageSize int `json:"pageSize"`

	// KeyRange (optional) Key range.
	KeyRange *IndexedDBKeyRange `json:"keyRange,omitempty"`
}

IndexedDBRequestData Requests data from object store or index.

(IndexedDBRequestData) Call

1
func (m IndexedDBRequestData) Call(c Client) (*IndexedDBRequestDataResult, error)

Call the request.

(IndexedDBRequestData) ProtoReq <- 0.74.0

1
func (m IndexedDBRequestData) ProtoReq() string

ProtoReq name.

type IndexedDBRequestDataResult

1
2
3
4
5
6
7
type IndexedDBRequestDataResult struct {
	// ObjectStoreDataEntries Array of object store data entries.
	ObjectStoreDataEntries []*IndexedDBDataEntry `json:"objectStoreDataEntries"`

	// HasMore If true, there are more entries to fetch in the given range.
	HasMore bool `json:"hasMore"`
}

IndexedDBRequestDataResult …

type IndexedDBRequestDatabase

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type IndexedDBRequestDatabase struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`

	// DatabaseName Database name.
	DatabaseName string `json:"databaseName"`
}

IndexedDBRequestDatabase Requests database with given name in given frame.

(IndexedDBRequestDatabase) Call

1
func (m IndexedDBRequestDatabase) Call(c Client) (*IndexedDBRequestDatabaseResult, error)

Call the request.

(IndexedDBRequestDatabase) ProtoReq <- 0.74.0

1
func (m IndexedDBRequestDatabase) ProtoReq() string

ProtoReq name.

type IndexedDBRequestDatabaseNames

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type IndexedDBRequestDatabaseNames struct {
	// SecurityOrigin (optional) At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.
	// Security origin.
	SecurityOrigin string `json:"securityOrigin,omitempty"`

	// StorageKey (optional) Storage key.
	StorageKey string `json:"storageKey,omitempty"`

	// StorageBucket (optional) Storage bucket. If not specified, it uses the default bucket.
	StorageBucket *StorageStorageBucket `json:"storageBucket,omitempty"`
}

IndexedDBRequestDatabaseNames Requests database names for given security origin.

(IndexedDBRequestDatabaseNames) Call

1
func (m IndexedDBRequestDatabaseNames) Call(c Client) (*IndexedDBRequestDatabaseNamesResult, error)

Call the request.

(IndexedDBRequestDatabaseNames) ProtoReq <- 0.74.0

1
func (m IndexedDBRequestDatabaseNames) ProtoReq() string

ProtoReq name.

type IndexedDBRequestDatabaseNamesResult

1
2
3
4
type IndexedDBRequestDatabaseNamesResult struct {
	// DatabaseNames Database names for origin.
	DatabaseNames []string `json:"databaseNames"`
}

IndexedDBRequestDatabaseNamesResult …

type IndexedDBRequestDatabaseResult

1
2
3
4
type IndexedDBRequestDatabaseResult struct {
	// DatabaseWithObjectStores Database with an array of object stores.
	DatabaseWithObjectStores *IndexedDBDatabaseWithObjectStores `json:"databaseWithObjectStores"`
}

IndexedDBRequestDatabaseResult …

type InputCancelDragging <- 0.115.0

1
type InputCancelDragging struct{}

InputCancelDragging Cancels any active dragging in the page.

(InputCancelDragging) Call <- 0.115.0

1
func (m InputCancelDragging) Call(c Client) error

Call sends the request.

(InputCancelDragging) ProtoReq <- 0.115.0

1
func (m InputCancelDragging) ProtoReq() string

ProtoReq name.

type InputDispatchDragEvent <- 0.97.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type InputDispatchDragEvent struct {
	// Type of the drag event.
	Type InputDispatchDragEventType `json:"type"`

	// X coordinate of the event relative to the main frame's viewport in CSS pixels.
	X float64 `json:"x"`

	// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
	// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
	Y float64 `json:"y"`

	// Data ...
	Data *InputDragData `json:"data"`

	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
	// (default: 0).
	Modifiers int `json:"modifiers,omitempty"`
}

InputDispatchDragEvent (experimental) Dispatches a drag event into the page.

(InputDispatchDragEvent) Call <- 0.97.5

1
func (m InputDispatchDragEvent) Call(c Client) error

Call sends the request.

(InputDispatchDragEvent) ProtoReq <- 0.97.5

1
func (m InputDispatchDragEvent) ProtoReq() string

ProtoReq name.

type InputDispatchDragEventType <- 0.97.5

1
type InputDispatchDragEventType string

InputDispatchDragEventType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// InputDispatchDragEventTypeDragEnter enum const.
	InputDispatchDragEventTypeDragEnter InputDispatchDragEventType = "dragEnter"

	// InputDispatchDragEventTypeDragOver enum const.
	InputDispatchDragEventTypeDragOver InputDispatchDragEventType = "dragOver"

	// InputDispatchDragEventTypeDrop enum const.
	InputDispatchDragEventTypeDrop InputDispatchDragEventType = "drop"

	// InputDispatchDragEventTypeDragCancel enum const.
	InputDispatchDragEventTypeDragCancel InputDispatchDragEventType = "dragCancel"
)

type InputDispatchKeyEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
type InputDispatchKeyEvent struct {
	// Type of the key event.
	Type InputDispatchKeyEventType `json:"type"`

	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
	// (default: 0).
	Modifiers int `json:"modifiers,omitempty"`

	// Timestamp (optional) Time at which the event occurred.
	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`

	// Text (optional) Text as generated by processing a virtual key code with a keyboard layout. Not needed for
	// for `keyUp` and `rawKeyDown` events (default: "")
	Text string `json:"text,omitempty"`

	// UnmodifiedText (optional) Text that would have been generated by the keyboard if no modifiers were pressed (except for
	// shift). Useful for shortcut (accelerator) key handling (default: "").
	UnmodifiedText string `json:"unmodifiedText,omitempty"`

	// KeyIdentifier (optional) Unique key identifier (e.g., 'U+0041') (default: "").
	KeyIdentifier string `json:"keyIdentifier,omitempty"`

	// Code (optional) Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
	Code string `json:"code,omitempty"`

	// Key (optional) Unique DOM defined string value describing the meaning of the key in the context of active
	// modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
	Key string `json:"key,omitempty"`

	// WindowsVirtualKeyCode (optional) Windows virtual key code (default: 0).
	WindowsVirtualKeyCode int `json:"windowsVirtualKeyCode,omitempty"`

	// NativeVirtualKeyCode (optional) Native virtual key code (default: 0).
	NativeVirtualKeyCode int `json:"nativeVirtualKeyCode,omitempty"`

	// AutoRepeat (optional) Whether the event was generated from auto repeat (default: false).
	AutoRepeat bool `json:"autoRepeat,omitempty"`

	// IsKeypad (optional) Whether the event was generated from the keypad (default: false).
	IsKeypad bool `json:"isKeypad,omitempty"`

	// IsSystemKey (optional) Whether the event was a system key event (default: false).
	IsSystemKey bool `json:"isSystemKey,omitempty"`

	// Location (optional) Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:
	// 0).
	Location *int `json:"location,omitempty"`

	// Commands (experimental) (optional) Editing commands to send with the key event (e.g., 'selectAll') (default: []).
	// These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.
	// See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
	Commands []string `json:"commands,omitempty"`
}

InputDispatchKeyEvent Dispatches a key event to the page.

(InputDispatchKeyEvent) Call

1
func (m InputDispatchKeyEvent) Call(c Client) error

Call sends the request.

(InputDispatchKeyEvent) ProtoReq <- 0.74.0

1
func (m InputDispatchKeyEvent) ProtoReq() string

ProtoReq name.

type InputDispatchKeyEventType

1
type InputDispatchKeyEventType string

InputDispatchKeyEventType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// InputDispatchKeyEventTypeKeyDown enum const.
	InputDispatchKeyEventTypeKeyDown InputDispatchKeyEventType = "keyDown"

	// InputDispatchKeyEventTypeKeyUp enum const.
	InputDispatchKeyEventTypeKeyUp InputDispatchKeyEventType = "keyUp"

	// InputDispatchKeyEventTypeRawKeyDown enum const.
	InputDispatchKeyEventTypeRawKeyDown InputDispatchKeyEventType = "rawKeyDown"

	// InputDispatchKeyEventTypeChar enum const.
	InputDispatchKeyEventTypeChar InputDispatchKeyEventType = "char"
)

type InputDispatchMouseEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
type InputDispatchMouseEvent struct {
	// Type of the mouse event.
	Type InputDispatchMouseEventType `json:"type"`

	// X coordinate of the event relative to the main frame's viewport in CSS pixels.
	X float64 `json:"x"`

	// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
	// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
	Y float64 `json:"y"`

	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
	// (default: 0).
	Modifiers int `json:"modifiers,omitempty"`

	// Timestamp (optional) Time at which the event occurred.
	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`

	// Button (optional) Mouse button (default: "none").
	Button InputMouseButton `json:"button,omitempty"`

	// Buttons (optional) A number indicating which buttons are pressed on the mouse when a mouse event is triggered.
	// Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
	Buttons *int `json:"buttons,omitempty"`

	// ClickCount (optional) Number of times the mouse button was clicked (default: 0).
	ClickCount int `json:"clickCount,omitempty"`

	// Force (experimental) (optional) The normalized pressure, which has a range of [0,1] (default: 0).
	Force float64 `json:"force,omitempty"`

	// TangentialPressure (experimental) (optional) The normalized tangential pressure, which has a range of [-1,1] (default: 0).
	TangentialPressure float64 `json:"tangentialPressure,omitempty"`

	// TiltX (optional) The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).
	TiltX float64 `json:"tiltX,omitempty"`

	// TiltY (optional) The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
	TiltY float64 `json:"tiltY,omitempty"`

	// Twist (experimental) (optional) The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
	Twist int `json:"twist,omitempty"`

	// DeltaX X delta in CSS pixels for mouse wheel event (default: 0).
	DeltaX float64 `json:"deltaX"`

	// DeltaY Y delta in CSS pixels for mouse wheel event (default: 0).
	DeltaY float64 `json:"deltaY"`

	// PointerType (optional) Pointer type (default: "mouse").
	PointerType InputDispatchMouseEventPointerType `json:"pointerType,omitempty"`
}

InputDispatchMouseEvent Dispatches a mouse event to the page.

(InputDispatchMouseEvent) Call

1
func (m InputDispatchMouseEvent) Call(c Client) error

Call sends the request.

(InputDispatchMouseEvent) ProtoReq <- 0.74.0

1
func (m InputDispatchMouseEvent) ProtoReq() string

ProtoReq name.

type InputDispatchMouseEventPointerType

1
type InputDispatchMouseEventPointerType string

InputDispatchMouseEventPointerType enum.

1
2
3
4
5
6
7
const (
	// InputDispatchMouseEventPointerTypeMouse enum const.
	InputDispatchMouseEventPointerTypeMouse InputDispatchMouseEventPointerType = "mouse"

	// InputDispatchMouseEventPointerTypePen enum const.
	InputDispatchMouseEventPointerTypePen InputDispatchMouseEventPointerType = "pen"
)

type InputDispatchMouseEventType

1
type InputDispatchMouseEventType string

InputDispatchMouseEventType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// InputDispatchMouseEventTypeMousePressed enum const.
	InputDispatchMouseEventTypeMousePressed InputDispatchMouseEventType = "mousePressed"

	// InputDispatchMouseEventTypeMouseReleased enum const.
	InputDispatchMouseEventTypeMouseReleased InputDispatchMouseEventType = "mouseReleased"

	// InputDispatchMouseEventTypeMouseMoved enum const.
	InputDispatchMouseEventTypeMouseMoved InputDispatchMouseEventType = "mouseMoved"

	// InputDispatchMouseEventTypeMouseWheel enum const.
	InputDispatchMouseEventTypeMouseWheel InputDispatchMouseEventType = "mouseWheel"
)

type InputDispatchTouchEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type InputDispatchTouchEvent struct {
	// Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while
	// TouchStart and TouchMove must contains at least one.
	Type InputDispatchTouchEventType `json:"type"`

	// TouchPoints Active touch points on the touch device. One event per any changed point (compared to
	// previous touch event in a sequence) is generated, emulating pressing/moving/releasing points
	// one by one.
	TouchPoints []*InputTouchPoint `json:"touchPoints"`

	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
	// (default: 0).
	Modifiers int `json:"modifiers,omitempty"`

	// Timestamp (optional) Time at which the event occurred.
	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
}

InputDispatchTouchEvent Dispatches a touch event to the page.

(InputDispatchTouchEvent) Call

1
func (m InputDispatchTouchEvent) Call(c Client) error

Call sends the request.

(InputDispatchTouchEvent) ProtoReq <- 0.74.0

1
func (m InputDispatchTouchEvent) ProtoReq() string

ProtoReq name.

type InputDispatchTouchEventType

1
type InputDispatchTouchEventType string

InputDispatchTouchEventType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// InputDispatchTouchEventTypeTouchStart enum const.
	InputDispatchTouchEventTypeTouchStart InputDispatchTouchEventType = "touchStart"

	// InputDispatchTouchEventTypeTouchEnd enum const.
	InputDispatchTouchEventTypeTouchEnd InputDispatchTouchEventType = "touchEnd"

	// InputDispatchTouchEventTypeTouchMove enum const.
	InputDispatchTouchEventTypeTouchMove InputDispatchTouchEventType = "touchMove"

	// InputDispatchTouchEventTypeTouchCancel enum const.
	InputDispatchTouchEventTypeTouchCancel InputDispatchTouchEventType = "touchCancel"
)

type InputDragData <- 0.97.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type InputDragData struct {
	// Items ...
	Items []*InputDragDataItem `json:"items"`

	// Files (optional) List of filenames that should be included when dropping
	Files []string `json:"files,omitempty"`

	// DragOperationsMask Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
	DragOperationsMask int `json:"dragOperationsMask"`
}

InputDragData (experimental) …

type InputDragDataItem <- 0.97.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type InputDragDataItem struct {
	// MIMEType Mime type of the dragged data.
	MIMEType string `json:"mimeType"`

	// Data Depending of the value of `mimeType`, it contains the dragged link,
	// text, HTML markup or any other data.
	Data string `json:"data"`

	// Title (optional) Title associated with a link. Only valid when `mimeType` == "text/uri-list".
	Title string `json:"title,omitempty"`

	// BaseURL (optional) Stores the base URL for the contained markup. Only valid when `mimeType`
	// == "text/html".
	BaseURL string `json:"baseURL,omitempty"`
}

InputDragDataItem (experimental) …

type InputDragIntercepted <- 0.100.0

1
2
3
4
type InputDragIntercepted struct {
	// Data ...
	Data *InputDragData `json:"data"`
}

InputDragIntercepted (experimental) Emitted only when Input.setInterceptDrags is enabled. Use this data with Input.dispatchDragEvent to restore normal drag and drop behavior.

(InputDragIntercepted) ProtoEvent <- 0.100.0

1
func (evt InputDragIntercepted) ProtoEvent() string

ProtoEvent name.

type InputEmulateTouchFromMouseEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
type InputEmulateTouchFromMouseEvent struct {
	// Type of the mouse event.
	Type InputEmulateTouchFromMouseEventType `json:"type"`

	// X coordinate of the mouse pointer in DIP.
	X int `json:"x"`

	// Y coordinate of the mouse pointer in DIP.
	Y int `json:"y"`

	// Button Mouse button. Only "none", "left", "right" are supported.
	Button InputMouseButton `json:"button"`

	// Timestamp (optional) Time at which the event occurred (default: current time).
	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`

	// DeltaX (optional) X delta in DIP for mouse wheel event (default: 0).
	DeltaX float64 `json:"deltaX,omitempty"`

	// DeltaY (optional) Y delta in DIP for mouse wheel event (default: 0).
	DeltaY float64 `json:"deltaY,omitempty"`

	// Modifiers (optional) Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
	// (default: 0).
	Modifiers int `json:"modifiers,omitempty"`

	// ClickCount (optional) Number of times the mouse button was clicked (default: 0).
	ClickCount int `json:"clickCount,omitempty"`
}

InputEmulateTouchFromMouseEvent (experimental) Emulates touch event from the mouse event parameters.

(InputEmulateTouchFromMouseEvent) Call

1
func (m InputEmulateTouchFromMouseEvent) Call(c Client) error

Call sends the request.

(InputEmulateTouchFromMouseEvent) ProtoReq <- 0.74.0

1
func (m InputEmulateTouchFromMouseEvent) ProtoReq() string

ProtoReq name.

type InputEmulateTouchFromMouseEventType

1
type InputEmulateTouchFromMouseEventType string

InputEmulateTouchFromMouseEventType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// InputEmulateTouchFromMouseEventTypeMousePressed enum const.
	InputEmulateTouchFromMouseEventTypeMousePressed InputEmulateTouchFromMouseEventType = "mousePressed"

	// InputEmulateTouchFromMouseEventTypeMouseReleased enum const.
	InputEmulateTouchFromMouseEventTypeMouseReleased InputEmulateTouchFromMouseEventType = "mouseReleased"

	// InputEmulateTouchFromMouseEventTypeMouseMoved enum const.
	InputEmulateTouchFromMouseEventTypeMouseMoved InputEmulateTouchFromMouseEventType = "mouseMoved"

	// InputEmulateTouchFromMouseEventTypeMouseWheel enum const.
	InputEmulateTouchFromMouseEventTypeMouseWheel InputEmulateTouchFromMouseEventType = "mouseWheel"
)

type InputGestureSourceType

1
type InputGestureSourceType string

InputGestureSourceType (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// InputGestureSourceTypeDefault enum const.
	InputGestureSourceTypeDefault InputGestureSourceType = "default"

	// InputGestureSourceTypeTouch enum const.
	InputGestureSourceTypeTouch InputGestureSourceType = "touch"

	// InputGestureSourceTypeMouse enum const.
	InputGestureSourceTypeMouse InputGestureSourceType = "mouse"
)

type InputImeSetComposition <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type InputImeSetComposition struct {
	// Text The text to insert
	Text string `json:"text"`

	// SelectionStart selection start
	SelectionStart int `json:"selectionStart"`

	// SelectionEnd selection end
	SelectionEnd int `json:"selectionEnd"`

	// ReplacementStart (optional) replacement start
	ReplacementStart *int `json:"replacementStart,omitempty"`

	// ReplacementEnd (optional) replacement end
	ReplacementEnd *int `json:"replacementEnd,omitempty"`
}

InputImeSetComposition (experimental) This method sets the current candidate text for IME. Use imeCommitComposition to commit the final text. Use imeSetComposition with empty string as text to cancel composition.

(InputImeSetComposition) Call <- 0.102.0

1
func (m InputImeSetComposition) Call(c Client) error

Call sends the request.

(InputImeSetComposition) ProtoReq <- 0.102.0

1
func (m InputImeSetComposition) ProtoReq() string

ProtoReq name.

type InputInsertText

1
2
3
4
type InputInsertText struct {
	// Text The text to insert.
	Text string `json:"text"`
}

InputInsertText (experimental) This method emulates inserting text that doesn’t come from a key press, for example an emoji keyboard or an IME.

(InputInsertText) Call

1
func (m InputInsertText) Call(c Client) error

Call sends the request.

(InputInsertText) ProtoReq <- 0.74.0

1
func (m InputInsertText) ProtoReq() string

ProtoReq name.

type InputMouseButton

1
type InputMouseButton string

InputMouseButton …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// InputMouseButtonNone enum const.
	InputMouseButtonNone InputMouseButton = "none"

	// InputMouseButtonLeft enum const.
	InputMouseButtonLeft InputMouseButton = "left"

	// InputMouseButtonMiddle enum const.
	InputMouseButtonMiddle InputMouseButton = "middle"

	// InputMouseButtonRight enum const.
	InputMouseButtonRight InputMouseButton = "right"

	// InputMouseButtonBack enum const.
	InputMouseButtonBack InputMouseButton = "back"

	// InputMouseButtonForward enum const.
	InputMouseButtonForward InputMouseButton = "forward"
)

type InputSetIgnoreInputEvents

1
2
3
4
type InputSetIgnoreInputEvents struct {
	// Ignores input events processing when set to true.
	Ignore bool `json:"ignore"`
}

InputSetIgnoreInputEvents Ignores input events (useful while auditing page).

(InputSetIgnoreInputEvents) Call

1
func (m InputSetIgnoreInputEvents) Call(c Client) error

Call sends the request.

(InputSetIgnoreInputEvents) ProtoReq <- 0.74.0

1
func (m InputSetIgnoreInputEvents) ProtoReq() string

ProtoReq name.

type InputSetInterceptDrags <- 0.100.0

1
2
3
4
type InputSetInterceptDrags struct {
	// Enabled ...
	Enabled bool `json:"enabled"`
}

InputSetInterceptDrags (experimental) Prevents default drag and drop behavior and instead emits Input.dragIntercepted events. Drag and drop behavior can be directly controlled via Input.dispatchDragEvent.

(InputSetInterceptDrags) Call <- 0.100.0

1
func (m InputSetInterceptDrags) Call(c Client) error

Call sends the request.

(InputSetInterceptDrags) ProtoReq <- 0.100.0

1
func (m InputSetInterceptDrags) ProtoReq() string

ProtoReq name.

type InputSynthesizePinchGesture

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type InputSynthesizePinchGesture struct {
	// X coordinate of the start of the gesture in CSS pixels.
	X float64 `json:"x"`

	// Y coordinate of the start of the gesture in CSS pixels.
	Y float64 `json:"y"`

	// ScaleFactor Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
	ScaleFactor float64 `json:"scaleFactor"`

	// RelativeSpeed (optional) Relative pointer speed in pixels per second (default: 800).
	RelativeSpeed *int `json:"relativeSpeed,omitempty"`

	// GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform
	// for the preferred input type).
	GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"`
}

InputSynthesizePinchGesture (experimental) Synthesizes a pinch gesture over a time period by issuing appropriate touch events.

(InputSynthesizePinchGesture) Call

1
func (m InputSynthesizePinchGesture) Call(c Client) error

Call sends the request.

(InputSynthesizePinchGesture) ProtoReq <- 0.74.0

1
func (m InputSynthesizePinchGesture) ProtoReq() string

ProtoReq name.

type InputSynthesizeScrollGesture

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
type InputSynthesizeScrollGesture struct {
	// X coordinate of the start of the gesture in CSS pixels.
	X float64 `json:"x"`

	// Y coordinate of the start of the gesture in CSS pixels.
	Y float64 `json:"y"`

	// XDistance (optional) The distance to scroll along the X axis (positive to scroll left).
	XDistance *float64 `json:"xDistance,omitempty"`

	// YDistance (optional) The distance to scroll along the Y axis (positive to scroll up).
	YDistance *float64 `json:"yDistance,omitempty"`

	// XOverscroll (optional) The number of additional pixels to scroll back along the X axis, in addition to the given
	// distance.
	XOverscroll *float64 `json:"xOverscroll,omitempty"`

	// YOverscroll (optional) The number of additional pixels to scroll back along the Y axis, in addition to the given
	// distance.
	YOverscroll *float64 `json:"yOverscroll,omitempty"`

	// PreventFling (optional) Prevent fling (default: true).
	PreventFling bool `json:"preventFling,omitempty"`

	// Speed (optional) Swipe speed in pixels per second (default: 800).
	Speed *int `json:"speed,omitempty"`

	// GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform
	// for the preferred input type).
	GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"`

	// RepeatCount (optional) The number of times to repeat the gesture (default: 0).
	RepeatCount int `json:"repeatCount,omitempty"`

	// RepeatDelayMs (optional) The number of milliseconds delay between each repeat. (default: 250).
	RepeatDelayMs *int `json:"repeatDelayMs,omitempty"`

	// InteractionMarkerName (optional) The name of the interaction markers to generate, if not empty (default: "").
	InteractionMarkerName string `json:"interactionMarkerName,omitempty"`
}

InputSynthesizeScrollGesture (experimental) Synthesizes a scroll gesture over a time period by issuing appropriate touch events.

(InputSynthesizeScrollGesture) Call

1
func (m InputSynthesizeScrollGesture) Call(c Client) error

Call sends the request.

(InputSynthesizeScrollGesture) ProtoReq <- 0.74.0

1
func (m InputSynthesizeScrollGesture) ProtoReq() string

ProtoReq name.

type InputSynthesizeTapGesture

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type InputSynthesizeTapGesture struct {
	// X coordinate of the start of the gesture in CSS pixels.
	X float64 `json:"x"`

	// Y coordinate of the start of the gesture in CSS pixels.
	Y float64 `json:"y"`

	// Duration (optional) Duration between touchdown and touchup events in ms (default: 50).
	Duration *int `json:"duration,omitempty"`

	// TapCount (optional) Number of times to perform the tap (e.g. 2 for double tap, default: 1).
	TapCount *int `json:"tapCount,omitempty"`

	// GestureSourceType (optional) Which type of input events to be generated (default: 'default', which queries the platform
	// for the preferred input type).
	GestureSourceType InputGestureSourceType `json:"gestureSourceType,omitempty"`
}

InputSynthesizeTapGesture (experimental) Synthesizes a tap gesture over a time period by issuing appropriate touch events.

(InputSynthesizeTapGesture) Call

1
func (m InputSynthesizeTapGesture) Call(c Client) error

Call sends the request.

(InputSynthesizeTapGesture) ProtoReq <- 0.74.0

1
func (m InputSynthesizeTapGesture) ProtoReq() string

ProtoReq name.

type InputTouchPoint

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
type InputTouchPoint struct {
	// X coordinate of the event relative to the main frame's viewport in CSS pixels.
	X float64 `json:"x"`

	// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
	// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
	Y float64 `json:"y"`

	// RadiusX (optional) X radius of the touch area (default: 1.0).
	RadiusX *float64 `json:"radiusX,omitempty"`

	// RadiusY (optional) Y radius of the touch area (default: 1.0).
	RadiusY *float64 `json:"radiusY,omitempty"`

	// RotationAngle (optional) Rotation angle (default: 0.0).
	RotationAngle *float64 `json:"rotationAngle,omitempty"`

	// Force (optional) Force (default: 1.0).
	Force *float64 `json:"force,omitempty"`

	// TangentialPressure (experimental) (optional) The normalized tangential pressure, which has a range of [-1,1] (default: 0).
	TangentialPressure float64 `json:"tangentialPressure,omitempty"`

	// TiltX (optional) The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
	TiltX float64 `json:"tiltX,omitempty"`

	// TiltY (optional) The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
	TiltY float64 `json:"tiltY,omitempty"`

	// Twist (experimental) (optional) The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
	Twist int `json:"twist,omitempty"`

	// ID (optional) Identifier used to track touch sources between events, must be unique within an event.
	ID *float64 `json:"id,omitempty"`
}

InputTouchPoint …

(*InputTouchPoint) MoveTo <- 0.61.1

1
func (p *InputTouchPoint) MoveTo(x, y float64)

MoveTo X and Y to x and y.

type InspectorDetached

1
2
3
4
type InspectorDetached struct {
	// Reason The reason why connection has been terminated.
	Reason string `json:"reason"`
}

InspectorDetached Fired when remote debugging connection is about to be terminated. Contains detach reason.

(InspectorDetached) ProtoEvent <- 0.72.0

1
func (evt InspectorDetached) ProtoEvent() string

ProtoEvent name.

type InspectorDisable

1
type InspectorDisable struct{}

InspectorDisable Disables inspector domain notifications.

(InspectorDisable) Call

1
func (m InspectorDisable) Call(c Client) error

Call sends the request.

(InspectorDisable) ProtoReq <- 0.74.0

1
func (m InspectorDisable) ProtoReq() string

ProtoReq name.

type InspectorEnable

1
type InspectorEnable struct{}

InspectorEnable Enables inspector domain notifications.

(InspectorEnable) Call

1
func (m InspectorEnable) Call(c Client) error

Call sends the request.

(InspectorEnable) ProtoReq <- 0.74.0

1
func (m InspectorEnable) ProtoReq() string

ProtoReq name.

type InspectorTargetCrashed

1
type InspectorTargetCrashed struct{}

InspectorTargetCrashed Fired when debugging target has crashed.

(InspectorTargetCrashed) ProtoEvent <- 0.72.0

1
func (evt InspectorTargetCrashed) ProtoEvent() string

ProtoEvent name.

type InspectorTargetReloadedAfterCrash

1
type InspectorTargetReloadedAfterCrash struct{}

InspectorTargetReloadedAfterCrash Fired when debugging target has reloaded after crash.

(InspectorTargetReloadedAfterCrash) ProtoEvent <- 0.72.0

1
func (evt InspectorTargetReloadedAfterCrash) ProtoEvent() string

ProtoEvent name.

type LayerTreeCompositingReasons

1
2
3
4
type LayerTreeCompositingReasons struct {
	// LayerID The id of the layer for which we want to get the reasons it was composited.
	LayerID LayerTreeLayerID `json:"layerId"`
}

LayerTreeCompositingReasons Provides the reasons why the given layer was composited.

(LayerTreeCompositingReasons) Call

1
func (m LayerTreeCompositingReasons) Call(c Client) (*LayerTreeCompositingReasonsResult, error)

Call the request.

(LayerTreeCompositingReasons) ProtoReq <- 0.74.0

1
func (m LayerTreeCompositingReasons) ProtoReq() string

ProtoReq name.

type LayerTreeCompositingReasonsResult

1
2
3
4
5
6
7
type LayerTreeCompositingReasonsResult struct {
	// CompositingReasons A list of strings specifying reasons for the given layer to become composited.
	CompositingReasons []string `json:"compositingReasons"`

	// CompositingReasonIDs A list of strings specifying reason IDs for the given layer to become composited.
	CompositingReasonIDs []string `json:"compositingReasonIds"`
}

LayerTreeCompositingReasonsResult …

type LayerTreeDisable

1
type LayerTreeDisable struct{}

LayerTreeDisable Disables compositing tree inspection.

(LayerTreeDisable) Call

1
func (m LayerTreeDisable) Call(c Client) error

Call sends the request.

(LayerTreeDisable) ProtoReq <- 0.74.0

1
func (m LayerTreeDisable) ProtoReq() string

ProtoReq name.

type LayerTreeEnable

1
type LayerTreeEnable struct{}

LayerTreeEnable Enables compositing tree inspection.

(LayerTreeEnable) Call

1
func (m LayerTreeEnable) Call(c Client) error

Call sends the request.

(LayerTreeEnable) ProtoReq <- 0.74.0

1
func (m LayerTreeEnable) ProtoReq() string

ProtoReq name.

type LayerTreeLayer

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
type LayerTreeLayer struct {
	// LayerID The unique id for this layer.
	LayerID LayerTreeLayerID `json:"layerId"`

	// ParentLayerID (optional) The id of parent (not present for root).
	ParentLayerID LayerTreeLayerID `json:"parentLayerId,omitempty"`

	// BackendNodeID (optional) The backend id for the node associated with this layer.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// OffsetX Offset from parent layer, X coordinate.
	OffsetX float64 `json:"offsetX"`

	// OffsetY Offset from parent layer, Y coordinate.
	OffsetY float64 `json:"offsetY"`

	// Width Layer width.
	Width float64 `json:"width"`

	// Height Layer height.
	Height float64 `json:"height"`

	// Transform (optional) Transformation matrix for layer, default is identity matrix
	Transform []float64 `json:"transform,omitempty"`

	// AnchorX (optional) Transform anchor point X, absent if no transform specified
	AnchorX *float64 `json:"anchorX,omitempty"`

	// AnchorY (optional) Transform anchor point Y, absent if no transform specified
	AnchorY *float64 `json:"anchorY,omitempty"`

	// AnchorZ (optional) Transform anchor point Z, absent if no transform specified
	AnchorZ *float64 `json:"anchorZ,omitempty"`

	// PaintCount Indicates how many time this layer has painted.
	PaintCount int `json:"paintCount"`

	// DrawsContent Indicates whether this layer hosts any content, rather than being used for
	// transform/scrolling purposes only.
	DrawsContent bool `json:"drawsContent"`

	// Invisible (optional) Set if layer is not visible.
	Invisible bool `json:"invisible,omitempty"`

	// ScrollRects (optional) Rectangles scrolling on main thread only.
	ScrollRects []*LayerTreeScrollRect `json:"scrollRects,omitempty"`

	// StickyPositionConstraint (optional) Sticky position constraint information
	StickyPositionConstraint *LayerTreeStickyPositionConstraint `json:"stickyPositionConstraint,omitempty"`
}

LayerTreeLayer Information about a compositing layer.

type LayerTreeLayerID

1
type LayerTreeLayerID string

LayerTreeLayerID Unique Layer identifier.

type LayerTreeLayerPainted

1
2
3
4
5
6
7
type LayerTreeLayerPainted struct {
	// LayerID The id of the painted layer.
	LayerID LayerTreeLayerID `json:"layerId"`

	// Clip rectangle.
	Clip *DOMRect `json:"clip"`
}

LayerTreeLayerPainted …

(LayerTreeLayerPainted) ProtoEvent <- 0.72.0

1
func (evt LayerTreeLayerPainted) ProtoEvent() string

ProtoEvent name.

type LayerTreeLayerTreeDidChange

1
2
3
4
type LayerTreeLayerTreeDidChange struct {
	// Layers (optional) Layer tree, absent if not in the compositing mode.
	Layers []*LayerTreeLayer `json:"layers,omitempty"`
}

LayerTreeLayerTreeDidChange …

(LayerTreeLayerTreeDidChange) ProtoEvent <- 0.72.0

1
func (evt LayerTreeLayerTreeDidChange) ProtoEvent() string

ProtoEvent name.

type LayerTreeLoadSnapshot

1
2
3
4
type LayerTreeLoadSnapshot struct {
	// Tiles An array of tiles composing the snapshot.
	Tiles []*LayerTreePictureTile `json:"tiles"`
}

LayerTreeLoadSnapshot Returns the snapshot identifier.

(LayerTreeLoadSnapshot) Call

1
func (m LayerTreeLoadSnapshot) Call(c Client) (*LayerTreeLoadSnapshotResult, error)

Call the request.

(LayerTreeLoadSnapshot) ProtoReq <- 0.74.0

1
func (m LayerTreeLoadSnapshot) ProtoReq() string

ProtoReq name.

type LayerTreeLoadSnapshotResult

1
2
3
4
type LayerTreeLoadSnapshotResult struct {
	// SnapshotID The id of the snapshot.
	SnapshotID LayerTreeSnapshotID `json:"snapshotId"`
}

LayerTreeLoadSnapshotResult …

type LayerTreeMakeSnapshot

1
2
3
4
type LayerTreeMakeSnapshot struct {
	// LayerID The id of the layer.
	LayerID LayerTreeLayerID `json:"layerId"`
}

LayerTreeMakeSnapshot Returns the layer snapshot identifier.

(LayerTreeMakeSnapshot) Call

1
func (m LayerTreeMakeSnapshot) Call(c Client) (*LayerTreeMakeSnapshotResult, error)

Call the request.

(LayerTreeMakeSnapshot) ProtoReq <- 0.74.0

1
func (m LayerTreeMakeSnapshot) ProtoReq() string

ProtoReq name.

type LayerTreeMakeSnapshotResult

1
2
3
4
type LayerTreeMakeSnapshotResult struct {
	// SnapshotID The id of the layer snapshot.
	SnapshotID LayerTreeSnapshotID `json:"snapshotId"`
}

LayerTreeMakeSnapshotResult …

type LayerTreePaintProfile

1
type LayerTreePaintProfile []float64

LayerTreePaintProfile Array of timings, one per paint step.

type LayerTreePictureTile

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type LayerTreePictureTile struct {
	// X Offset from owning layer left boundary
	X float64 `json:"x"`

	// Y Offset from owning layer top boundary
	Y float64 `json:"y"`

	// Picture Base64-encoded snapshot data.
	Picture []byte `json:"picture"`
}

LayerTreePictureTile Serialized fragment of layer picture along with its offset within the layer.

type LayerTreeProfileSnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type LayerTreeProfileSnapshot struct {
	// SnapshotID The id of the layer snapshot.
	SnapshotID LayerTreeSnapshotID `json:"snapshotId"`

	// MinRepeatCount (optional) The maximum number of times to replay the snapshot (1, if not specified).
	MinRepeatCount *int `json:"minRepeatCount,omitempty"`

	// MinDuration (optional) The minimum duration (in seconds) to replay the snapshot.
	MinDuration *float64 `json:"minDuration,omitempty"`

	// ClipRect (optional) The clip rectangle to apply when replaying the snapshot.
	ClipRect *DOMRect `json:"clipRect,omitempty"`
}

LayerTreeProfileSnapshot …

(LayerTreeProfileSnapshot) Call

1
func (m LayerTreeProfileSnapshot) Call(c Client) (*LayerTreeProfileSnapshotResult, error)

Call the request.

(LayerTreeProfileSnapshot) ProtoReq <- 0.74.0

1
func (m LayerTreeProfileSnapshot) ProtoReq() string

ProtoReq name.

type LayerTreeProfileSnapshotResult

1
2
3
4
type LayerTreeProfileSnapshotResult struct {
	// Timings The array of paint profiles, one per run.
	Timings []LayerTreePaintProfile `json:"timings"`
}

LayerTreeProfileSnapshotResult …

type LayerTreeReleaseSnapshot

1
2
3
4
type LayerTreeReleaseSnapshot struct {
	// SnapshotID The id of the layer snapshot.
	SnapshotID LayerTreeSnapshotID `json:"snapshotId"`
}

LayerTreeReleaseSnapshot Releases layer snapshot captured by the back-end.

(LayerTreeReleaseSnapshot) Call

1
func (m LayerTreeReleaseSnapshot) Call(c Client) error

Call sends the request.

(LayerTreeReleaseSnapshot) ProtoReq <- 0.74.0

1
func (m LayerTreeReleaseSnapshot) ProtoReq() string

ProtoReq name.

type LayerTreeReplaySnapshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type LayerTreeReplaySnapshot struct {
	// SnapshotID The id of the layer snapshot.
	SnapshotID LayerTreeSnapshotID `json:"snapshotId"`

	// FromStep (optional) The first step to replay from (replay from the very start if not specified).
	FromStep *int `json:"fromStep,omitempty"`

	// ToStep (optional) The last step to replay to (replay till the end if not specified).
	ToStep *int `json:"toStep,omitempty"`

	// Scale (optional) The scale to apply while replaying (defaults to 1).
	Scale *float64 `json:"scale,omitempty"`
}

LayerTreeReplaySnapshot Replays the layer snapshot and returns the resulting bitmap.

(LayerTreeReplaySnapshot) Call

1
func (m LayerTreeReplaySnapshot) Call(c Client) (*LayerTreeReplaySnapshotResult, error)

Call the request.

(LayerTreeReplaySnapshot) ProtoReq <- 0.74.0

1
func (m LayerTreeReplaySnapshot) ProtoReq() string

ProtoReq name.

type LayerTreeReplaySnapshotResult

1
2
3
4
type LayerTreeReplaySnapshotResult struct {
	// DataURL A data: URL for resulting image.
	DataURL string `json:"dataURL"`
}

LayerTreeReplaySnapshotResult …

type LayerTreeScrollRect

1
2
3
4
5
6
7
type LayerTreeScrollRect struct {
	// Rectangle itself.
	Rect *DOMRect `json:"rect"`

	// Type Reason for rectangle to force scrolling on the main thread
	Type LayerTreeScrollRectType `json:"type"`
}

LayerTreeScrollRect Rectangle where scrolling happens on the main thread.

type LayerTreeScrollRectType

1
type LayerTreeScrollRectType string

LayerTreeScrollRectType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// LayerTreeScrollRectTypeRepaintsOnScroll enum const.
	LayerTreeScrollRectTypeRepaintsOnScroll LayerTreeScrollRectType = "RepaintsOnScroll"

	// LayerTreeScrollRectTypeTouchEventHandler enum const.
	LayerTreeScrollRectTypeTouchEventHandler LayerTreeScrollRectType = "TouchEventHandler"

	// LayerTreeScrollRectTypeWheelEventHandler enum const.
	LayerTreeScrollRectTypeWheelEventHandler LayerTreeScrollRectType = "WheelEventHandler"
)

type LayerTreeSnapshotCommandLog

1
2
3
4
type LayerTreeSnapshotCommandLog struct {
	// SnapshotID The id of the layer snapshot.
	SnapshotID LayerTreeSnapshotID `json:"snapshotId"`
}

LayerTreeSnapshotCommandLog Replays the layer snapshot and returns canvas log.

(LayerTreeSnapshotCommandLog) Call

1
func (m LayerTreeSnapshotCommandLog) Call(c Client) (*LayerTreeSnapshotCommandLogResult, error)

Call the request.

(LayerTreeSnapshotCommandLog) ProtoReq <- 0.74.0

1
func (m LayerTreeSnapshotCommandLog) ProtoReq() string

ProtoReq name.

type LayerTreeSnapshotCommandLogResult

1
2
3
4
type LayerTreeSnapshotCommandLogResult struct {
	// CommandLog The array of canvas function calls.
	CommandLog []map[string]gson.JSON `json:"commandLog"`
}

LayerTreeSnapshotCommandLogResult …

type LayerTreeSnapshotID

1
type LayerTreeSnapshotID string

LayerTreeSnapshotID Unique snapshot identifier.

type LayerTreeStickyPositionConstraint

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type LayerTreeStickyPositionConstraint struct {
	// StickyBoxRect Layout rectangle of the sticky element before being shifted
	StickyBoxRect *DOMRect `json:"stickyBoxRect"`

	// ContainingBlockRect Layout rectangle of the containing block of the sticky element
	ContainingBlockRect *DOMRect `json:"containingBlockRect"`

	// NearestLayerShiftingStickyBox (optional) The nearest sticky layer that shifts the sticky box
	NearestLayerShiftingStickyBox LayerTreeLayerID `json:"nearestLayerShiftingStickyBox,omitempty"`

	// NearestLayerShiftingContainingBlock (optional) The nearest sticky layer that shifts the containing block
	NearestLayerShiftingContainingBlock LayerTreeLayerID `json:"nearestLayerShiftingContainingBlock,omitempty"`
}

LayerTreeStickyPositionConstraint Sticky position constraints.

type LogClear

1
type LogClear struct{}

LogClear Clears the log.

(LogClear) Call

1
func (m LogClear) Call(c Client) error

Call sends the request.

(LogClear) ProtoReq <- 0.74.0

1
func (m LogClear) ProtoReq() string

ProtoReq name.

type LogDisable

1
type LogDisable struct{}

LogDisable Disables log domain, prevents further log entries from being reported to the client.

(LogDisable) Call

1
func (m LogDisable) Call(c Client) error

Call sends the request.

(LogDisable) ProtoReq <- 0.74.0

1
func (m LogDisable) ProtoReq() string

ProtoReq name.

type LogEnable

1
type LogEnable struct{}

LogEnable Enables log domain, sends the entries collected so far to the client by means of the entryAdded notification.

(LogEnable) Call

1
func (m LogEnable) Call(c Client) error

Call sends the request.

(LogEnable) ProtoReq <- 0.74.0

1
func (m LogEnable) ProtoReq() string

ProtoReq name.

type LogEntryAdded

1
2
3
4
type LogEntryAdded struct {
	// Entry The entry.
	Entry *LogLogEntry `json:"entry"`
}

LogEntryAdded Issued when new message was logged.

(LogEntryAdded) ProtoEvent <- 0.72.0

1
func (evt LogEntryAdded) ProtoEvent() string

ProtoEvent name.

type LogLogEntry

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
type LogLogEntry struct {
	// Source Log entry source.
	Source LogLogEntrySource `json:"source"`

	// Level Log entry severity.
	Level LogLogEntryLevel `json:"level"`

	// Text Logged text.
	Text string `json:"text"`

	// Category (optional) ...
	Category LogLogEntryCategory `json:"category,omitempty"`

	// Timestamp when this entry was added.
	Timestamp RuntimeTimestamp `json:"timestamp"`

	// URL (optional) URL of the resource if known.
	URL string `json:"url,omitempty"`

	// LineNumber (optional) Line number in the resource.
	LineNumber *int `json:"lineNumber,omitempty"`

	// StackTrace (optional) JavaScript stack trace.
	StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"`

	// NetworkRequestID (optional) Identifier of the network request associated with this entry.
	NetworkRequestID NetworkRequestID `json:"networkRequestId,omitempty"`

	// WorkerID (optional) Identifier of the worker associated with this entry.
	WorkerID string `json:"workerId,omitempty"`

	// Args (optional) Call arguments.
	Args []*RuntimeRemoteObject `json:"args,omitempty"`
}

LogLogEntry Log entry.

type LogLogEntryCategory <- 0.102.0

1
type LogLogEntryCategory string

LogLogEntryCategory enum.

1
2
3
4
const (
	// LogLogEntryCategoryCors enum const.
	LogLogEntryCategoryCors LogLogEntryCategory = "cors"
)

type LogLogEntryLevel

1
type LogLogEntryLevel string

LogLogEntryLevel enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// LogLogEntryLevelVerbose enum const.
	LogLogEntryLevelVerbose LogLogEntryLevel = "verbose"

	// LogLogEntryLevelInfo enum const.
	LogLogEntryLevelInfo LogLogEntryLevel = "info"

	// LogLogEntryLevelWarning enum const.
	LogLogEntryLevelWarning LogLogEntryLevel = "warning"

	// LogLogEntryLevelError enum const.
	LogLogEntryLevelError LogLogEntryLevel = "error"
)

type LogLogEntrySource

1
type LogLogEntrySource string

LogLogEntrySource enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const (
	// LogLogEntrySourceXML enum const.
	LogLogEntrySourceXML LogLogEntrySource = "xml"

	// LogLogEntrySourceJavascript enum const.
	LogLogEntrySourceJavascript LogLogEntrySource = "javascript"

	// LogLogEntrySourceNetwork enum const.
	LogLogEntrySourceNetwork LogLogEntrySource = "network"

	// LogLogEntrySourceStorage enum const.
	LogLogEntrySourceStorage LogLogEntrySource = "storage"

	// LogLogEntrySourceAppcache enum const.
	LogLogEntrySourceAppcache LogLogEntrySource = "appcache"

	// LogLogEntrySourceRendering enum const.
	LogLogEntrySourceRendering LogLogEntrySource = "rendering"

	// LogLogEntrySourceSecurity enum const.
	LogLogEntrySourceSecurity LogLogEntrySource = "security"

	// LogLogEntrySourceDeprecation enum const.
	LogLogEntrySourceDeprecation LogLogEntrySource = "deprecation"

	// LogLogEntrySourceWorker enum const.
	LogLogEntrySourceWorker LogLogEntrySource = "worker"

	// LogLogEntrySourceViolation enum const.
	LogLogEntrySourceViolation LogLogEntrySource = "violation"

	// LogLogEntrySourceIntervention enum const.
	LogLogEntrySourceIntervention LogLogEntrySource = "intervention"

	// LogLogEntrySourceRecommendation enum const.
	LogLogEntrySourceRecommendation LogLogEntrySource = "recommendation"

	// LogLogEntrySourceOther enum const.
	LogLogEntrySourceOther LogLogEntrySource = "other"
)

type LogStartViolationsReport

1
2
3
4
type LogStartViolationsReport struct {
	// Configuration for violations.
	Config []*LogViolationSetting `json:"config"`
}

LogStartViolationsReport start violation reporting.

(LogStartViolationsReport) Call

1
func (m LogStartViolationsReport) Call(c Client) error

Call sends the request.

(LogStartViolationsReport) ProtoReq <- 0.74.0

1
func (m LogStartViolationsReport) ProtoReq() string

ProtoReq name.

type LogStopViolationsReport

1
type LogStopViolationsReport struct{}

LogStopViolationsReport Stop violation reporting.

(LogStopViolationsReport) Call

1
func (m LogStopViolationsReport) Call(c Client) error

Call sends the request.

(LogStopViolationsReport) ProtoReq <- 0.74.0

1
func (m LogStopViolationsReport) ProtoReq() string

ProtoReq name.

type LogViolationSetting

1
2
3
4
5
6
7
type LogViolationSetting struct {
	// Name Violation type.
	Name LogViolationSettingName `json:"name"`

	// Threshold Time threshold to trigger upon.
	Threshold float64 `json:"threshold"`
}

LogViolationSetting Violation configuration setting.

type LogViolationSettingName

1
type LogViolationSettingName string

LogViolationSettingName enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
const (
	// LogViolationSettingNameLongTask enum const.
	LogViolationSettingNameLongTask LogViolationSettingName = "longTask"

	// LogViolationSettingNameLongLayout enum const.
	LogViolationSettingNameLongLayout LogViolationSettingName = "longLayout"

	// LogViolationSettingNameBlockedEvent enum const.
	LogViolationSettingNameBlockedEvent LogViolationSettingName = "blockedEvent"

	// LogViolationSettingNameBlockedParser enum const.
	LogViolationSettingNameBlockedParser LogViolationSettingName = "blockedParser"

	// LogViolationSettingNameDiscouragedAPIUse enum const.
	LogViolationSettingNameDiscouragedAPIUse LogViolationSettingName = "discouragedAPIUse"

	// LogViolationSettingNameHandler enum const.
	LogViolationSettingNameHandler LogViolationSettingName = "handler"

	// LogViolationSettingNameRecurringHandler enum const.
	LogViolationSettingNameRecurringHandler LogViolationSettingName = "recurringHandler"
)

type MediaDisable

1
type MediaDisable struct{}

MediaDisable Disables the Media domain.

(MediaDisable) Call

1
func (m MediaDisable) Call(c Client) error

Call sends the request.

(MediaDisable) ProtoReq <- 0.74.0

1
func (m MediaDisable) ProtoReq() string

ProtoReq name.

type MediaEnable

1
type MediaEnable struct{}

MediaEnable Enables the Media domain.

(MediaEnable) Call

1
func (m MediaEnable) Call(c Client) error

Call sends the request.

(MediaEnable) ProtoReq <- 0.74.0

1
func (m MediaEnable) ProtoReq() string

ProtoReq name.

type MediaPlayerError <- 0.48.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type MediaPlayerError struct {
	// ErrorType ...
	ErrorType string `json:"errorType"`

	// Code is the numeric enum entry for a specific set of error codes, such
	// as PipelineStatusCodes in media/base/pipeline_status.h
	Code int `json:"code"`

	// Stack A trace of where this error was caused / where it passed through.
	Stack []*MediaPlayerErrorSourceLocation `json:"stack"`

	// Cause Errors potentially have a root cause error, ie, a DecoderError might be
	// caused by an WindowsError
	Cause []*MediaPlayerError `json:"cause"`

	// Data Extra data attached to an error, such as an HRESULT, Video Codec, etc.
	Data map[string]gson.JSON `json:"data"`
}

MediaPlayerError Corresponds to kMediaError.

type MediaPlayerErrorSourceLocation <- 0.106.0

1
2
3
4
5
6
7
type MediaPlayerErrorSourceLocation struct {
	// File ...
	File string `json:"file"`

	// Line ...
	Line int `json:"line"`
}

MediaPlayerErrorSourceLocation Represents logged source line numbers reported in an error. NOTE: file and line are from chromium c++ implementation code, not js.

type MediaPlayerErrorsRaised <- 0.48.0

1
2
3
4
5
6
7
type MediaPlayerErrorsRaised struct {
	// PlayerID ...
	PlayerID MediaPlayerID `json:"playerId"`

	// Errors ...
	Errors []*MediaPlayerError `json:"errors"`
}

MediaPlayerErrorsRaised Send a list of any errors that need to be delivered.

(MediaPlayerErrorsRaised) ProtoEvent <- 0.72.0

1
func (evt MediaPlayerErrorsRaised) ProtoEvent() string

ProtoEvent name.

type MediaPlayerEvent

1
2
3
4
5
6
7
type MediaPlayerEvent struct {
	// Timestamp ...
	Timestamp MediaTimestamp `json:"timestamp"`

	// Value ...
	Value string `json:"value"`
}

MediaPlayerEvent Corresponds to kMediaEventTriggered.

type MediaPlayerEventsAdded

1
2
3
4
5
6
7
type MediaPlayerEventsAdded struct {
	// PlayerID ...
	PlayerID MediaPlayerID `json:"playerId"`

	// Events ...
	Events []*MediaPlayerEvent `json:"events"`
}

MediaPlayerEventsAdded Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order.

(MediaPlayerEventsAdded) ProtoEvent <- 0.72.0

1
func (evt MediaPlayerEventsAdded) ProtoEvent() string

ProtoEvent name.

type MediaPlayerID

1
type MediaPlayerID string

MediaPlayerID Players will get an ID that is unique within the agent context.

type MediaPlayerMessage <- 0.48.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type MediaPlayerMessage struct {
	// Level Keep in sync with MediaLogMessageLevel
	// We are currently keeping the message level 'error' separate from the
	// PlayerError type because right now they represent different things,
	// this one being a DVLOG(ERROR) style log message that gets printed
	// based on what log level is selected in the UI, and the other is a
	// representation of a media::PipelineStatus object. Soon however we're
	// going to be moving away from using PipelineStatus for errors and
	// introducing a new error type which should hopefully let us integrate
	// the error log level into the PlayerError type.
	Level MediaPlayerMessageLevel `json:"level"`

	// Message ...
	Message string `json:"message"`
}

MediaPlayerMessage Have one type per entry in MediaLogRecord::Type Corresponds to kMessage.

type MediaPlayerMessageLevel <- 0.48.0

1
type MediaPlayerMessageLevel string

MediaPlayerMessageLevel enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// MediaPlayerMessageLevelError enum const.
	MediaPlayerMessageLevelError MediaPlayerMessageLevel = "error"

	// MediaPlayerMessageLevelWarning enum const.
	MediaPlayerMessageLevelWarning MediaPlayerMessageLevel = "warning"

	// MediaPlayerMessageLevelInfo enum const.
	MediaPlayerMessageLevelInfo MediaPlayerMessageLevel = "info"

	// MediaPlayerMessageLevelDebug enum const.
	MediaPlayerMessageLevelDebug MediaPlayerMessageLevel = "debug"
)

type MediaPlayerMessagesLogged <- 0.48.0

1
2
3
4
5
6
7
type MediaPlayerMessagesLogged struct {
	// PlayerID ...
	PlayerID MediaPlayerID `json:"playerId"`

	// Messages ...
	Messages []*MediaPlayerMessage `json:"messages"`
}

MediaPlayerMessagesLogged Send a list of any messages that need to be delivered.

(MediaPlayerMessagesLogged) ProtoEvent <- 0.72.0

1
func (evt MediaPlayerMessagesLogged) ProtoEvent() string

ProtoEvent name.

type MediaPlayerPropertiesChanged

1
2
3
4
5
6
7
type MediaPlayerPropertiesChanged struct {
	// PlayerID ...
	PlayerID MediaPlayerID `json:"playerId"`

	// Properties ...
	Properties []*MediaPlayerProperty `json:"properties"`
}

MediaPlayerPropertiesChanged This can be called multiple times, and can be used to set / override / remove player properties. A null propValue indicates removal.

(MediaPlayerPropertiesChanged) ProtoEvent <- 0.72.0

1
func (evt MediaPlayerPropertiesChanged) ProtoEvent() string

ProtoEvent name.

type MediaPlayerProperty

1
2
3
4
5
6
7
type MediaPlayerProperty struct {
	// Name ...
	Name string `json:"name"`

	// Value ...
	Value string `json:"value"`
}

MediaPlayerProperty Corresponds to kMediaPropertyChange.

type MediaPlayersCreated

1
2
3
4
type MediaPlayersCreated struct {
	// Players ...
	Players []MediaPlayerID `json:"players"`
}

MediaPlayersCreated Called whenever a player is created, or when a new agent joins and receives a list of active players. If an agent is restored, it will receive the full list of player ids and all events again.

(MediaPlayersCreated) ProtoEvent <- 0.72.0

1
func (evt MediaPlayersCreated) ProtoEvent() string

ProtoEvent name.

type MediaTimestamp

1
type MediaTimestamp float64

MediaTimestamp …

type MemoryForciblyPurgeJavaScriptMemory

1
type MemoryForciblyPurgeJavaScriptMemory struct{}

MemoryForciblyPurgeJavaScriptMemory Simulate OomIntervention by purging V8 memory.

(MemoryForciblyPurgeJavaScriptMemory) Call

1
func (m MemoryForciblyPurgeJavaScriptMemory) Call(c Client) error

Call sends the request.

(MemoryForciblyPurgeJavaScriptMemory) ProtoReq <- 0.74.0

1
func (m MemoryForciblyPurgeJavaScriptMemory) ProtoReq() string

ProtoReq name.

type MemoryGetAllTimeSamplingProfile

1
type MemoryGetAllTimeSamplingProfile struct{}

MemoryGetAllTimeSamplingProfile Retrieve native memory allocations profile collected since renderer process startup.

(MemoryGetAllTimeSamplingProfile) Call

1
func (m MemoryGetAllTimeSamplingProfile) Call(c Client) (*MemoryGetAllTimeSamplingProfileResult, error)

Call the request.

(MemoryGetAllTimeSamplingProfile) ProtoReq <- 0.74.0

1
func (m MemoryGetAllTimeSamplingProfile) ProtoReq() string

ProtoReq name.

type MemoryGetAllTimeSamplingProfileResult

1
2
3
4
type MemoryGetAllTimeSamplingProfileResult struct {
	// Profile ...
	Profile *MemorySamplingProfile `json:"profile"`
}

MemoryGetAllTimeSamplingProfileResult …

type MemoryGetBrowserSamplingProfile

1
type MemoryGetBrowserSamplingProfile struct{}

MemoryGetBrowserSamplingProfile Retrieve native memory allocations profile collected since browser process startup.

(MemoryGetBrowserSamplingProfile) Call

1
func (m MemoryGetBrowserSamplingProfile) Call(c Client) (*MemoryGetBrowserSamplingProfileResult, error)

Call the request.

(MemoryGetBrowserSamplingProfile) ProtoReq <- 0.74.0

1
func (m MemoryGetBrowserSamplingProfile) ProtoReq() string

ProtoReq name.

type MemoryGetBrowserSamplingProfileResult

1
2
3
4
type MemoryGetBrowserSamplingProfileResult struct {
	// Profile ...
	Profile *MemorySamplingProfile `json:"profile"`
}

MemoryGetBrowserSamplingProfileResult …

type MemoryGetDOMCounters

1
type MemoryGetDOMCounters struct{}

MemoryGetDOMCounters …

(MemoryGetDOMCounters) Call

1
func (m MemoryGetDOMCounters) Call(c Client) (*MemoryGetDOMCountersResult, error)

Call the request.

(MemoryGetDOMCounters) ProtoReq <- 0.74.0

1
func (m MemoryGetDOMCounters) ProtoReq() string

ProtoReq name.

type MemoryGetDOMCountersResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type MemoryGetDOMCountersResult struct {
	// Documents ...
	Documents int `json:"documents"`

	// Nodes ...
	Nodes int `json:"nodes"`

	// JsEventListeners ...
	JsEventListeners int `json:"jsEventListeners"`
}

MemoryGetDOMCountersResult …

type MemoryGetSamplingProfile

1
type MemoryGetSamplingProfile struct{}

MemoryGetSamplingProfile Retrieve native memory allocations profile collected since last startSampling call.

(MemoryGetSamplingProfile) Call

1
func (m MemoryGetSamplingProfile) Call(c Client) (*MemoryGetSamplingProfileResult, error)

Call the request.

(MemoryGetSamplingProfile) ProtoReq <- 0.74.0

1
func (m MemoryGetSamplingProfile) ProtoReq() string

ProtoReq name.

type MemoryGetSamplingProfileResult

1
2
3
4
type MemoryGetSamplingProfileResult struct {
	// Profile ...
	Profile *MemorySamplingProfile `json:"profile"`
}

MemoryGetSamplingProfileResult …

type MemoryModule

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type MemoryModule struct {
	// Name of the module.
	Name string `json:"name"`

	// UUID of the module.
	UUID string `json:"uuid"`

	// BaseAddress Base address where the module is loaded into memory. Encoded as a decimal
	// or hexadecimal (0x prefixed) string.
	BaseAddress string `json:"baseAddress"`

	// Size of the module in bytes.
	Size float64 `json:"size"`
}

MemoryModule Executable module information.

type MemoryPrepareForLeakDetection

1
type MemoryPrepareForLeakDetection struct{}

MemoryPrepareForLeakDetection …

(MemoryPrepareForLeakDetection) Call

1
func (m MemoryPrepareForLeakDetection) Call(c Client) error

Call sends the request.

(MemoryPrepareForLeakDetection) ProtoReq <- 0.74.0

1
func (m MemoryPrepareForLeakDetection) ProtoReq() string

ProtoReq name.

type MemoryPressureLevel

1
type MemoryPressureLevel string

MemoryPressureLevel Memory pressure level.

1
2
3
4
5
6
7
const (
	// MemoryPressureLevelModerate enum const.
	MemoryPressureLevelModerate MemoryPressureLevel = "moderate"

	// MemoryPressureLevelCritical enum const.
	MemoryPressureLevelCritical MemoryPressureLevel = "critical"
)

type MemorySamplingProfile

1
2
3
4
5
6
7
type MemorySamplingProfile struct {
	// Samples ...
	Samples []*MemorySamplingProfileNode `json:"samples"`

	// Modules ...
	Modules []*MemoryModule `json:"modules"`
}

MemorySamplingProfile Array of heap profile samples.

type MemorySamplingProfileNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type MemorySamplingProfileNode struct {
	// Size of the sampled allocation.
	Size float64 `json:"size"`

	// Total bytes attributed to this sample.
	Total float64 `json:"total"`

	// Stack Execution stack at the point of allocation.
	Stack []string `json:"stack"`
}

MemorySamplingProfileNode Heap profile sample.

type MemorySetPressureNotificationsSuppressed

1
2
3
4
type MemorySetPressureNotificationsSuppressed struct {
	// Suppressed If true, memory pressure notifications will be suppressed.
	Suppressed bool `json:"suppressed"`
}

MemorySetPressureNotificationsSuppressed Enable/disable suppressing memory pressure notifications in all processes.

(MemorySetPressureNotificationsSuppressed) Call

1
func (m MemorySetPressureNotificationsSuppressed) Call(c Client) error

Call sends the request.

(MemorySetPressureNotificationsSuppressed) ProtoReq <- 0.74.0

1
func (m MemorySetPressureNotificationsSuppressed) ProtoReq() string

ProtoReq name.

type MemorySimulatePressureNotification

1
2
3
4
type MemorySimulatePressureNotification struct {
	// Level Memory pressure level of the notification.
	Level MemoryPressureLevel `json:"level"`
}

MemorySimulatePressureNotification Simulate a memory pressure notification in all processes.

(MemorySimulatePressureNotification) Call

1
func (m MemorySimulatePressureNotification) Call(c Client) error

Call sends the request.

(MemorySimulatePressureNotification) ProtoReq <- 0.74.0

1
func (m MemorySimulatePressureNotification) ProtoReq() string

ProtoReq name.

type MemoryStartSampling

1
2
3
4
5
6
7
type MemoryStartSampling struct {
	// SamplingInterval (optional) Average number of bytes between samples.
	SamplingInterval *int `json:"samplingInterval,omitempty"`

	// SuppressRandomness (optional) Do not randomize intervals between samples.
	SuppressRandomness bool `json:"suppressRandomness,omitempty"`
}

MemoryStartSampling Start collecting native memory profile.

(MemoryStartSampling) Call

1
func (m MemoryStartSampling) Call(c Client) error

Call sends the request.

(MemoryStartSampling) ProtoReq <- 0.74.0

1
func (m MemoryStartSampling) ProtoReq() string

ProtoReq name.

type MemoryStopSampling

1
type MemoryStopSampling struct{}

MemoryStopSampling Stop collecting native memory profile.

(MemoryStopSampling) Call

1
func (m MemoryStopSampling) Call(c Client) error

Call sends the request.

(MemoryStopSampling) ProtoReq <- 0.74.0

1
func (m MemoryStopSampling) ProtoReq() string

ProtoReq name.

type MonotonicTime

1
type MonotonicTime float64

MonotonicTime Monotonically increasing time in seconds since an arbitrary point in the past.

(MonotonicTime) Duration <- 0.93.0

1
func (t MonotonicTime) Duration() time.Duration

Duration interface.

(MonotonicTime) String <- 0.93.0

1
func (t MonotonicTime) String() string

String interface.

type NetworkAlternateProtocolUsage <- 0.112.1

1
type NetworkAlternateProtocolUsage string

NetworkAlternateProtocolUsage (experimental) The reason why Chrome uses a specific transport protocol for HTTP semantics.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const (
	// NetworkAlternateProtocolUsageAlternativeJobWonWithoutRace enum const.
	NetworkAlternateProtocolUsageAlternativeJobWonWithoutRace NetworkAlternateProtocolUsage = "alternativeJobWonWithoutRace"

	// NetworkAlternateProtocolUsageAlternativeJobWonRace enum const.
	NetworkAlternateProtocolUsageAlternativeJobWonRace NetworkAlternateProtocolUsage = "alternativeJobWonRace"

	// NetworkAlternateProtocolUsageMainJobWonRace enum const.
	NetworkAlternateProtocolUsageMainJobWonRace NetworkAlternateProtocolUsage = "mainJobWonRace"

	// NetworkAlternateProtocolUsageMappingMissing enum const.
	NetworkAlternateProtocolUsageMappingMissing NetworkAlternateProtocolUsage = "mappingMissing"

	// NetworkAlternateProtocolUsageBroken enum const.
	NetworkAlternateProtocolUsageBroken NetworkAlternateProtocolUsage = "broken"

	// NetworkAlternateProtocolUsageDNSAlpnH3JobWonWithoutRace enum const.
	NetworkAlternateProtocolUsageDNSAlpnH3JobWonWithoutRace NetworkAlternateProtocolUsage = "dnsAlpnH3JobWonWithoutRace"

	// NetworkAlternateProtocolUsageDNSAlpnH3JobWonRace enum const.
	NetworkAlternateProtocolUsageDNSAlpnH3JobWonRace NetworkAlternateProtocolUsage = "dnsAlpnH3JobWonRace"

	// NetworkAlternateProtocolUsageUnspecifiedReason enum const.
	NetworkAlternateProtocolUsageUnspecifiedReason NetworkAlternateProtocolUsage = "unspecifiedReason"
)

type NetworkAssociatedCookie <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type NetworkAssociatedCookie struct {
	// Cookie The cookie object representing the cookie which was not sent.
	Cookie *NetworkCookie `json:"cookie"`

	// BlockedReasons The reason(s) the cookie was blocked. If empty means the cookie is included.
	BlockedReasons []NetworkCookieBlockedReason `json:"blockedReasons"`

	// ExemptionReason (optional) The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could
	// only have at most one exemption reason.
	ExemptionReason NetworkCookieExemptionReason `json:"exemptionReason,omitempty"`
}

NetworkAssociatedCookie (experimental) A cookie associated with the request which may or may not be sent with it. Includes the cookies itself and reasons for blocking or exemption.

type NetworkAuthChallenge

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkAuthChallenge struct {
	// Source (optional) Source of the authentication challenge.
	Source NetworkAuthChallengeSource `json:"source,omitempty"`

	// Origin of the challenger.
	Origin string `json:"origin"`

	// Scheme The authentication scheme used, such as basic or digest
	Scheme string `json:"scheme"`

	// Realm The realm of the challenge. May be empty.
	Realm string `json:"realm"`
}

NetworkAuthChallenge (experimental) Authorization challenge for HTTP status code 401 or 407.

type NetworkAuthChallengeResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type NetworkAuthChallengeResponse struct {
	// Response The decision on what to do in response to the authorization challenge.  Default means
	// deferring to the default behavior of the net stack, which will likely either the Cancel
	// authentication or display a popup dialog box.
	Response NetworkAuthChallengeResponseResponse `json:"response"`

	// Username (optional) The username to provide, possibly empty. Should only be set if response is
	// ProvideCredentials.
	Username string `json:"username,omitempty"`

	// Password (optional) The password to provide, possibly empty. Should only be set if response is
	// ProvideCredentials.
	Password string `json:"password,omitempty"`
}

NetworkAuthChallengeResponse (experimental) Response to an AuthChallenge.

type NetworkAuthChallengeResponseResponse

1
type NetworkAuthChallengeResponseResponse string

NetworkAuthChallengeResponseResponse enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkAuthChallengeResponseResponseDefault enum const.
	NetworkAuthChallengeResponseResponseDefault NetworkAuthChallengeResponseResponse = "Default"

	// NetworkAuthChallengeResponseResponseCancelAuth enum const.
	NetworkAuthChallengeResponseResponseCancelAuth NetworkAuthChallengeResponseResponse = "CancelAuth"

	// NetworkAuthChallengeResponseResponseProvideCredentials enum const.
	NetworkAuthChallengeResponseResponseProvideCredentials NetworkAuthChallengeResponseResponse = "ProvideCredentials"
)

type NetworkAuthChallengeSource

1
type NetworkAuthChallengeSource string

NetworkAuthChallengeSource enum.

1
2
3
4
5
6
7
const (
	// NetworkAuthChallengeSourceServer enum const.
	NetworkAuthChallengeSourceServer NetworkAuthChallengeSource = "Server"

	// NetworkAuthChallengeSourceProxy enum const.
	NetworkAuthChallengeSourceProxy NetworkAuthChallengeSource = "Proxy"
)

type NetworkBlockedReason

1
type NetworkBlockedReason string

NetworkBlockedReason The reason why request was blocked.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const (
	// NetworkBlockedReasonOther enum const.
	NetworkBlockedReasonOther NetworkBlockedReason = "other"

	// NetworkBlockedReasonCsp enum const.
	NetworkBlockedReasonCsp NetworkBlockedReason = "csp"

	// NetworkBlockedReasonMixedContent enum const.
	NetworkBlockedReasonMixedContent NetworkBlockedReason = "mixed-content"

	// NetworkBlockedReasonOrigin enum const.
	NetworkBlockedReasonOrigin NetworkBlockedReason = "origin"

	// NetworkBlockedReasonInspector enum const.
	NetworkBlockedReasonInspector NetworkBlockedReason = "inspector"

	// NetworkBlockedReasonSubresourceFilter enum const.
	NetworkBlockedReasonSubresourceFilter NetworkBlockedReason = "subresource-filter"

	// NetworkBlockedReasonContentType enum const.
	NetworkBlockedReasonContentType NetworkBlockedReason = "content-type"

	// NetworkBlockedReasonCoepFrameResourceNeedsCoepHeader enum const.
	NetworkBlockedReasonCoepFrameResourceNeedsCoepHeader NetworkBlockedReason = "coep-frame-resource-needs-coep-header"

	// NetworkBlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage enum const.
	NetworkBlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage NetworkBlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page"

	// NetworkBlockedReasonCorpNotSameOrigin enum const.
	NetworkBlockedReasonCorpNotSameOrigin NetworkBlockedReason = "corp-not-same-origin"

	// NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep enum const.
	NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep"

	// NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip enum const.
	NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-dip"

	// NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip enum const.
	NetworkBlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip NetworkBlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip"

	// NetworkBlockedReasonCorpNotSameSite enum const.
	NetworkBlockedReasonCorpNotSameSite NetworkBlockedReason = "corp-not-same-site"
)

type NetworkBlockedSetCookieWithReason

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkBlockedSetCookieWithReason struct {
	// BlockedReasons The reason(s) this cookie was blocked.
	BlockedReasons []NetworkSetCookieBlockedReason `json:"blockedReasons"`

	// CookieLine The string representing this individual cookie as it would appear in the header.
	// This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
	CookieLine string `json:"cookieLine"`

	// Cookie (optional) The cookie object which represents the cookie which was not stored. It is optional because
	// sometimes complete cookie information is not available, such as in the case of parsing
	// errors.
	Cookie *NetworkCookie `json:"cookie,omitempty"`
}

NetworkBlockedSetCookieWithReason (experimental) A cookie which was not stored from a response with the corresponding reason.

type NetworkCachedResource

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkCachedResource struct {
	// URL Resource URL. This is the url of the original network request.
	URL string `json:"url"`

	// Type of this resource.
	Type NetworkResourceType `json:"type"`

	// Response (optional) Cached response data.
	Response *NetworkResponse `json:"response,omitempty"`

	// BodySize Cached response body size.
	BodySize float64 `json:"bodySize"`
}

NetworkCachedResource Information about the cached resource.

type NetworkCanClearBrowserCache

1
type NetworkCanClearBrowserCache struct{}

NetworkCanClearBrowserCache (deprecated) Tells whether clearing browser cache is supported.

(NetworkCanClearBrowserCache) Call

1
func (m NetworkCanClearBrowserCache) Call(c Client) (*NetworkCanClearBrowserCacheResult, error)

Call the request.

(NetworkCanClearBrowserCache) ProtoReq <- 0.74.0

1
func (m NetworkCanClearBrowserCache) ProtoReq() string

ProtoReq name.

type NetworkCanClearBrowserCacheResult

1
2
3
4
type NetworkCanClearBrowserCacheResult struct {
	// Result True if browser cache can be cleared.
	Result bool `json:"result"`
}

NetworkCanClearBrowserCacheResult (deprecated) …

type NetworkCanClearBrowserCookies

1
type NetworkCanClearBrowserCookies struct{}

NetworkCanClearBrowserCookies (deprecated) Tells whether clearing browser cookies is supported.

(NetworkCanClearBrowserCookies) Call

1
func (m NetworkCanClearBrowserCookies) Call(c Client) (*NetworkCanClearBrowserCookiesResult, error)

Call the request.

(NetworkCanClearBrowserCookies) ProtoReq <- 0.74.0

1
func (m NetworkCanClearBrowserCookies) ProtoReq() string

ProtoReq name.

type NetworkCanClearBrowserCookiesResult

1
2
3
4
type NetworkCanClearBrowserCookiesResult struct {
	// Result True if browser cookies can be cleared.
	Result bool `json:"result"`
}

NetworkCanClearBrowserCookiesResult (deprecated) …

type NetworkCanEmulateNetworkConditions

1
type NetworkCanEmulateNetworkConditions struct{}

NetworkCanEmulateNetworkConditions (deprecated) Tells whether emulation of network conditions is supported.

(NetworkCanEmulateNetworkConditions) Call

1
func (m NetworkCanEmulateNetworkConditions) Call(c Client) (*NetworkCanEmulateNetworkConditionsResult, error)

Call the request.

(NetworkCanEmulateNetworkConditions) ProtoReq <- 0.74.0

1
func (m NetworkCanEmulateNetworkConditions) ProtoReq() string

ProtoReq name.

type NetworkCanEmulateNetworkConditionsResult

1
2
3
4
type NetworkCanEmulateNetworkConditionsResult struct {
	// Result True if emulation of network conditions is supported.
	Result bool `json:"result"`
}

NetworkCanEmulateNetworkConditionsResult (deprecated) …

type NetworkCertificateTransparencyCompliance

1
type NetworkCertificateTransparencyCompliance string

NetworkCertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkCertificateTransparencyComplianceUnknown enum const.
	NetworkCertificateTransparencyComplianceUnknown NetworkCertificateTransparencyCompliance = "unknown"

	// NetworkCertificateTransparencyComplianceNotCompliant enum const.
	NetworkCertificateTransparencyComplianceNotCompliant NetworkCertificateTransparencyCompliance = "not-compliant"

	// NetworkCertificateTransparencyComplianceCompliant enum const.
	NetworkCertificateTransparencyComplianceCompliant NetworkCertificateTransparencyCompliance = "compliant"
)

type NetworkClearAcceptedEncodingsOverride <- 0.97.5

1
type NetworkClearAcceptedEncodingsOverride struct{}

NetworkClearAcceptedEncodingsOverride (experimental) Clears accepted encodings set by setAcceptedEncodings.

(NetworkClearAcceptedEncodingsOverride) Call <- 0.97.5

1
func (m NetworkClearAcceptedEncodingsOverride) Call(c Client) error

Call sends the request.

(NetworkClearAcceptedEncodingsOverride) ProtoReq <- 0.97.5

1
func (m NetworkClearAcceptedEncodingsOverride) ProtoReq() string

ProtoReq name.

type NetworkClearBrowserCache

1
type NetworkClearBrowserCache struct{}

NetworkClearBrowserCache Clears browser cache.

(NetworkClearBrowserCache) Call

1
func (m NetworkClearBrowserCache) Call(c Client) error

Call sends the request.

(NetworkClearBrowserCache) ProtoReq <- 0.74.0

1
func (m NetworkClearBrowserCache) ProtoReq() string

ProtoReq name.

type NetworkClearBrowserCookies

1
type NetworkClearBrowserCookies struct{}

NetworkClearBrowserCookies Clears browser cookies.

(NetworkClearBrowserCookies) Call

1
func (m NetworkClearBrowserCookies) Call(c Client) error

Call sends the request.

(NetworkClearBrowserCookies) ProtoReq <- 0.74.0

1
func (m NetworkClearBrowserCookies) ProtoReq() string

ProtoReq name.

type NetworkClientSecurityState <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkClientSecurityState struct {
	// InitiatorIsSecureContext ...
	InitiatorIsSecureContext bool `json:"initiatorIsSecureContext"`

	// InitiatorIPAddressSpace ...
	InitiatorIPAddressSpace NetworkIPAddressSpace `json:"initiatorIPAddressSpace"`

	// PrivateNetworkRequestPolicy ...
	PrivateNetworkRequestPolicy NetworkPrivateNetworkRequestPolicy `json:"privateNetworkRequestPolicy"`
}

NetworkClientSecurityState (experimental) …

type NetworkConnectTiming <- 0.102.0

1
2
3
4
5
6
type NetworkConnectTiming struct {
	// RequestTime Timing's requestTime is a baseline in seconds, while the other numbers are ticks in
	// milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for
	// the same request (but not for redirected requests).
	RequestTime float64 `json:"requestTime"`
}

NetworkConnectTiming (experimental) …

type NetworkConnectionType

1
type NetworkConnectionType string

NetworkConnectionType The underlying connection technology that the browser is supposedly using.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const (
	// NetworkConnectionTypeNone enum const.
	NetworkConnectionTypeNone NetworkConnectionType = "none"

	// NetworkConnectionTypeCellular2g enum const.
	NetworkConnectionTypeCellular2g NetworkConnectionType = "cellular2g"

	// NetworkConnectionTypeCellular3g enum const.
	NetworkConnectionTypeCellular3g NetworkConnectionType = "cellular3g"

	// NetworkConnectionTypeCellular4g enum const.
	NetworkConnectionTypeCellular4g NetworkConnectionType = "cellular4g"

	// NetworkConnectionTypeBluetooth enum const.
	NetworkConnectionTypeBluetooth NetworkConnectionType = "bluetooth"

	// NetworkConnectionTypeEthernet enum const.
	NetworkConnectionTypeEthernet NetworkConnectionType = "ethernet"

	// NetworkConnectionTypeWifi enum const.
	NetworkConnectionTypeWifi NetworkConnectionType = "wifi"

	// NetworkConnectionTypeWimax enum const.
	NetworkConnectionTypeWimax NetworkConnectionType = "wimax"

	// NetworkConnectionTypeOther enum const.
	NetworkConnectionTypeOther NetworkConnectionType = "other"
)

type NetworkContentEncoding <- 0.97.5

1
type NetworkContentEncoding string

NetworkContentEncoding (experimental) List of content encodings supported by the backend.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// NetworkContentEncodingDeflate enum const.
	NetworkContentEncodingDeflate NetworkContentEncoding = "deflate"

	// NetworkContentEncodingGzip enum const.
	NetworkContentEncodingGzip NetworkContentEncoding = "gzip"

	// NetworkContentEncodingBr enum const.
	NetworkContentEncodingBr NetworkContentEncoding = "br"

	// NetworkContentEncodingZstd enum const.
	NetworkContentEncodingZstd NetworkContentEncoding = "zstd"
)

type NetworkContentSecurityPolicySource <- 0.115.0

1
type NetworkContentSecurityPolicySource string

NetworkContentSecurityPolicySource (experimental) …

1
2
3
4
5
6
7
const (
	// NetworkContentSecurityPolicySourceHTTP enum const.
	NetworkContentSecurityPolicySourceHTTP NetworkContentSecurityPolicySource = "HTTP"

	// NetworkContentSecurityPolicySourceMeta enum const.
	NetworkContentSecurityPolicySourceMeta NetworkContentSecurityPolicySource = "Meta"
)

type NetworkContentSecurityPolicyStatus <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkContentSecurityPolicyStatus struct {
	// EffectiveDirectives ...
	EffectiveDirectives string `json:"effectiveDirectives"`

	// IsEnforced ...
	IsEnforced bool `json:"isEnforced"`

	// Source ...
	Source NetworkContentSecurityPolicySource `json:"source"`
}

NetworkContentSecurityPolicyStatus (experimental) …

type NetworkContinueInterceptedRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type NetworkContinueInterceptedRequest struct {
	// InterceptionID ...
	InterceptionID NetworkInterceptionID `json:"interceptionId"`

	// ErrorReason (optional) If set this causes the request to fail with the given reason. Passing `Aborted` for requests
	// marked with `isNavigationRequest` also cancels the navigation. Must not be set in response
	// to an authChallenge.
	ErrorReason NetworkErrorReason `json:"errorReason,omitempty"`

	// RawResponse (optional) If set the requests completes using with the provided base64 encoded raw response, including
	// HTTP status line and headers etc... Must not be set in response to an authChallenge.
	RawResponse []byte `json:"rawResponse,omitempty"`

	// URL (optional) If set the request url will be modified in a way that's not observable by page. Must not be
	// set in response to an authChallenge.
	URL string `json:"url,omitempty"`

	// Method (optional) If set this allows the request method to be overridden. Must not be set in response to an
	// authChallenge.
	Method string `json:"method,omitempty"`

	// PostData (optional) If set this allows postData to be set. Must not be set in response to an authChallenge.
	PostData string `json:"postData,omitempty"`

	// Headers (optional) If set this allows the request headers to be changed. Must not be set in response to an
	// authChallenge.
	Headers NetworkHeaders `json:"headers,omitempty"`

	// AuthChallengeResponse (optional) Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
	AuthChallengeResponse *NetworkAuthChallengeResponse `json:"authChallengeResponse,omitempty"`
}

NetworkContinueInterceptedRequest (deprecated) (experimental) Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.

(NetworkContinueInterceptedRequest) Call

1
func (m NetworkContinueInterceptedRequest) Call(c Client) error

Call sends the request.

(NetworkContinueInterceptedRequest) ProtoReq <- 0.74.0

1
func (m NetworkContinueInterceptedRequest) ProtoReq() string

ProtoReq name.

type NetworkCookie

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
type NetworkCookie struct {
	// Name Cookie name.
	Name string `json:"name"`

	// Value Cookie value.
	Value string `json:"value"`

	// Domain Cookie domain.
	Domain string `json:"domain"`

	// Path Cookie path.
	Path string `json:"path"`

	// Expires Cookie expiration date
	Expires TimeSinceEpoch `json:"expires"`

	// Size Cookie size.
	Size int `json:"size"`

	// HTTPOnly True if cookie is http-only.
	HTTPOnly bool `json:"httpOnly"`

	// Secure True if cookie is secure.
	Secure bool `json:"secure"`

	// Session True in case of session cookie.
	Session bool `json:"session"`

	// SameSite (optional) Cookie SameSite type.
	SameSite NetworkCookieSameSite `json:"sameSite,omitempty"`

	// Priority (experimental) Cookie Priority
	Priority NetworkCookiePriority `json:"priority"`

	// SameParty (deprecated) (experimental) True if cookie is SameParty.
	SameParty bool `json:"sameParty"`

	// SourceScheme (experimental) Cookie source scheme type.
	SourceScheme NetworkCookieSourceScheme `json:"sourceScheme"`

	// SourcePort (experimental) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
	// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
	// This is a temporary ability and it will be removed in the future.
	SourcePort int `json:"sourcePort"`

	// PartitionKey (experimental) (optional) Cookie partition key.
	PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`

	// PartitionKeyOpaque (experimental) (optional) True if cookie partition key is opaque.
	PartitionKeyOpaque bool `json:"partitionKeyOpaque,omitempty"`
}

NetworkCookie Cookie object.

type NetworkCookieBlockedReason

1
type NetworkCookieBlockedReason string

NetworkCookieBlockedReason (experimental) Types of reasons why a cookie may not be sent with a request.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const (
	// NetworkCookieBlockedReasonSecureOnly enum const.
	NetworkCookieBlockedReasonSecureOnly NetworkCookieBlockedReason = "SecureOnly"

	// NetworkCookieBlockedReasonNotOnPath enum const.
	NetworkCookieBlockedReasonNotOnPath NetworkCookieBlockedReason = "NotOnPath"

	// NetworkCookieBlockedReasonDomainMismatch enum const.
	NetworkCookieBlockedReasonDomainMismatch NetworkCookieBlockedReason = "DomainMismatch"

	// NetworkCookieBlockedReasonSameSiteStrict enum const.
	NetworkCookieBlockedReasonSameSiteStrict NetworkCookieBlockedReason = "SameSiteStrict"

	// NetworkCookieBlockedReasonSameSiteLax enum const.
	NetworkCookieBlockedReasonSameSiteLax NetworkCookieBlockedReason = "SameSiteLax"

	// NetworkCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax enum const.
	NetworkCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax NetworkCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"

	// NetworkCookieBlockedReasonSameSiteNoneInsecure enum const.
	NetworkCookieBlockedReasonSameSiteNoneInsecure NetworkCookieBlockedReason = "SameSiteNoneInsecure"

	// NetworkCookieBlockedReasonUserPreferences enum const.
	NetworkCookieBlockedReasonUserPreferences NetworkCookieBlockedReason = "UserPreferences"

	// NetworkCookieBlockedReasonThirdPartyPhaseout enum const.
	NetworkCookieBlockedReasonThirdPartyPhaseout NetworkCookieBlockedReason = "ThirdPartyPhaseout"

	// NetworkCookieBlockedReasonThirdPartyBlockedInFirstPartySet enum const.
	NetworkCookieBlockedReasonThirdPartyBlockedInFirstPartySet NetworkCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet"

	// NetworkCookieBlockedReasonUnknownError enum const.
	NetworkCookieBlockedReasonUnknownError NetworkCookieBlockedReason = "UnknownError"

	// NetworkCookieBlockedReasonSchemefulSameSiteStrict enum const.
	NetworkCookieBlockedReasonSchemefulSameSiteStrict NetworkCookieBlockedReason = "SchemefulSameSiteStrict"

	// NetworkCookieBlockedReasonSchemefulSameSiteLax enum const.
	NetworkCookieBlockedReasonSchemefulSameSiteLax NetworkCookieBlockedReason = "SchemefulSameSiteLax"

	// NetworkCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax enum const.
	NetworkCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax NetworkCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"

	// NetworkCookieBlockedReasonSamePartyFromCrossPartyContext enum const.
	NetworkCookieBlockedReasonSamePartyFromCrossPartyContext NetworkCookieBlockedReason = "SamePartyFromCrossPartyContext"

	// NetworkCookieBlockedReasonNameValuePairExceedsMaxSize enum const.
	NetworkCookieBlockedReasonNameValuePairExceedsMaxSize NetworkCookieBlockedReason = "NameValuePairExceedsMaxSize"
)

type NetworkCookieExemptionReason <- 0.115.0

1
type NetworkCookieExemptionReason string

NetworkCookieExemptionReason (experimental) Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const (
	// NetworkCookieExemptionReasonNone enum const.
	NetworkCookieExemptionReasonNone NetworkCookieExemptionReason = "None"

	// NetworkCookieExemptionReasonUserSetting enum const.
	NetworkCookieExemptionReasonUserSetting NetworkCookieExemptionReason = "UserSetting"

	// NetworkCookieExemptionReasonTPCDMetadata enum const.
	NetworkCookieExemptionReasonTPCDMetadata NetworkCookieExemptionReason = "TPCDMetadata"

	// NetworkCookieExemptionReasonTPCDDeprecationTrial enum const.
	NetworkCookieExemptionReasonTPCDDeprecationTrial NetworkCookieExemptionReason = "TPCDDeprecationTrial"

	// NetworkCookieExemptionReasonTPCDHeuristics enum const.
	NetworkCookieExemptionReasonTPCDHeuristics NetworkCookieExemptionReason = "TPCDHeuristics"

	// NetworkCookieExemptionReasonEnterprisePolicy enum const.
	NetworkCookieExemptionReasonEnterprisePolicy NetworkCookieExemptionReason = "EnterprisePolicy"

	// NetworkCookieExemptionReasonStorageAccess enum const.
	NetworkCookieExemptionReasonStorageAccess NetworkCookieExemptionReason = "StorageAccess"

	// NetworkCookieExemptionReasonTopLevelStorageAccess enum const.
	NetworkCookieExemptionReasonTopLevelStorageAccess NetworkCookieExemptionReason = "TopLevelStorageAccess"

	// NetworkCookieExemptionReasonCorsOptIn enum const.
	NetworkCookieExemptionReasonCorsOptIn NetworkCookieExemptionReason = "CorsOptIn"

	// NetworkCookieExemptionReasonScheme enum const.
	NetworkCookieExemptionReasonScheme NetworkCookieExemptionReason = "Scheme"
)

type NetworkCookieParam

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
type NetworkCookieParam struct {
	// Name Cookie name.
	Name string `json:"name"`

	// Value Cookie value.
	Value string `json:"value"`

	// URL (optional) The request-URI to associate with the setting of the cookie. This value can affect the
	// default domain, path, source port, and source scheme values of the created cookie.
	URL string `json:"url,omitempty"`

	// Domain (optional) Cookie domain.
	Domain string `json:"domain,omitempty"`

	// Path (optional) Cookie path.
	Path string `json:"path,omitempty"`

	// Secure (optional) True if cookie is secure.
	Secure bool `json:"secure,omitempty"`

	// HTTPOnly (optional) True if cookie is http-only.
	HTTPOnly bool `json:"httpOnly,omitempty"`

	// SameSite (optional) Cookie SameSite type.
	SameSite NetworkCookieSameSite `json:"sameSite,omitempty"`

	// Expires (optional) Cookie expiration date, session cookie if not set
	Expires TimeSinceEpoch `json:"expires,omitempty"`

	// Priority (experimental) (optional) Cookie Priority.
	Priority NetworkCookiePriority `json:"priority,omitempty"`

	// SameParty (experimental) (optional) True if cookie is SameParty.
	SameParty bool `json:"sameParty,omitempty"`

	// SourceScheme (experimental) (optional) Cookie source scheme type.
	SourceScheme NetworkCookieSourceScheme `json:"sourceScheme,omitempty"`

	// SourcePort (experimental) (optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
	// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
	// This is a temporary ability and it will be removed in the future.
	SourcePort *int `json:"sourcePort,omitempty"`

	// PartitionKey (experimental) (optional) Cookie partition key. If not set, the cookie will be set as not partitioned.
	PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
}

NetworkCookieParam Cookie parameter object.

func CookiesToParams <- 0.71.0

1
func CookiesToParams(cookies []*NetworkCookie) []*NetworkCookieParam

CookiesToParams converts Cookies list to NetworkCookieParam list.

type NetworkCookiePartitionKey <- 0.116.2

1
2
3
4
5
6
7
8
type NetworkCookiePartitionKey struct {
	// TopLevelSite The site of the top-level URL the browser was visiting at the start
	// of the request to the endpoint that set the cookie.
	TopLevelSite string `json:"topLevelSite"`

	// HasCrossSiteAncestor Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.
	HasCrossSiteAncestor bool `json:"hasCrossSiteAncestor"`
}

NetworkCookiePartitionKey (experimental) cookiePartitionKey object The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.

type NetworkCookiePriority

1
type NetworkCookiePriority string

NetworkCookiePriority (experimental) Represents the cookie’s ‘Priority’ status: https://tools.ietf.org/html/draft-west-cookie-priority-00

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkCookiePriorityLow enum const.
	NetworkCookiePriorityLow NetworkCookiePriority = "Low"

	// NetworkCookiePriorityMedium enum const.
	NetworkCookiePriorityMedium NetworkCookiePriority = "Medium"

	// NetworkCookiePriorityHigh enum const.
	NetworkCookiePriorityHigh NetworkCookiePriority = "High"
)

type NetworkCookieSameSite

1
type NetworkCookieSameSite string

NetworkCookieSameSite Represents the cookie’s ‘SameSite’ status: https://tools.ietf.org/html/draft-west-first-party-cookies

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkCookieSameSiteStrict enum const.
	NetworkCookieSameSiteStrict NetworkCookieSameSite = "Strict"

	// NetworkCookieSameSiteLax enum const.
	NetworkCookieSameSiteLax NetworkCookieSameSite = "Lax"

	// NetworkCookieSameSiteNone enum const.
	NetworkCookieSameSiteNone NetworkCookieSameSite = "None"
)

type NetworkCookieSourceScheme <- 0.93.0

1
type NetworkCookieSourceScheme string

NetworkCookieSourceScheme (experimental) Represents the source scheme of the origin that originally set the cookie. A value of “Unset” allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkCookieSourceSchemeUnset enum const.
	NetworkCookieSourceSchemeUnset NetworkCookieSourceScheme = "Unset"

	// NetworkCookieSourceSchemeNonSecure enum const.
	NetworkCookieSourceSchemeNonSecure NetworkCookieSourceScheme = "NonSecure"

	// NetworkCookieSourceSchemeSecure enum const.
	NetworkCookieSourceSchemeSecure NetworkCookieSourceScheme = "Secure"
)

type NetworkCorsError <- 0.90.0

1
type NetworkCorsError string

NetworkCorsError The reason why request was blocked.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
const (
	// NetworkCorsErrorDisallowedByMode enum const.
	NetworkCorsErrorDisallowedByMode NetworkCorsError = "DisallowedByMode"

	// NetworkCorsErrorInvalidResponse enum const.
	NetworkCorsErrorInvalidResponse NetworkCorsError = "InvalidResponse"

	// NetworkCorsErrorWildcardOriginNotAllowed enum const.
	NetworkCorsErrorWildcardOriginNotAllowed NetworkCorsError = "WildcardOriginNotAllowed"

	// NetworkCorsErrorMissingAllowOriginHeader enum const.
	NetworkCorsErrorMissingAllowOriginHeader NetworkCorsError = "MissingAllowOriginHeader"

	// NetworkCorsErrorMultipleAllowOriginValues enum const.
	NetworkCorsErrorMultipleAllowOriginValues NetworkCorsError = "MultipleAllowOriginValues"

	// NetworkCorsErrorInvalidAllowOriginValue enum const.
	NetworkCorsErrorInvalidAllowOriginValue NetworkCorsError = "InvalidAllowOriginValue"

	// NetworkCorsErrorAllowOriginMismatch enum const.
	NetworkCorsErrorAllowOriginMismatch NetworkCorsError = "AllowOriginMismatch"

	// NetworkCorsErrorInvalidAllowCredentials enum const.
	NetworkCorsErrorInvalidAllowCredentials NetworkCorsError = "InvalidAllowCredentials"

	// NetworkCorsErrorCorsDisabledScheme enum const.
	NetworkCorsErrorCorsDisabledScheme NetworkCorsError = "CorsDisabledScheme"

	// NetworkCorsErrorPreflightInvalidStatus enum const.
	NetworkCorsErrorPreflightInvalidStatus NetworkCorsError = "PreflightInvalidStatus"

	// NetworkCorsErrorPreflightDisallowedRedirect enum const.
	NetworkCorsErrorPreflightDisallowedRedirect NetworkCorsError = "PreflightDisallowedRedirect"

	// NetworkCorsErrorPreflightWildcardOriginNotAllowed enum const.
	NetworkCorsErrorPreflightWildcardOriginNotAllowed NetworkCorsError = "PreflightWildcardOriginNotAllowed"

	// NetworkCorsErrorPreflightMissingAllowOriginHeader enum const.
	NetworkCorsErrorPreflightMissingAllowOriginHeader NetworkCorsError = "PreflightMissingAllowOriginHeader"

	// NetworkCorsErrorPreflightMultipleAllowOriginValues enum const.
	NetworkCorsErrorPreflightMultipleAllowOriginValues NetworkCorsError = "PreflightMultipleAllowOriginValues"

	// NetworkCorsErrorPreflightInvalidAllowOriginValue enum const.
	NetworkCorsErrorPreflightInvalidAllowOriginValue NetworkCorsError = "PreflightInvalidAllowOriginValue"

	// NetworkCorsErrorPreflightAllowOriginMismatch enum const.
	NetworkCorsErrorPreflightAllowOriginMismatch NetworkCorsError = "PreflightAllowOriginMismatch"

	// NetworkCorsErrorPreflightInvalidAllowCredentials enum const.
	NetworkCorsErrorPreflightInvalidAllowCredentials NetworkCorsError = "PreflightInvalidAllowCredentials"

	// NetworkCorsErrorPreflightMissingAllowExternal enum const.
	NetworkCorsErrorPreflightMissingAllowExternal NetworkCorsError = "PreflightMissingAllowExternal"

	// NetworkCorsErrorPreflightInvalidAllowExternal enum const.
	NetworkCorsErrorPreflightInvalidAllowExternal NetworkCorsError = "PreflightInvalidAllowExternal"

	// NetworkCorsErrorPreflightMissingAllowPrivateNetwork enum const.
	NetworkCorsErrorPreflightMissingAllowPrivateNetwork NetworkCorsError = "PreflightMissingAllowPrivateNetwork"

	// NetworkCorsErrorPreflightInvalidAllowPrivateNetwork enum const.
	NetworkCorsErrorPreflightInvalidAllowPrivateNetwork NetworkCorsError = "PreflightInvalidAllowPrivateNetwork"

	// NetworkCorsErrorInvalidAllowMethodsPreflightResponse enum const.
	NetworkCorsErrorInvalidAllowMethodsPreflightResponse NetworkCorsError = "InvalidAllowMethodsPreflightResponse"

	// NetworkCorsErrorInvalidAllowHeadersPreflightResponse enum const.
	NetworkCorsErrorInvalidAllowHeadersPreflightResponse NetworkCorsError = "InvalidAllowHeadersPreflightResponse"

	// NetworkCorsErrorMethodDisallowedByPreflightResponse enum const.
	NetworkCorsErrorMethodDisallowedByPreflightResponse NetworkCorsError = "MethodDisallowedByPreflightResponse"

	// NetworkCorsErrorHeaderDisallowedByPreflightResponse enum const.
	NetworkCorsErrorHeaderDisallowedByPreflightResponse NetworkCorsError = "HeaderDisallowedByPreflightResponse"

	// NetworkCorsErrorRedirectContainsCredentials enum const.
	NetworkCorsErrorRedirectContainsCredentials NetworkCorsError = "RedirectContainsCredentials"

	// NetworkCorsErrorInsecurePrivateNetwork enum const.
	NetworkCorsErrorInsecurePrivateNetwork NetworkCorsError = "InsecurePrivateNetwork"

	// NetworkCorsErrorInvalidPrivateNetworkAccess enum const.
	NetworkCorsErrorInvalidPrivateNetworkAccess NetworkCorsError = "InvalidPrivateNetworkAccess"

	// NetworkCorsErrorUnexpectedPrivateNetworkAccess enum const.
	NetworkCorsErrorUnexpectedPrivateNetworkAccess NetworkCorsError = "UnexpectedPrivateNetworkAccess"

	// NetworkCorsErrorNoCorsRedirectModeNotFollow enum const.
	NetworkCorsErrorNoCorsRedirectModeNotFollow NetworkCorsError = "NoCorsRedirectModeNotFollow"

	// NetworkCorsErrorPreflightMissingPrivateNetworkAccessID enum const.
	NetworkCorsErrorPreflightMissingPrivateNetworkAccessID NetworkCorsError = "PreflightMissingPrivateNetworkAccessId"

	// NetworkCorsErrorPreflightMissingPrivateNetworkAccessName enum const.
	NetworkCorsErrorPreflightMissingPrivateNetworkAccessName NetworkCorsError = "PreflightMissingPrivateNetworkAccessName"

	// NetworkCorsErrorPrivateNetworkAccessPermissionUnavailable enum const.
	NetworkCorsErrorPrivateNetworkAccessPermissionUnavailable NetworkCorsError = "PrivateNetworkAccessPermissionUnavailable"

	// NetworkCorsErrorPrivateNetworkAccessPermissionDenied enum const.
	NetworkCorsErrorPrivateNetworkAccessPermissionDenied NetworkCorsError = "PrivateNetworkAccessPermissionDenied"
)

type NetworkCorsErrorStatus <- 0.90.0

1
2
3
4
5
6
7
type NetworkCorsErrorStatus struct {
	// CorsError ...
	CorsError NetworkCorsError `json:"corsError"`

	// FailedParameter ...
	FailedParameter string `json:"failedParameter"`
}

NetworkCorsErrorStatus …

type NetworkCrossOriginEmbedderPolicyStatus <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkCrossOriginEmbedderPolicyStatus struct {
	// Value ...
	Value NetworkCrossOriginEmbedderPolicyValue `json:"value"`

	// ReportOnlyValue ...
	ReportOnlyValue NetworkCrossOriginEmbedderPolicyValue `json:"reportOnlyValue"`

	// ReportingEndpoint (optional) ...
	ReportingEndpoint string `json:"reportingEndpoint,omitempty"`

	// ReportOnlyReportingEndpoint (optional) ...
	ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"`
}

NetworkCrossOriginEmbedderPolicyStatus (experimental) …

type NetworkCrossOriginEmbedderPolicyValue <- 0.72.0

1
type NetworkCrossOriginEmbedderPolicyValue string

NetworkCrossOriginEmbedderPolicyValue (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkCrossOriginEmbedderPolicyValueNone enum const.
	NetworkCrossOriginEmbedderPolicyValueNone NetworkCrossOriginEmbedderPolicyValue = "None"

	// NetworkCrossOriginEmbedderPolicyValueCredentialless enum const.
	NetworkCrossOriginEmbedderPolicyValueCredentialless NetworkCrossOriginEmbedderPolicyValue = "Credentialless"

	// NetworkCrossOriginEmbedderPolicyValueRequireCorp enum const.
	NetworkCrossOriginEmbedderPolicyValueRequireCorp NetworkCrossOriginEmbedderPolicyValue = "RequireCorp"
)

type NetworkCrossOriginOpenerPolicyStatus <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkCrossOriginOpenerPolicyStatus struct {
	// Value ...
	Value NetworkCrossOriginOpenerPolicyValue `json:"value"`

	// ReportOnlyValue ...
	ReportOnlyValue NetworkCrossOriginOpenerPolicyValue `json:"reportOnlyValue"`

	// ReportingEndpoint (optional) ...
	ReportingEndpoint string `json:"reportingEndpoint,omitempty"`

	// ReportOnlyReportingEndpoint (optional) ...
	ReportOnlyReportingEndpoint string `json:"reportOnlyReportingEndpoint,omitempty"`
}

NetworkCrossOriginOpenerPolicyStatus (experimental) …

type NetworkCrossOriginOpenerPolicyValue <- 0.72.0

1
type NetworkCrossOriginOpenerPolicyValue string

NetworkCrossOriginOpenerPolicyValue (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// NetworkCrossOriginOpenerPolicyValueSameOrigin enum const.
	NetworkCrossOriginOpenerPolicyValueSameOrigin NetworkCrossOriginOpenerPolicyValue = "SameOrigin"

	// NetworkCrossOriginOpenerPolicyValueSameOriginAllowPopups enum const.
	NetworkCrossOriginOpenerPolicyValueSameOriginAllowPopups NetworkCrossOriginOpenerPolicyValue = "SameOriginAllowPopups"

	// NetworkCrossOriginOpenerPolicyValueRestrictProperties enum const.
	NetworkCrossOriginOpenerPolicyValueRestrictProperties NetworkCrossOriginOpenerPolicyValue = "RestrictProperties"

	// NetworkCrossOriginOpenerPolicyValueUnsafeNone enum const.
	NetworkCrossOriginOpenerPolicyValueUnsafeNone NetworkCrossOriginOpenerPolicyValue = "UnsafeNone"

	// NetworkCrossOriginOpenerPolicyValueSameOriginPlusCoep enum const.
	NetworkCrossOriginOpenerPolicyValueSameOriginPlusCoep NetworkCrossOriginOpenerPolicyValue = "SameOriginPlusCoep"

	// NetworkCrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep enum const.
	NetworkCrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep NetworkCrossOriginOpenerPolicyValue = "RestrictPropertiesPlusCoep"
)

type NetworkDataReceived

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type NetworkDataReceived struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// DataLength Data chunk length.
	DataLength int `json:"dataLength"`

	// EncodedDataLength Actual bytes received (might be less than dataLength for compressed encodings).
	EncodedDataLength int `json:"encodedDataLength"`

	// Data (experimental) (optional) Data that was received.
	Data []byte `json:"data,omitempty"`
}

NetworkDataReceived Fired when data chunk was received over the network.

(NetworkDataReceived) ProtoEvent <- 0.72.0

1
func (evt NetworkDataReceived) ProtoEvent() string

ProtoEvent name.

type NetworkDeleteCookies

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type NetworkDeleteCookies struct {
	// Name of the cookies to remove.
	Name string `json:"name"`

	// URL (optional) If specified, deletes all the cookies with the given name where domain and path match
	// provided URL.
	URL string `json:"url,omitempty"`

	// Domain (optional) If specified, deletes only cookies with the exact domain.
	Domain string `json:"domain,omitempty"`

	// Path (optional) If specified, deletes only cookies with the exact path.
	Path string `json:"path,omitempty"`

	// PartitionKey (experimental) (optional) If specified, deletes only cookies with the the given name and partitionKey where
	// all partition key attributes match the cookie partition key attribute.
	PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
}

NetworkDeleteCookies Deletes browser cookies with matching name and url or domain/path/partitionKey pair.

(NetworkDeleteCookies) Call

1
func (m NetworkDeleteCookies) Call(c Client) error

Call sends the request.

(NetworkDeleteCookies) ProtoReq <- 0.74.0

1
func (m NetworkDeleteCookies) ProtoReq() string

ProtoReq name.

type NetworkDisable

1
type NetworkDisable struct{}

NetworkDisable Disables network tracking, prevents network events from being sent to the client.

(NetworkDisable) Call

1
func (m NetworkDisable) Call(c Client) error

Call sends the request.

(NetworkDisable) ProtoReq <- 0.74.0

1
func (m NetworkDisable) ProtoReq() string

ProtoReq name.

type NetworkEmulateNetworkConditions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type NetworkEmulateNetworkConditions struct {
	// Offline True to emulate internet disconnection.
	Offline bool `json:"offline"`

	// Latency Minimum latency from request sent to response headers received (ms).
	Latency float64 `json:"latency"`

	// DownloadThroughput Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
	DownloadThroughput float64 `json:"downloadThroughput"`

	// UploadThroughput Maximal aggregated upload throughput (bytes/sec).  -1 disables upload throttling.
	UploadThroughput float64 `json:"uploadThroughput"`

	// ConnectionType (optional) Connection type if known.
	ConnectionType NetworkConnectionType `json:"connectionType,omitempty"`

	// PacketLoss (experimental) (optional) WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
	PacketLoss *float64 `json:"packetLoss,omitempty"`

	// PacketQueueLength (experimental) (optional) WebRTC packet queue length (packet). 0 removes any queue length limitations.
	PacketQueueLength *int `json:"packetQueueLength,omitempty"`

	// PacketReordering (experimental) (optional) WebRTC packetReordering feature.
	PacketReordering bool `json:"packetReordering,omitempty"`
}

NetworkEmulateNetworkConditions Activates emulation of network conditions.

(NetworkEmulateNetworkConditions) Call

1
func (m NetworkEmulateNetworkConditions) Call(c Client) error

Call sends the request.

(NetworkEmulateNetworkConditions) ProtoReq <- 0.74.0

1
func (m NetworkEmulateNetworkConditions) ProtoReq() string

ProtoReq name.

type NetworkEnable

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkEnable struct {
	// MaxTotalBufferSize (experimental) (optional) Buffer size in bytes to use when preserving network payloads (XHRs, etc).
	MaxTotalBufferSize *int `json:"maxTotalBufferSize,omitempty"`

	// MaxResourceBufferSize (experimental) (optional) Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
	MaxResourceBufferSize *int `json:"maxResourceBufferSize,omitempty"`

	// MaxPostDataSize (optional) Longest post body size (in bytes) that would be included in requestWillBeSent notification
	MaxPostDataSize *int `json:"maxPostDataSize,omitempty"`
}

NetworkEnable Enables network tracking, network events will now be delivered to the client.

(NetworkEnable) Call

1
func (m NetworkEnable) Call(c Client) error

Call sends the request.

(NetworkEnable) ProtoReq <- 0.74.0

1
func (m NetworkEnable) ProtoReq() string

ProtoReq name.

type NetworkEnableReportingAPI <- 0.102.0

1
2
3
4
type NetworkEnableReportingAPI struct {
	// Enable Whether to enable or disable events for the Reporting API
	Enable bool `json:"enable"`
}

NetworkEnableReportingAPI (experimental) Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers ‘reportingApiReportAdded’ for all existing reports.

(NetworkEnableReportingAPI) Call <- 0.102.0

1
func (m NetworkEnableReportingAPI) Call(c Client) error

Call sends the request.

(NetworkEnableReportingAPI) ProtoReq <- 0.102.0

1
func (m NetworkEnableReportingAPI) ProtoReq() string

ProtoReq name.

type NetworkErrorReason

1
type NetworkErrorReason string

NetworkErrorReason Network level fetch failure reason.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const (
	// NetworkErrorReasonFailed enum const.
	NetworkErrorReasonFailed NetworkErrorReason = "Failed"

	// NetworkErrorReasonAborted enum const.
	NetworkErrorReasonAborted NetworkErrorReason = "Aborted"

	// NetworkErrorReasonTimedOut enum const.
	NetworkErrorReasonTimedOut NetworkErrorReason = "TimedOut"

	// NetworkErrorReasonAccessDenied enum const.
	NetworkErrorReasonAccessDenied NetworkErrorReason = "AccessDenied"

	// NetworkErrorReasonConnectionClosed enum const.
	NetworkErrorReasonConnectionClosed NetworkErrorReason = "ConnectionClosed"

	// NetworkErrorReasonConnectionReset enum const.
	NetworkErrorReasonConnectionReset NetworkErrorReason = "ConnectionReset"

	// NetworkErrorReasonConnectionRefused enum const.
	NetworkErrorReasonConnectionRefused NetworkErrorReason = "ConnectionRefused"

	// NetworkErrorReasonConnectionAborted enum const.
	NetworkErrorReasonConnectionAborted NetworkErrorReason = "ConnectionAborted"

	// NetworkErrorReasonConnectionFailed enum const.
	NetworkErrorReasonConnectionFailed NetworkErrorReason = "ConnectionFailed"

	// NetworkErrorReasonNameNotResolved enum const.
	NetworkErrorReasonNameNotResolved NetworkErrorReason = "NameNotResolved"

	// NetworkErrorReasonInternetDisconnected enum const.
	NetworkErrorReasonInternetDisconnected NetworkErrorReason = "InternetDisconnected"

	// NetworkErrorReasonAddressUnreachable enum const.
	NetworkErrorReasonAddressUnreachable NetworkErrorReason = "AddressUnreachable"

	// NetworkErrorReasonBlockedByClient enum const.
	NetworkErrorReasonBlockedByClient NetworkErrorReason = "BlockedByClient"

	// NetworkErrorReasonBlockedByResponse enum const.
	NetworkErrorReasonBlockedByResponse NetworkErrorReason = "BlockedByResponse"
)

type NetworkEventSourceMessageReceived

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type NetworkEventSourceMessageReceived struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// EventName Message type.
	EventName string `json:"eventName"`

	// EventID Message identifier.
	EventID string `json:"eventId"`

	// Data Message content.
	Data string `json:"data"`
}

NetworkEventSourceMessageReceived Fired when EventSource message is received.

(NetworkEventSourceMessageReceived) ProtoEvent <- 0.72.0

1
func (evt NetworkEventSourceMessageReceived) ProtoEvent() string

ProtoEvent name.

type NetworkExemptedSetCookieWithReason <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkExemptedSetCookieWithReason struct {
	// ExemptionReason The reason the cookie was exempted.
	ExemptionReason NetworkCookieExemptionReason `json:"exemptionReason"`

	// CookieLine The string representing this individual cookie as it would appear in the header.
	CookieLine string `json:"cookieLine"`

	// Cookie The cookie object representing the cookie.
	Cookie *NetworkCookie `json:"cookie"`
}

NetworkExemptedSetCookieWithReason (experimental) A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.

type NetworkGetAllCookies

1
type NetworkGetAllCookies struct{}

NetworkGetAllCookies (deprecated) Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. Deprecated. Use Storage.getCookies instead.

(NetworkGetAllCookies) Call

1
func (m NetworkGetAllCookies) Call(c Client) (*NetworkGetAllCookiesResult, error)

Call the request.

(NetworkGetAllCookies) ProtoReq <- 0.74.0

1
func (m NetworkGetAllCookies) ProtoReq() string

ProtoReq name.

type NetworkGetAllCookiesResult

1
2
3
4
type NetworkGetAllCookiesResult struct {
	// Cookies Array of cookie objects.
	Cookies []*NetworkCookie `json:"cookies"`
}

NetworkGetAllCookiesResult (deprecated) …

type NetworkGetCertificate

1
2
3
4
type NetworkGetCertificate struct {
	// Origin to get certificate for.
	Origin string `json:"origin"`
}

NetworkGetCertificate (experimental) Returns the DER-encoded certificate.

(NetworkGetCertificate) Call

1
func (m NetworkGetCertificate) Call(c Client) (*NetworkGetCertificateResult, error)

Call the request.

(NetworkGetCertificate) ProtoReq <- 0.74.0

1
func (m NetworkGetCertificate) ProtoReq() string

ProtoReq name.

type NetworkGetCertificateResult

1
2
3
4
type NetworkGetCertificateResult struct {
	// TableNames ...
	TableNames []string `json:"tableNames"`
}

NetworkGetCertificateResult (experimental) …

type NetworkGetCookies

1
2
3
4
5
6
type NetworkGetCookies struct {
	// Urls (optional) The list of URLs for which applicable cookies will be fetched.
	// If not specified, it's assumed to be set to the list containing
	// the URLs of the page and all of its subframes.
	Urls []string `json:"urls,omitempty"`
}

NetworkGetCookies Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.

(NetworkGetCookies) Call

1
func (m NetworkGetCookies) Call(c Client) (*NetworkGetCookiesResult, error)

Call the request.

(NetworkGetCookies) ProtoReq <- 0.74.0

1
func (m NetworkGetCookies) ProtoReq() string

ProtoReq name.

type NetworkGetCookiesResult

1
2
3
4
type NetworkGetCookiesResult struct {
	// Cookies Array of cookie objects.
	Cookies []*NetworkCookie `json:"cookies"`
}

NetworkGetCookiesResult …

type NetworkGetRequestPostData

1
2
3
4
type NetworkGetRequestPostData struct {
	// RequestID Identifier of the network request to get content for.
	RequestID NetworkRequestID `json:"requestId"`
}

NetworkGetRequestPostData Returns post data sent with the request. Returns an error when no data was sent with the request.

(NetworkGetRequestPostData) Call

1
func (m NetworkGetRequestPostData) Call(c Client) (*NetworkGetRequestPostDataResult, error)

Call the request.

(NetworkGetRequestPostData) ProtoReq <- 0.74.0

1
func (m NetworkGetRequestPostData) ProtoReq() string

ProtoReq name.

type NetworkGetRequestPostDataResult

1
2
3
4
type NetworkGetRequestPostDataResult struct {
	// PostData Request body string, omitting files from multipart requests
	PostData string `json:"postData"`
}

NetworkGetRequestPostDataResult …

type NetworkGetResponseBody

1
2
3
4
type NetworkGetResponseBody struct {
	// RequestID Identifier of the network request to get content for.
	RequestID NetworkRequestID `json:"requestId"`
}

NetworkGetResponseBody Returns content served for the given request.

(NetworkGetResponseBody) Call

1
func (m NetworkGetResponseBody) Call(c Client) (*NetworkGetResponseBodyResult, error)

Call the request.

(NetworkGetResponseBody) ProtoReq <- 0.74.0

1
func (m NetworkGetResponseBody) ProtoReq() string

ProtoReq name.

type NetworkGetResponseBodyForInterception

1
2
3
4
type NetworkGetResponseBodyForInterception struct {
	// InterceptionID Identifier for the intercepted request to get body for.
	InterceptionID NetworkInterceptionID `json:"interceptionId"`
}

NetworkGetResponseBodyForInterception (experimental) Returns content served for the given currently intercepted request.

(NetworkGetResponseBodyForInterception) Call

1
func (m NetworkGetResponseBodyForInterception) Call(c Client) (*NetworkGetResponseBodyForInterceptionResult, error)

Call the request.

(NetworkGetResponseBodyForInterception) ProtoReq <- 0.74.0

1
func (m NetworkGetResponseBodyForInterception) ProtoReq() string

ProtoReq name.

type NetworkGetResponseBodyForInterceptionResult

1
2
3
4
5
6
7
type NetworkGetResponseBodyForInterceptionResult struct {
	// Body Response body.
	Body string `json:"body"`

	// Base64Encoded True, if content was sent as base64.
	Base64Encoded bool `json:"base64Encoded"`
}

NetworkGetResponseBodyForInterceptionResult (experimental) …

type NetworkGetResponseBodyResult

1
2
3
4
5
6
7
type NetworkGetResponseBodyResult struct {
	// Body Response body.
	Body string `json:"body"`

	// Base64Encoded True, if content was sent as base64.
	Base64Encoded bool `json:"base64Encoded"`
}

NetworkGetResponseBodyResult …

type NetworkGetSecurityIsolationStatus <- 0.72.0

1
2
3
4
type NetworkGetSecurityIsolationStatus struct {
	// FrameID (optional) If no frameId is provided, the status of the target is provided.
	FrameID PageFrameID `json:"frameId,omitempty"`
}

NetworkGetSecurityIsolationStatus (experimental) Returns information about the COEP/COOP isolation status.

(NetworkGetSecurityIsolationStatus) Call <- 0.72.0

1
func (m NetworkGetSecurityIsolationStatus) Call(c Client) (*NetworkGetSecurityIsolationStatusResult, error)

Call the request.

(NetworkGetSecurityIsolationStatus) ProtoReq <- 0.74.0

1
func (m NetworkGetSecurityIsolationStatus) ProtoReq() string

ProtoReq name.

type NetworkGetSecurityIsolationStatusResult <- 0.72.0

1
2
3
4
type NetworkGetSecurityIsolationStatusResult struct {
	// Status ...
	Status *NetworkSecurityIsolationStatus `json:"status"`
}

NetworkGetSecurityIsolationStatusResult (experimental) …

type NetworkHeaders

1
type NetworkHeaders map[string]gson.JSON

NetworkHeaders Request / response headers as keys / values of JSON object.

type NetworkIPAddressSpace <- 0.90.0

1
type NetworkIPAddressSpace string

NetworkIPAddressSpace (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// NetworkIPAddressSpaceLocal enum const.
	NetworkIPAddressSpaceLocal NetworkIPAddressSpace = "Local"

	// NetworkIPAddressSpacePrivate enum const.
	NetworkIPAddressSpacePrivate NetworkIPAddressSpace = "Private"

	// NetworkIPAddressSpacePublic enum const.
	NetworkIPAddressSpacePublic NetworkIPAddressSpace = "Public"

	// NetworkIPAddressSpaceUnknown enum const.
	NetworkIPAddressSpaceUnknown NetworkIPAddressSpace = "Unknown"
)

type NetworkInitiator

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
type NetworkInitiator struct {
	// Type of this initiator.
	Type NetworkInitiatorType `json:"type"`

	// Stack (optional) Initiator JavaScript stack trace, set for Script only.
	Stack *RuntimeStackTrace `json:"stack,omitempty"`

	// URL (optional) Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
	URL string `json:"url,omitempty"`

	// LineNumber (optional) Initiator line number, set for Parser type or for Script type (when script is importing
	// module) (0-based).
	LineNumber *float64 `json:"lineNumber,omitempty"`

	// ColumnNumber (optional) Initiator column number, set for Parser type or for Script type (when script is importing
	// module) (0-based).
	ColumnNumber *float64 `json:"columnNumber,omitempty"`

	// RequestID (optional) Set if another request triggered this request (e.g. preflight).
	RequestID NetworkRequestID `json:"requestId,omitempty"`
}

NetworkInitiator Information about the request initiator.

type NetworkInitiatorType

1
type NetworkInitiatorType string

NetworkInitiatorType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// NetworkInitiatorTypeParser enum const.
	NetworkInitiatorTypeParser NetworkInitiatorType = "parser"

	// NetworkInitiatorTypeScript enum const.
	NetworkInitiatorTypeScript NetworkInitiatorType = "script"

	// NetworkInitiatorTypePreload enum const.
	NetworkInitiatorTypePreload NetworkInitiatorType = "preload"

	// NetworkInitiatorTypeSignedExchange enum const.
	NetworkInitiatorTypeSignedExchange NetworkInitiatorType = "SignedExchange"

	// NetworkInitiatorTypePreflight enum const.
	NetworkInitiatorTypePreflight NetworkInitiatorType = "preflight"

	// NetworkInitiatorTypeOther enum const.
	NetworkInitiatorTypeOther NetworkInitiatorType = "other"
)

type NetworkInterceptionID

1
type NetworkInterceptionID string

NetworkInterceptionID Unique intercepted request identifier.

type NetworkInterceptionStage

1
type NetworkInterceptionStage string

NetworkInterceptionStage (experimental) Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.

1
2
3
4
5
6
7
const (
	// NetworkInterceptionStageRequest enum const.
	NetworkInterceptionStageRequest NetworkInterceptionStage = "Request"

	// NetworkInterceptionStageHeadersReceived enum const.
	NetworkInterceptionStageHeadersReceived NetworkInterceptionStage = "HeadersReceived"
)

type NetworkLoadNetworkResource <- 0.82.3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type NetworkLoadNetworkResource struct {
	// FrameID (optional) Frame id to get the resource for. Mandatory for frame targets, and
	// should be omitted for worker targets.
	FrameID PageFrameID `json:"frameId,omitempty"`

	// URL of the resource to get content for.
	URL string `json:"url"`

	// Options for the request.
	Options *NetworkLoadNetworkResourceOptions `json:"options"`
}

NetworkLoadNetworkResource (experimental) Fetches the resource and returns the content.

(NetworkLoadNetworkResource) Call <- 0.82.3

1
func (m NetworkLoadNetworkResource) Call(c Client) (*NetworkLoadNetworkResourceResult, error)

Call the request.

(NetworkLoadNetworkResource) ProtoReq <- 0.82.3

1
func (m NetworkLoadNetworkResource) ProtoReq() string

ProtoReq name.

type NetworkLoadNetworkResourceOptions <- 0.82.3

1
2
3
4
5
6
7
type NetworkLoadNetworkResourceOptions struct {
	// DisableCache ...
	DisableCache bool `json:"disableCache"`

	// IncludeCredentials ...
	IncludeCredentials bool `json:"includeCredentials"`
}

NetworkLoadNetworkResourceOptions (experimental) An options object that may be extended later to better support CORS, CORB and streaming.

type NetworkLoadNetworkResourcePageResult <- 0.82.3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type NetworkLoadNetworkResourcePageResult struct {
	// Success ...
	Success bool `json:"success"`

	// NetError (optional) Optional values used for error reporting.
	NetError *float64 `json:"netError,omitempty"`

	// NetErrorName (optional) ...
	NetErrorName string `json:"netErrorName,omitempty"`

	// HTTPStatusCode (optional) ...
	HTTPStatusCode *float64 `json:"httpStatusCode,omitempty"`

	// Stream (optional) If successful, one of the following two fields holds the result.
	Stream IOStreamHandle `json:"stream,omitempty"`

	// Headers (optional) Response headers.
	Headers NetworkHeaders `json:"headers,omitempty"`
}

NetworkLoadNetworkResourcePageResult (experimental) An object providing the result of a network resource load.

type NetworkLoadNetworkResourceResult <- 0.82.3

1
2
3
4
type NetworkLoadNetworkResourceResult struct {
	// Resource ...
	Resource *NetworkLoadNetworkResourcePageResult `json:"resource"`
}

NetworkLoadNetworkResourceResult (experimental) …

type NetworkLoaderID

1
type NetworkLoaderID string

NetworkLoaderID Unique loader identifier.

type NetworkLoadingFailed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type NetworkLoadingFailed struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// Type Resource type.
	Type NetworkResourceType `json:"type"`

	// ErrorText Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h
	ErrorText string `json:"errorText"`

	// Canceled (optional) True if loading was canceled.
	Canceled bool `json:"canceled,omitempty"`

	// BlockedReason (optional) The reason why loading was blocked, if any.
	BlockedReason NetworkBlockedReason `json:"blockedReason,omitempty"`

	// CorsErrorStatus (optional) The reason why loading was blocked by CORS, if any.
	CorsErrorStatus *NetworkCorsErrorStatus `json:"corsErrorStatus,omitempty"`
}

NetworkLoadingFailed Fired when HTTP request has failed to load.

(NetworkLoadingFailed) ProtoEvent <- 0.72.0

1
func (evt NetworkLoadingFailed) ProtoEvent() string

ProtoEvent name.

type NetworkLoadingFinished

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkLoadingFinished struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// EncodedDataLength Total number of bytes received for this request.
	EncodedDataLength float64 `json:"encodedDataLength"`
}

NetworkLoadingFinished Fired when HTTP request has finished loading.

(NetworkLoadingFinished) ProtoEvent <- 0.72.0

1
func (evt NetworkLoadingFinished) ProtoEvent() string

ProtoEvent name.

type NetworkPolicyUpdated <- 0.116.2

1
type NetworkPolicyUpdated struct{}

NetworkPolicyUpdated (experimental) Fired once security policy has been updated.

(NetworkPolicyUpdated) ProtoEvent <- 0.116.2

1
func (evt NetworkPolicyUpdated) ProtoEvent() string

ProtoEvent name.

type NetworkPostDataEntry <- 0.72.0

1
2
3
4
type NetworkPostDataEntry struct {
	// Bytes (optional) ...
	Bytes []byte `json:"bytes,omitempty"`
}

NetworkPostDataEntry Post data entry for HTTP request.

type NetworkPrivateNetworkRequestPolicy <- 0.90.0

1
type NetworkPrivateNetworkRequestPolicy string

NetworkPrivateNetworkRequestPolicy (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// NetworkPrivateNetworkRequestPolicyAllow enum const.
	NetworkPrivateNetworkRequestPolicyAllow NetworkPrivateNetworkRequestPolicy = "Allow"

	// NetworkPrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate enum const.
	NetworkPrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate NetworkPrivateNetworkRequestPolicy = "BlockFromInsecureToMorePrivate"

	// NetworkPrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate enum const.
	NetworkPrivateNetworkRequestPolicyWarnFromInsecureToMorePrivate NetworkPrivateNetworkRequestPolicy = "WarnFromInsecureToMorePrivate"

	// NetworkPrivateNetworkRequestPolicyPreflightBlock enum const.
	NetworkPrivateNetworkRequestPolicyPreflightBlock NetworkPrivateNetworkRequestPolicy = "PreflightBlock"

	// NetworkPrivateNetworkRequestPolicyPreflightWarn enum const.
	NetworkPrivateNetworkRequestPolicyPreflightWarn NetworkPrivateNetworkRequestPolicy = "PreflightWarn"
)

type NetworkReplayXHR

1
2
3
4
type NetworkReplayXHR struct {
	// RequestID Identifier of XHR to replay.
	RequestID NetworkRequestID `json:"requestId"`
}

NetworkReplayXHR (experimental) This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.

(NetworkReplayXHR) Call

1
func (m NetworkReplayXHR) Call(c Client) error

Call sends the request.

(NetworkReplayXHR) ProtoReq <- 0.74.0

1
func (m NetworkReplayXHR) ProtoReq() string

ProtoReq name.

type NetworkReportID <- 0.102.0

1
type NetworkReportID string

NetworkReportID (experimental) …

type NetworkReportStatus <- 0.102.0

1
type NetworkReportStatus string

NetworkReportStatus (experimental) The status of a Reporting API report.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// NetworkReportStatusQueued enum const.
	NetworkReportStatusQueued NetworkReportStatus = "Queued"

	// NetworkReportStatusPending enum const.
	NetworkReportStatusPending NetworkReportStatus = "Pending"

	// NetworkReportStatusMarkedForRemoval enum const.
	NetworkReportStatusMarkedForRemoval NetworkReportStatus = "MarkedForRemoval"

	// NetworkReportStatusSuccess enum const.
	NetworkReportStatusSuccess NetworkReportStatus = "Success"
)

type NetworkReportingAPIEndpoint <- 0.102.0

1
2
3
4
5
6
7
type NetworkReportingAPIEndpoint struct {
	// URL The URL of the endpoint to which reports may be delivered.
	URL string `json:"url"`

	// GroupName Name of the endpoint group.
	GroupName string `json:"groupName"`
}

NetworkReportingAPIEndpoint (experimental) …

type NetworkReportingAPIEndpointsChangedForOrigin <- 0.102.0

1
2
3
4
5
6
7
type NetworkReportingAPIEndpointsChangedForOrigin struct {
	// Origin of the document(s) which configured the endpoints.
	Origin string `json:"origin"`

	// Endpoints ...
	Endpoints []*NetworkReportingAPIEndpoint `json:"endpoints"`
}

NetworkReportingAPIEndpointsChangedForOrigin (experimental) …

(NetworkReportingAPIEndpointsChangedForOrigin) ProtoEvent <- 0.102.0

1
func (evt NetworkReportingAPIEndpointsChangedForOrigin) ProtoEvent() string

ProtoEvent name.

type NetworkReportingAPIReport <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
type NetworkReportingAPIReport struct {
	// ID ...
	ID NetworkReportID `json:"id"`

	// InitiatorURL The URL of the document that triggered the report.
	InitiatorURL string `json:"initiatorUrl"`

	// Destination The name of the endpoint group that should be used to deliver the report.
	Destination string `json:"destination"`

	// Type The type of the report (specifies the set of data that is contained in the report body).
	Type string `json:"type"`

	// Timestamp When the report was generated.
	Timestamp TimeSinceEpoch `json:"timestamp"`

	// Depth How many uploads deep the related request was.
	Depth int `json:"depth"`

	// CompletedAttempts The number of delivery attempts made so far, not including an active attempt.
	CompletedAttempts int `json:"completedAttempts"`

	// Body ...
	Body map[string]gson.JSON `json:"body"`

	// Status ...
	Status NetworkReportStatus `json:"status"`
}

NetworkReportingAPIReport (experimental) An object representing a report generated by the Reporting API.

type NetworkReportingAPIReportAdded <- 0.102.0

1
2
3
4
type NetworkReportingAPIReportAdded struct {
	// Report ...
	Report *NetworkReportingAPIReport `json:"report"`
}

NetworkReportingAPIReportAdded (experimental) Is sent whenever a new report is added. And after ’enableReportingApi’ for all existing reports.

(NetworkReportingAPIReportAdded) ProtoEvent <- 0.102.0

1
func (evt NetworkReportingAPIReportAdded) ProtoEvent() string

ProtoEvent name.

type NetworkReportingAPIReportUpdated <- 0.102.0

1
2
3
4
type NetworkReportingAPIReportUpdated struct {
	// Report ...
	Report *NetworkReportingAPIReport `json:"report"`
}

NetworkReportingAPIReportUpdated (experimental) …

(NetworkReportingAPIReportUpdated) ProtoEvent <- 0.102.0

1
func (evt NetworkReportingAPIReportUpdated) ProtoEvent() string

ProtoEvent name.

type NetworkRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
type NetworkRequest struct {
	// URL Request URL (without fragment).
	URL string `json:"url"`

	// URLFragment (optional) Fragment of the requested URL starting with hash, if present.
	URLFragment string `json:"urlFragment,omitempty"`

	// Method HTTP request method.
	Method string `json:"method"`

	// Headers HTTP request headers.
	Headers NetworkHeaders `json:"headers"`

	// PostData (deprecated) (optional) HTTP POST request data.
	// Use postDataEntries instead.
	PostData string `json:"postData,omitempty"`

	// HasPostData (optional) True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
	HasPostData bool `json:"hasPostData,omitempty"`

	// PostDataEntries (experimental) (optional) Request body elements (post data broken into individual entries).
	PostDataEntries []*NetworkPostDataEntry `json:"postDataEntries,omitempty"`

	// MixedContentType (optional) The mixed content type of the request.
	MixedContentType SecurityMixedContentType `json:"mixedContentType,omitempty"`

	// InitialPriority Priority of the resource request at the time request is sent.
	InitialPriority NetworkResourcePriority `json:"initialPriority"`

	// ReferrerPolicy The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
	ReferrerPolicy NetworkRequestReferrerPolicy `json:"referrerPolicy"`

	// IsLinkPreload (optional) Whether is loaded via link preload.
	IsLinkPreload bool `json:"isLinkPreload,omitempty"`

	// TrustTokenParams (experimental) (optional) Set for requests when the TrustToken API is used. Contains the parameters
	// passed by the developer (e.g. via "fetch") as understood by the backend.
	TrustTokenParams *NetworkTrustTokenParams `json:"trustTokenParams,omitempty"`

	// IsSameSite (experimental) (optional) True if this resource request is considered to be the 'same site' as the
	// request corresponding to the main frame.
	IsSameSite bool `json:"isSameSite,omitempty"`
}

NetworkRequest HTTP request data.

type NetworkRequestID

1
type NetworkRequestID string

NetworkRequestID Unique request identifier.

type NetworkRequestIntercepted

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
type NetworkRequestIntercepted struct {
	// InterceptionID Each request the page makes will have a unique id, however if any redirects are encountered
	// while processing that fetch, they will be reported with the same id as the original fetch.
	// Likewise if HTTP authentication is needed then the same fetch id will be used.
	InterceptionID NetworkInterceptionID `json:"interceptionId"`

	// Request ...
	Request *NetworkRequest `json:"request"`

	// FrameID The id of the frame that initiated the request.
	FrameID PageFrameID `json:"frameId"`

	// ResourceType How the requested resource will be used.
	ResourceType NetworkResourceType `json:"resourceType"`

	// IsNavigationRequest Whether this is a navigation request, which can abort the navigation completely.
	IsNavigationRequest bool `json:"isNavigationRequest"`

	// IsDownload (optional) Set if the request is a navigation that will result in a download.
	// Only present after response is received from the server (i.e. HeadersReceived stage).
	IsDownload bool `json:"isDownload,omitempty"`

	// RedirectURL (optional) Redirect location, only sent if a redirect was intercepted.
	RedirectURL string `json:"redirectUrl,omitempty"`

	// AuthChallenge (optional) Details of the Authorization Challenge encountered. If this is set then
	// continueInterceptedRequest must contain an authChallengeResponse.
	AuthChallenge *NetworkAuthChallenge `json:"authChallenge,omitempty"`

	// ResponseErrorReason (optional) Response error if intercepted at response stage or if redirect occurred while intercepting
	// request.
	ResponseErrorReason NetworkErrorReason `json:"responseErrorReason,omitempty"`

	// ResponseStatusCode (optional) Response code if intercepted at response stage or if redirect occurred while intercepting
	// request or auth retry occurred.
	ResponseStatusCode *int `json:"responseStatusCode,omitempty"`

	// ResponseHeaders (optional) Response headers if intercepted at the response stage or if redirect occurred while
	// intercepting request or auth retry occurred.
	ResponseHeaders NetworkHeaders `json:"responseHeaders,omitempty"`

	// RequestID (optional) If the intercepted request had a corresponding requestWillBeSent event fired for it, then
	// this requestId will be the same as the requestId present in the requestWillBeSent event.
	RequestID NetworkRequestID `json:"requestId,omitempty"`
}

NetworkRequestIntercepted (deprecated) (experimental) Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

(NetworkRequestIntercepted) ProtoEvent <- 0.72.0

1
func (evt NetworkRequestIntercepted) ProtoEvent() string

ProtoEvent name.

type NetworkRequestPattern

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type NetworkRequestPattern struct {
	// URLPattern (optional) Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is
	// backslash. Omitting is equivalent to `"*"`.
	URLPattern string `json:"urlPattern,omitempty"`

	// ResourceType (optional) If set, only requests for matching resource types will be intercepted.
	ResourceType NetworkResourceType `json:"resourceType,omitempty"`

	// InterceptionStage (optional) Stage at which to begin intercepting requests. Default is Request.
	InterceptionStage NetworkInterceptionStage `json:"interceptionStage,omitempty"`
}

NetworkRequestPattern (experimental) Request pattern for interception.

type NetworkRequestReferrerPolicy

1
type NetworkRequestReferrerPolicy string

NetworkRequestReferrerPolicy enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const (
	// NetworkRequestReferrerPolicyUnsafeURL enum const.
	NetworkRequestReferrerPolicyUnsafeURL NetworkRequestReferrerPolicy = "unsafe-url"

	// NetworkRequestReferrerPolicyNoReferrerWhenDowngrade enum const.
	NetworkRequestReferrerPolicyNoReferrerWhenDowngrade NetworkRequestReferrerPolicy = "no-referrer-when-downgrade"

	// NetworkRequestReferrerPolicyNoReferrer enum const.
	NetworkRequestReferrerPolicyNoReferrer NetworkRequestReferrerPolicy = "no-referrer"

	// NetworkRequestReferrerPolicyOrigin enum const.
	NetworkRequestReferrerPolicyOrigin NetworkRequestReferrerPolicy = "origin"

	// NetworkRequestReferrerPolicyOriginWhenCrossOrigin enum const.
	NetworkRequestReferrerPolicyOriginWhenCrossOrigin NetworkRequestReferrerPolicy = "origin-when-cross-origin"

	// NetworkRequestReferrerPolicySameOrigin enum const.
	NetworkRequestReferrerPolicySameOrigin NetworkRequestReferrerPolicy = "same-origin"

	// NetworkRequestReferrerPolicyStrictOrigin enum const.
	NetworkRequestReferrerPolicyStrictOrigin NetworkRequestReferrerPolicy = "strict-origin"

	// NetworkRequestReferrerPolicyStrictOriginWhenCrossOrigin enum const.
	NetworkRequestReferrerPolicyStrictOriginWhenCrossOrigin NetworkRequestReferrerPolicy = "strict-origin-when-cross-origin"
)

type NetworkRequestServedFromCache

1
2
3
4
type NetworkRequestServedFromCache struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`
}

NetworkRequestServedFromCache Fired if request ended up loading from cache.

(NetworkRequestServedFromCache) ProtoEvent <- 0.72.0

1
func (evt NetworkRequestServedFromCache) ProtoEvent() string

ProtoEvent name.

type NetworkRequestWillBeSent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
type NetworkRequestWillBeSent struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// LoaderID Loader identifier. Empty string if the request is fetched from worker.
	LoaderID NetworkLoaderID `json:"loaderId"`

	// DocumentURL URL of the document this request is loaded for.
	DocumentURL string `json:"documentURL"`

	// Request data.
	Request *NetworkRequest `json:"request"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// WallTime Timestamp.
	WallTime TimeSinceEpoch `json:"wallTime"`

	// Initiator Request initiator.
	Initiator *NetworkInitiator `json:"initiator"`

	// RedirectHasExtraInfo (experimental) In the case that redirectResponse is populated, this flag indicates whether
	// requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted
	// for the request which was just redirected.
	RedirectHasExtraInfo bool `json:"redirectHasExtraInfo"`

	// RedirectResponse (optional) Redirect response data.
	RedirectResponse *NetworkResponse `json:"redirectResponse,omitempty"`

	// Type (optional) Type of this resource.
	Type NetworkResourceType `json:"type,omitempty"`

	// FrameID (optional) Frame identifier.
	FrameID PageFrameID `json:"frameId,omitempty"`

	// HasUserGesture (optional) Whether the request is initiated by a user gesture. Defaults to false.
	HasUserGesture bool `json:"hasUserGesture,omitempty"`
}

NetworkRequestWillBeSent Fired when page is about to send HTTP request.

(NetworkRequestWillBeSent) ProtoEvent <- 0.72.0

1
func (evt NetworkRequestWillBeSent) ProtoEvent() string

ProtoEvent name.

type NetworkRequestWillBeSentExtraInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type NetworkRequestWillBeSentExtraInfo struct {
	// RequestID Request identifier. Used to match this information to an existing requestWillBeSent event.
	RequestID NetworkRequestID `json:"requestId"`

	// AssociatedCookies A list of cookies potentially associated to the requested URL. This includes both cookies sent with
	// the request and the ones not sent; the latter are distinguished by having blockedReasons field set.
	AssociatedCookies []*NetworkAssociatedCookie `json:"associatedCookies"`

	// Headers Raw request headers as they will be sent over the wire.
	Headers NetworkHeaders `json:"headers"`

	// ConnectTiming (experimental) Connection timing information for the request.
	ConnectTiming *NetworkConnectTiming `json:"connectTiming"`

	// ClientSecurityState (optional) The client security state set for the request.
	ClientSecurityState *NetworkClientSecurityState `json:"clientSecurityState,omitempty"`

	// SiteHasCookieInOtherPartition (optional) Whether the site has partitioned cookies stored in a partition different than the current one.
	SiteHasCookieInOtherPartition bool `json:"siteHasCookieInOtherPartition,omitempty"`
}

NetworkRequestWillBeSentExtraInfo (experimental) Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.

(NetworkRequestWillBeSentExtraInfo) ProtoEvent <- 0.72.0

1
func (evt NetworkRequestWillBeSentExtraInfo) ProtoEvent() string

ProtoEvent name.

type NetworkResourceChangedPriority

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkResourceChangedPriority struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// NewPriority New priority
	NewPriority NetworkResourcePriority `json:"newPriority"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`
}

NetworkResourceChangedPriority (experimental) Fired when resource loading priority is changed.

(NetworkResourceChangedPriority) ProtoEvent <- 0.72.0

1
func (evt NetworkResourceChangedPriority) ProtoEvent() string

ProtoEvent name.

type NetworkResourcePriority

1
type NetworkResourcePriority string

NetworkResourcePriority Loading priority of a resource request.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// NetworkResourcePriorityVeryLow enum const.
	NetworkResourcePriorityVeryLow NetworkResourcePriority = "VeryLow"

	// NetworkResourcePriorityLow enum const.
	NetworkResourcePriorityLow NetworkResourcePriority = "Low"

	// NetworkResourcePriorityMedium enum const.
	NetworkResourcePriorityMedium NetworkResourcePriority = "Medium"

	// NetworkResourcePriorityHigh enum const.
	NetworkResourcePriorityHigh NetworkResourcePriority = "High"

	// NetworkResourcePriorityVeryHigh enum const.
	NetworkResourcePriorityVeryHigh NetworkResourcePriority = "VeryHigh"
)

type NetworkResourceTiming

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
type NetworkResourceTiming struct {
	// RequestTime Timing's requestTime is a baseline in seconds, while the other numbers are ticks in
	// milliseconds relatively to this requestTime.
	RequestTime float64 `json:"requestTime"`

	// ProxyStart Started resolving proxy.
	ProxyStart float64 `json:"proxyStart"`

	// ProxyEnd Finished resolving proxy.
	ProxyEnd float64 `json:"proxyEnd"`

	// DNSStart Started DNS address resolve.
	DNSStart float64 `json:"dnsStart"`

	// DNSEnd Finished DNS address resolve.
	DNSEnd float64 `json:"dnsEnd"`

	// ConnectStart Started connecting to the remote host.
	ConnectStart float64 `json:"connectStart"`

	// ConnectEnd Connected to the remote host.
	ConnectEnd float64 `json:"connectEnd"`

	// SslStart Started SSL handshake.
	SslStart float64 `json:"sslStart"`

	// SslEnd Finished SSL handshake.
	SslEnd float64 `json:"sslEnd"`

	// WorkerStart (experimental) Started running ServiceWorker.
	WorkerStart float64 `json:"workerStart"`

	// WorkerReady (experimental) Finished Starting ServiceWorker.
	WorkerReady float64 `json:"workerReady"`

	// WorkerFetchStart (experimental) Started fetch event.
	WorkerFetchStart float64 `json:"workerFetchStart"`

	// WorkerRespondWithSettled (experimental) Settled fetch event respondWith promise.
	WorkerRespondWithSettled float64 `json:"workerRespondWithSettled"`

	// WorkerRouterEvaluationStart (experimental) (optional) Started ServiceWorker static routing source evaluation.
	WorkerRouterEvaluationStart *float64 `json:"workerRouterEvaluationStart,omitempty"`

	// WorkerCacheLookupStart (experimental) (optional) Started cache lookup when the source was evaluated to `cache`.
	WorkerCacheLookupStart *float64 `json:"workerCacheLookupStart,omitempty"`

	// SendStart Started sending request.
	SendStart float64 `json:"sendStart"`

	// SendEnd Finished sending request.
	SendEnd float64 `json:"sendEnd"`

	// PushStart (experimental) Time the server started pushing request.
	PushStart float64 `json:"pushStart"`

	// PushEnd (experimental) Time the server finished pushing request.
	PushEnd float64 `json:"pushEnd"`

	// ReceiveHeadersStart (experimental) Started receiving response headers.
	ReceiveHeadersStart float64 `json:"receiveHeadersStart"`

	// ReceiveHeadersEnd Finished receiving response headers.
	ReceiveHeadersEnd float64 `json:"receiveHeadersEnd"`
}

NetworkResourceTiming Timing information for the request.

type NetworkResourceType

1
type NetworkResourceType string

NetworkResourceType Resource type as it was perceived by the rendering engine.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const (
	// NetworkResourceTypeDocument enum const.
	NetworkResourceTypeDocument NetworkResourceType = "Document"

	// NetworkResourceTypeStylesheet enum const.
	NetworkResourceTypeStylesheet NetworkResourceType = "Stylesheet"

	// NetworkResourceTypeImage enum const.
	NetworkResourceTypeImage NetworkResourceType = "Image"

	// NetworkResourceTypeMedia enum const.
	NetworkResourceTypeMedia NetworkResourceType = "Media"

	// NetworkResourceTypeFont enum const.
	NetworkResourceTypeFont NetworkResourceType = "Font"

	// NetworkResourceTypeScript enum const.
	NetworkResourceTypeScript NetworkResourceType = "Script"

	// NetworkResourceTypeTextTrack enum const.
	NetworkResourceTypeTextTrack NetworkResourceType = "TextTrack"

	// NetworkResourceTypeXHR enum const.
	NetworkResourceTypeXHR NetworkResourceType = "XHR"

	// NetworkResourceTypeFetch enum const.
	NetworkResourceTypeFetch NetworkResourceType = "Fetch"

	// NetworkResourceTypePrefetch enum const.
	NetworkResourceTypePrefetch NetworkResourceType = "Prefetch"

	// NetworkResourceTypeEventSource enum const.
	NetworkResourceTypeEventSource NetworkResourceType = "EventSource"

	// NetworkResourceTypeWebSocket enum const.
	NetworkResourceTypeWebSocket NetworkResourceType = "WebSocket"

	// NetworkResourceTypeManifest enum const.
	NetworkResourceTypeManifest NetworkResourceType = "Manifest"

	// NetworkResourceTypeSignedExchange enum const.
	NetworkResourceTypeSignedExchange NetworkResourceType = "SignedExchange"

	// NetworkResourceTypePing enum const.
	NetworkResourceTypePing NetworkResourceType = "Ping"

	// NetworkResourceTypeCSPViolationReport enum const.
	NetworkResourceTypeCSPViolationReport NetworkResourceType = "CSPViolationReport"

	// NetworkResourceTypePreflight enum const.
	NetworkResourceTypePreflight NetworkResourceType = "Preflight"

	// NetworkResourceTypeOther enum const.
	NetworkResourceTypeOther NetworkResourceType = "Other"
)

type NetworkResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
type NetworkResponse struct {
	// URL Response URL. This URL can be different from CachedResource.url in case of redirect.
	URL string `json:"url"`

	// Status HTTP response status code.
	Status int `json:"status"`

	// StatusText HTTP response status text.
	StatusText string `json:"statusText"`

	// Headers HTTP response headers.
	Headers NetworkHeaders `json:"headers"`

	// HeadersText (deprecated) (optional) HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.
	HeadersText string `json:"headersText,omitempty"`

	// MIMEType Resource mimeType as determined by the browser.
	MIMEType string `json:"mimeType"`

	// Charset Resource charset as determined by the browser (if applicable).
	Charset string `json:"charset"`

	// RequestHeaders (optional) Refined HTTP request headers that were actually transmitted over the network.
	RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"`

	// RequestHeadersText (deprecated) (optional) HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.
	RequestHeadersText string `json:"requestHeadersText,omitempty"`

	// ConnectionReused Specifies whether physical connection was actually reused for this request.
	ConnectionReused bool `json:"connectionReused"`

	// ConnectionID Physical connection id that was actually used for this request.
	ConnectionID float64 `json:"connectionId"`

	// RemoteIPAddress (optional) Remote IP address.
	RemoteIPAddress string `json:"remoteIPAddress,omitempty"`

	// RemotePort (optional) Remote port.
	RemotePort *int `json:"remotePort,omitempty"`

	// FromDiskCache (optional) Specifies that the request was served from the disk cache.
	FromDiskCache bool `json:"fromDiskCache,omitempty"`

	// FromServiceWorker (optional) Specifies that the request was served from the ServiceWorker.
	FromServiceWorker bool `json:"fromServiceWorker,omitempty"`

	// FromPrefetchCache (optional) Specifies that the request was served from the prefetch cache.
	FromPrefetchCache bool `json:"fromPrefetchCache,omitempty"`

	// FromEarlyHints (optional) Specifies that the request was served from the prefetch cache.
	FromEarlyHints bool `json:"fromEarlyHints,omitempty"`

	// ServiceWorkerRouterInfo (experimental) (optional) Information about how ServiceWorker Static Router API was used. If this
	// field is set with `matchedSourceType` field, a matching rule is found.
	// If this field is set without `matchedSource`, no matching rule is found.
	// Otherwise, the API is not used.
	ServiceWorkerRouterInfo *NetworkServiceWorkerRouterInfo `json:"serviceWorkerRouterInfo,omitempty"`

	// EncodedDataLength Total number of bytes received for this request so far.
	EncodedDataLength float64 `json:"encodedDataLength"`

	// Timing (optional) Timing information for the given request.
	Timing *NetworkResourceTiming `json:"timing,omitempty"`

	// ServiceWorkerResponseSource (optional) Response source of response from ServiceWorker.
	ServiceWorkerResponseSource NetworkServiceWorkerResponseSource `json:"serviceWorkerResponseSource,omitempty"`

	// ResponseTime (optional) The time at which the returned response was generated.
	ResponseTime TimeSinceEpoch `json:"responseTime,omitempty"`

	// CacheStorageCacheName (optional) Cache Storage Cache Name.
	CacheStorageCacheName string `json:"cacheStorageCacheName,omitempty"`

	// Protocol (optional) Protocol used to fetch this request.
	Protocol string `json:"protocol,omitempty"`

	// AlternateProtocolUsage (experimental) (optional) The reason why Chrome uses a specific transport protocol for HTTP semantics.
	AlternateProtocolUsage NetworkAlternateProtocolUsage `json:"alternateProtocolUsage,omitempty"`

	// SecurityState Security state of the request resource.
	SecurityState SecuritySecurityState `json:"securityState"`

	// SecurityDetails (optional) Security details for the request.
	SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"`
}

NetworkResponse HTTP response data.

type NetworkResponseReceived

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type NetworkResponseReceived struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// LoaderID Loader identifier. Empty string if the request is fetched from worker.
	LoaderID NetworkLoaderID `json:"loaderId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// Type Resource type.
	Type NetworkResourceType `json:"type"`

	// Response data.
	Response *NetworkResponse `json:"response"`

	// HasExtraInfo (experimental) Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be
	// or were emitted for this request.
	HasExtraInfo bool `json:"hasExtraInfo"`

	// FrameID (optional) Frame identifier.
	FrameID PageFrameID `json:"frameId,omitempty"`
}

NetworkResponseReceived Fired when HTTP response is available.

(NetworkResponseReceived) ProtoEvent <- 0.72.0

1
func (evt NetworkResponseReceived) ProtoEvent() string

ProtoEvent name.

type NetworkResponseReceivedEarlyHints <- 0.116.0

1
2
3
4
5
6
7
type NetworkResponseReceivedEarlyHints struct {
	// RequestID Request identifier. Used to match this information to another responseReceived event.
	RequestID NetworkRequestID `json:"requestId"`

	// Headers Raw response headers as they were received over the wire.
	Headers NetworkHeaders `json:"headers"`
}

NetworkResponseReceivedEarlyHints (experimental) Fired when 103 Early Hints headers is received in addition to the common response. Not every responseReceived event will have an responseReceivedEarlyHints fired. Only one responseReceivedEarlyHints may be fired for eached responseReceived event.

(NetworkResponseReceivedEarlyHints) ProtoEvent <- 0.116.0

1
func (evt NetworkResponseReceivedEarlyHints) ProtoEvent() string

ProtoEvent name.

type NetworkResponseReceivedExtraInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
type NetworkResponseReceivedExtraInfo struct {
	// RequestID Request identifier. Used to match this information to another responseReceived event.
	RequestID NetworkRequestID `json:"requestId"`

	// BlockedCookies A list of cookies which were not stored from the response along with the corresponding
	// reasons for blocking. The cookies here may not be valid due to syntax errors, which
	// are represented by the invalid cookie line string instead of a proper cookie.
	BlockedCookies []*NetworkBlockedSetCookieWithReason `json:"blockedCookies"`

	// Headers Raw response headers as they were received over the wire.
	Headers NetworkHeaders `json:"headers"`

	// ResourceIPAddressSpace The IP address space of the resource. The address space can only be determined once the transport
	// established the connection, so we can't send it in `requestWillBeSentExtraInfo`.
	ResourceIPAddressSpace NetworkIPAddressSpace `json:"resourceIPAddressSpace"`

	// StatusCode The status code of the response. This is useful in cases the request failed and no responseReceived
	// event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code
	// for cached requests, where the status in responseReceived is a 200 and this will be 304.
	StatusCode int `json:"statusCode"`

	// HeadersText (optional) Raw response header text as it was received over the wire. The raw text may not always be
	// available, such as in the case of HTTP/2 or QUIC.
	HeadersText string `json:"headersText,omitempty"`

	// CookiePartitionKey (experimental) (optional) The cookie partition key that will be used to store partitioned cookies set in this response.
	// Only sent when partitioned cookies are enabled.
	CookiePartitionKey *NetworkCookiePartitionKey `json:"cookiePartitionKey,omitempty"`

	// CookiePartitionKeyOpaque (optional) True if partitioned cookies are enabled, but the partition key is not serializable to string.
	CookiePartitionKeyOpaque bool `json:"cookiePartitionKeyOpaque,omitempty"`

	// ExemptedCookies (optional) A list of cookies which should have been blocked by 3PCD but are exempted and stored from
	// the response with the corresponding reason.
	ExemptedCookies []*NetworkExemptedSetCookieWithReason `json:"exemptedCookies,omitempty"`
}

NetworkResponseReceivedExtraInfo (experimental) Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.

(NetworkResponseReceivedExtraInfo) ProtoEvent <- 0.72.0

1
func (evt NetworkResponseReceivedExtraInfo) ProtoEvent() string

ProtoEvent name.

type NetworkSearchInResponseBody

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkSearchInResponseBody struct {
	// RequestID Identifier of the network response to search.
	RequestID NetworkRequestID `json:"requestId"`

	// Query String to search for.
	Query string `json:"query"`

	// CaseSensitive (optional) If true, search is case sensitive.
	CaseSensitive bool `json:"caseSensitive,omitempty"`

	// IsRegex (optional) If true, treats string parameter as regex.
	IsRegex bool `json:"isRegex,omitempty"`
}

NetworkSearchInResponseBody (experimental) Searches for given string in response content.

(NetworkSearchInResponseBody) Call

1
func (m NetworkSearchInResponseBody) Call(c Client) (*NetworkSearchInResponseBodyResult, error)

Call the request.

(NetworkSearchInResponseBody) ProtoReq <- 0.74.0

1
func (m NetworkSearchInResponseBody) ProtoReq() string

ProtoReq name.

type NetworkSearchInResponseBodyResult

1
2
3
4
type NetworkSearchInResponseBodyResult struct {
	// Result List of search matches.
	Result []*DebuggerSearchMatch `json:"result"`
}

NetworkSearchInResponseBodyResult (experimental) …

type NetworkSecurityDetails

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
type NetworkSecurityDetails struct {
	// Protocol name (e.g. "TLS 1.2" or "QUIC").
	Protocol string `json:"protocol"`

	// KeyExchange Key Exchange used by the connection, or the empty string if not applicable.
	KeyExchange string `json:"keyExchange"`

	// KeyExchangeGroup (optional) (EC)DH group used by the connection, if applicable.
	KeyExchangeGroup string `json:"keyExchangeGroup,omitempty"`

	// Cipher name.
	Cipher string `json:"cipher"`

	// Mac (optional) TLS MAC. Note that AEAD ciphers do not have separate MACs.
	Mac string `json:"mac,omitempty"`

	// CertificateID Certificate ID value.
	CertificateID SecurityCertificateID `json:"certificateId"`

	// SubjectName Certificate subject name.
	SubjectName string `json:"subjectName"`

	// SanList Subject Alternative Name (SAN) DNS names and IP addresses.
	SanList []string `json:"sanList"`

	// Issuer Name of the issuing CA.
	Issuer string `json:"issuer"`

	// ValidFrom Certificate valid from date.
	ValidFrom TimeSinceEpoch `json:"validFrom"`

	// ValidTo Certificate valid to (expiration) date
	ValidTo TimeSinceEpoch `json:"validTo"`

	// SignedCertificateTimestampList List of signed certificate timestamps (SCTs).
	SignedCertificateTimestampList []*NetworkSignedCertificateTimestamp `json:"signedCertificateTimestampList"`

	// CertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy
	CertificateTransparencyCompliance NetworkCertificateTransparencyCompliance `json:"certificateTransparencyCompliance"`

	// ServerSignatureAlgorithm (optional) The signature algorithm used by the server in the TLS server signature,
	// represented as a TLS SignatureScheme code point. Omitted if not
	// applicable or not known.
	ServerSignatureAlgorithm *int `json:"serverSignatureAlgorithm,omitempty"`

	// EncryptedClientHello Whether the connection used Encrypted ClientHello
	EncryptedClientHello bool `json:"encryptedClientHello"`
}

NetworkSecurityDetails Security details about a request.

type NetworkSecurityIsolationStatus <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkSecurityIsolationStatus struct {
	// Coop (optional) ...
	Coop *NetworkCrossOriginOpenerPolicyStatus `json:"coop,omitempty"`

	// Coep (optional) ...
	Coep *NetworkCrossOriginEmbedderPolicyStatus `json:"coep,omitempty"`

	// Csp (optional) ...
	Csp []*NetworkContentSecurityPolicyStatus `json:"csp,omitempty"`
}

NetworkSecurityIsolationStatus (experimental) …

type NetworkServiceWorkerResponseSource <- 0.52.0

1
type NetworkServiceWorkerResponseSource string

NetworkServiceWorkerResponseSource Source of serviceworker response.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// NetworkServiceWorkerResponseSourceCacheStorage enum const.
	NetworkServiceWorkerResponseSourceCacheStorage NetworkServiceWorkerResponseSource = "cache-storage"

	// NetworkServiceWorkerResponseSourceHTTPCache enum const.
	NetworkServiceWorkerResponseSourceHTTPCache NetworkServiceWorkerResponseSource = "http-cache"

	// NetworkServiceWorkerResponseSourceFallbackCode enum const.
	NetworkServiceWorkerResponseSourceFallbackCode NetworkServiceWorkerResponseSource = "fallback-code"

	// NetworkServiceWorkerResponseSourceNetwork enum const.
	NetworkServiceWorkerResponseSourceNetwork NetworkServiceWorkerResponseSource = "network"
)

type NetworkServiceWorkerRouterInfo <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type NetworkServiceWorkerRouterInfo struct {
	// RuleIDMatched (optional) ID of the rule matched. If there is a matched rule, this field will
	// be set, otherwiser no value will be set.
	RuleIDMatched *int `json:"ruleIdMatched,omitempty"`

	// MatchedSourceType (optional) The router source of the matched rule. If there is a matched rule, this
	// field will be set, otherwise no value will be set.
	MatchedSourceType NetworkServiceWorkerRouterSource `json:"matchedSourceType,omitempty"`

	// ActualSourceType (optional) The actual router source used.
	ActualSourceType NetworkServiceWorkerRouterSource `json:"actualSourceType,omitempty"`
}

NetworkServiceWorkerRouterInfo (experimental) …

type NetworkServiceWorkerRouterSource <- 0.115.0

1
type NetworkServiceWorkerRouterSource string

NetworkServiceWorkerRouterSource Source of service worker router.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// NetworkServiceWorkerRouterSourceNetwork enum const.
	NetworkServiceWorkerRouterSourceNetwork NetworkServiceWorkerRouterSource = "network"

	// NetworkServiceWorkerRouterSourceCache enum const.
	NetworkServiceWorkerRouterSourceCache NetworkServiceWorkerRouterSource = "cache"

	// NetworkServiceWorkerRouterSourceFetchEvent enum const.
	NetworkServiceWorkerRouterSourceFetchEvent NetworkServiceWorkerRouterSource = "fetch-event"

	// NetworkServiceWorkerRouterSourceRaceNetworkAndFetchHandler enum const.
	NetworkServiceWorkerRouterSourceRaceNetworkAndFetchHandler NetworkServiceWorkerRouterSource = "race-network-and-fetch-handler"
)

type NetworkSetAcceptedEncodings <- 0.97.5

1
2
3
4
type NetworkSetAcceptedEncodings struct {
	// Encodings List of accepted content encodings.
	Encodings []NetworkContentEncoding `json:"encodings"`
}

NetworkSetAcceptedEncodings (experimental) Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.

(NetworkSetAcceptedEncodings) Call <- 0.97.5

1
func (m NetworkSetAcceptedEncodings) Call(c Client) error

Call sends the request.

(NetworkSetAcceptedEncodings) ProtoReq <- 0.97.5

1
func (m NetworkSetAcceptedEncodings) ProtoReq() string

ProtoReq name.

type NetworkSetAttachDebugStack <- 0.90.0

1
2
3
4
type NetworkSetAttachDebugStack struct {
	// Enabled Whether to attach a page script stack for debugging purpose.
	Enabled bool `json:"enabled"`
}

NetworkSetAttachDebugStack (experimental) Specifies whether to attach a page script stack id in requests.

(NetworkSetAttachDebugStack) Call <- 0.90.0

1
func (m NetworkSetAttachDebugStack) Call(c Client) error

Call sends the request.

(NetworkSetAttachDebugStack) ProtoReq <- 0.90.0

1
func (m NetworkSetAttachDebugStack) ProtoReq() string

ProtoReq name.

type NetworkSetBlockedURLs

1
2
3
4
type NetworkSetBlockedURLs struct {
	// Urls URL patterns to block. Wildcards ('*') are allowed.
	Urls []string `json:"urls"`
}

NetworkSetBlockedURLs (experimental) Blocks URLs from loading.

(NetworkSetBlockedURLs) Call

1
func (m NetworkSetBlockedURLs) Call(c Client) error

Call sends the request.

(NetworkSetBlockedURLs) ProtoReq <- 0.74.0

1
func (m NetworkSetBlockedURLs) ProtoReq() string

ProtoReq name.

type NetworkSetBypassServiceWorker

1
2
3
4
type NetworkSetBypassServiceWorker struct {
	// Bypass service worker and load from network.
	Bypass bool `json:"bypass"`
}

NetworkSetBypassServiceWorker Toggles ignoring of service worker for each request.

(NetworkSetBypassServiceWorker) Call

1
func (m NetworkSetBypassServiceWorker) Call(c Client) error

Call sends the request.

(NetworkSetBypassServiceWorker) ProtoReq <- 0.74.0

1
func (m NetworkSetBypassServiceWorker) ProtoReq() string

ProtoReq name.

type NetworkSetCacheDisabled

1
2
3
4
type NetworkSetCacheDisabled struct {
	// CacheDisabled Cache disabled state.
	CacheDisabled bool `json:"cacheDisabled"`
}

NetworkSetCacheDisabled Toggles ignoring cache for each request. If true, cache will not be used.

(NetworkSetCacheDisabled) Call

1
func (m NetworkSetCacheDisabled) Call(c Client) error

Call sends the request.

(NetworkSetCacheDisabled) ProtoReq <- 0.74.0

1
func (m NetworkSetCacheDisabled) ProtoReq() string

ProtoReq name.

type NetworkSetCookie

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
type NetworkSetCookie struct {
	// Name Cookie name.
	Name string `json:"name"`

	// Value Cookie value.
	Value string `json:"value"`

	// URL (optional) The request-URI to associate with the setting of the cookie. This value can affect the
	// default domain, path, source port, and source scheme values of the created cookie.
	URL string `json:"url,omitempty"`

	// Domain (optional) Cookie domain.
	Domain string `json:"domain,omitempty"`

	// Path (optional) Cookie path.
	Path string `json:"path,omitempty"`

	// Secure (optional) True if cookie is secure.
	Secure bool `json:"secure,omitempty"`

	// HTTPOnly (optional) True if cookie is http-only.
	HTTPOnly bool `json:"httpOnly,omitempty"`

	// SameSite (optional) Cookie SameSite type.
	SameSite NetworkCookieSameSite `json:"sameSite,omitempty"`

	// Expires (optional) Cookie expiration date, session cookie if not set
	Expires TimeSinceEpoch `json:"expires,omitempty"`

	// Priority (experimental) (optional) Cookie Priority type.
	Priority NetworkCookiePriority `json:"priority,omitempty"`

	// SameParty (experimental) (optional) True if cookie is SameParty.
	SameParty bool `json:"sameParty,omitempty"`

	// SourceScheme (experimental) (optional) Cookie source scheme type.
	SourceScheme NetworkCookieSourceScheme `json:"sourceScheme,omitempty"`

	// SourcePort (experimental) (optional) Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.
	// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.
	// This is a temporary ability and it will be removed in the future.
	SourcePort *int `json:"sourcePort,omitempty"`

	// PartitionKey (experimental) (optional) Cookie partition key. If not set, the cookie will be set as not partitioned.
	PartitionKey *NetworkCookiePartitionKey `json:"partitionKey,omitempty"`
}

NetworkSetCookie Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

(NetworkSetCookie) Call

1
func (m NetworkSetCookie) Call(c Client) (*NetworkSetCookieResult, error)

Call the request.

(NetworkSetCookie) ProtoReq <- 0.74.0

1
func (m NetworkSetCookie) ProtoReq() string

ProtoReq name.

type NetworkSetCookieBlockedReason

1
type NetworkSetCookieBlockedReason string

NetworkSetCookieBlockedReason (experimental) Types of reasons why a cookie may not be stored from a response.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
const (
	// NetworkSetCookieBlockedReasonSecureOnly enum const.
	NetworkSetCookieBlockedReasonSecureOnly NetworkSetCookieBlockedReason = "SecureOnly"

	// NetworkSetCookieBlockedReasonSameSiteStrict enum const.
	NetworkSetCookieBlockedReasonSameSiteStrict NetworkSetCookieBlockedReason = "SameSiteStrict"

	// NetworkSetCookieBlockedReasonSameSiteLax enum const.
	NetworkSetCookieBlockedReasonSameSiteLax NetworkSetCookieBlockedReason = "SameSiteLax"

	// NetworkSetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax enum const.
	NetworkSetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax NetworkSetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"

	// NetworkSetCookieBlockedReasonSameSiteNoneInsecure enum const.
	NetworkSetCookieBlockedReasonSameSiteNoneInsecure NetworkSetCookieBlockedReason = "SameSiteNoneInsecure"

	// NetworkSetCookieBlockedReasonUserPreferences enum const.
	NetworkSetCookieBlockedReasonUserPreferences NetworkSetCookieBlockedReason = "UserPreferences"

	// NetworkSetCookieBlockedReasonThirdPartyPhaseout enum const.
	NetworkSetCookieBlockedReasonThirdPartyPhaseout NetworkSetCookieBlockedReason = "ThirdPartyPhaseout"

	// NetworkSetCookieBlockedReasonThirdPartyBlockedInFirstPartySet enum const.
	NetworkSetCookieBlockedReasonThirdPartyBlockedInFirstPartySet NetworkSetCookieBlockedReason = "ThirdPartyBlockedInFirstPartySet"

	// NetworkSetCookieBlockedReasonSyntaxError enum const.
	NetworkSetCookieBlockedReasonSyntaxError NetworkSetCookieBlockedReason = "SyntaxError"

	// NetworkSetCookieBlockedReasonSchemeNotSupported enum const.
	NetworkSetCookieBlockedReasonSchemeNotSupported NetworkSetCookieBlockedReason = "SchemeNotSupported"

	// NetworkSetCookieBlockedReasonOverwriteSecure enum const.
	NetworkSetCookieBlockedReasonOverwriteSecure NetworkSetCookieBlockedReason = "OverwriteSecure"

	// NetworkSetCookieBlockedReasonInvalidDomain enum const.
	NetworkSetCookieBlockedReasonInvalidDomain NetworkSetCookieBlockedReason = "InvalidDomain"

	// NetworkSetCookieBlockedReasonInvalidPrefix enum const.
	NetworkSetCookieBlockedReasonInvalidPrefix NetworkSetCookieBlockedReason = "InvalidPrefix"

	// NetworkSetCookieBlockedReasonUnknownError enum const.
	NetworkSetCookieBlockedReasonUnknownError NetworkSetCookieBlockedReason = "UnknownError"

	// NetworkSetCookieBlockedReasonSchemefulSameSiteStrict enum const.
	NetworkSetCookieBlockedReasonSchemefulSameSiteStrict NetworkSetCookieBlockedReason = "SchemefulSameSiteStrict"

	// NetworkSetCookieBlockedReasonSchemefulSameSiteLax enum const.
	NetworkSetCookieBlockedReasonSchemefulSameSiteLax NetworkSetCookieBlockedReason = "SchemefulSameSiteLax"

	// NetworkSetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax enum const.
	NetworkSetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax NetworkSetCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"

	// NetworkSetCookieBlockedReasonSamePartyFromCrossPartyContext enum const.
	NetworkSetCookieBlockedReasonSamePartyFromCrossPartyContext NetworkSetCookieBlockedReason = "SamePartyFromCrossPartyContext"

	// NetworkSetCookieBlockedReasonSamePartyConflictsWithOtherAttributes enum const.
	NetworkSetCookieBlockedReasonSamePartyConflictsWithOtherAttributes NetworkSetCookieBlockedReason = "SamePartyConflictsWithOtherAttributes"

	// NetworkSetCookieBlockedReasonNameValuePairExceedsMaxSize enum const.
	NetworkSetCookieBlockedReasonNameValuePairExceedsMaxSize NetworkSetCookieBlockedReason = "NameValuePairExceedsMaxSize"

	// NetworkSetCookieBlockedReasonDisallowedCharacter enum const.
	NetworkSetCookieBlockedReasonDisallowedCharacter NetworkSetCookieBlockedReason = "DisallowedCharacter"

	// NetworkSetCookieBlockedReasonNoCookieContent enum const.
	NetworkSetCookieBlockedReasonNoCookieContent NetworkSetCookieBlockedReason = "NoCookieContent"
)

type NetworkSetCookieResult

1
2
3
4
type NetworkSetCookieResult struct {
	// Success (deprecated) Always set to true. If an error occurs, the response indicates protocol error.
	Success bool `json:"success"`
}

NetworkSetCookieResult …

type NetworkSetCookies

1
2
3
4
type NetworkSetCookies struct {
	// Cookies to be set.
	Cookies []*NetworkCookieParam `json:"cookies"`
}

NetworkSetCookies Sets given cookies.

(NetworkSetCookies) Call

1
func (m NetworkSetCookies) Call(c Client) error

Call sends the request.

(NetworkSetCookies) ProtoReq <- 0.74.0

1
func (m NetworkSetCookies) ProtoReq() string

ProtoReq name.

type NetworkSetExtraHTTPHeaders

1
2
3
4
type NetworkSetExtraHTTPHeaders struct {
	// Headers Map with extra HTTP headers.
	Headers NetworkHeaders `json:"headers"`
}

NetworkSetExtraHTTPHeaders Specifies whether to always send extra HTTP headers with the requests from this page.

(NetworkSetExtraHTTPHeaders) Call

1
func (m NetworkSetExtraHTTPHeaders) Call(c Client) error

Call sends the request.

(NetworkSetExtraHTTPHeaders) ProtoReq <- 0.74.0

1
func (m NetworkSetExtraHTTPHeaders) ProtoReq() string

ProtoReq name.

type NetworkSetRequestInterception

1
2
3
4
5
type NetworkSetRequestInterception struct {
	// Patterns Requests matching any of these patterns will be forwarded and wait for the corresponding
	// continueInterceptedRequest call.
	Patterns []*NetworkRequestPattern `json:"patterns"`
}

NetworkSetRequestInterception (deprecated) (experimental) Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.

(NetworkSetRequestInterception) Call

1
func (m NetworkSetRequestInterception) Call(c Client) error

Call sends the request.

(NetworkSetRequestInterception) ProtoReq <- 0.74.0

1
func (m NetworkSetRequestInterception) ProtoReq() string

ProtoReq name.

type NetworkSetUserAgentOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkSetUserAgentOverride struct {
	// UserAgent User agent to use.
	UserAgent string `json:"userAgent"`

	// AcceptLanguage (optional) Browser language to emulate.
	AcceptLanguage string `json:"acceptLanguage,omitempty"`

	// Platform (optional) The platform navigator.platform should return.
	Platform string `json:"platform,omitempty"`

	// UserAgentMetadata (experimental) (optional) To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
	UserAgentMetadata *EmulationUserAgentMetadata `json:"userAgentMetadata,omitempty"`
}

NetworkSetUserAgentOverride Allows overriding user agent with the given string.

(NetworkSetUserAgentOverride) Call

1
func (m NetworkSetUserAgentOverride) Call(c Client) error

Call sends the request.

(NetworkSetUserAgentOverride) ProtoReq <- 0.74.0

1
func (m NetworkSetUserAgentOverride) ProtoReq() string

ProtoReq name.

type NetworkSignedCertificateTimestamp

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
type NetworkSignedCertificateTimestamp struct {
	// Status Validation status.
	Status string `json:"status"`

	// Origin.
	Origin string `json:"origin"`

	// LogDescription Log name / description.
	LogDescription string `json:"logDescription"`

	// LogID Log ID.
	LogID string `json:"logId"`

	// Timestamp Issuance date. Unlike TimeSinceEpoch, this contains the number of
	// milliseconds since January 1, 1970, UTC, not the number of seconds.
	Timestamp float64 `json:"timestamp"`

	// HashAlgorithm Hash algorithm.
	HashAlgorithm string `json:"hashAlgorithm"`

	// SignatureAlgorithm Signature algorithm.
	SignatureAlgorithm string `json:"signatureAlgorithm"`

	// SignatureData Signature data.
	SignatureData string `json:"signatureData"`
}

NetworkSignedCertificateTimestamp Details of a signed certificate timestamp (SCT).

type NetworkSignedExchangeError

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkSignedExchangeError struct {
	// Message Error message.
	Message string `json:"message"`

	// SignatureIndex (optional) The index of the signature which caused the error.
	SignatureIndex *int `json:"signatureIndex,omitempty"`

	// ErrorField (optional) The field which caused the error.
	ErrorField NetworkSignedExchangeErrorField `json:"errorField,omitempty"`
}

NetworkSignedExchangeError (experimental) Information about a signed exchange response.

type NetworkSignedExchangeErrorField

1
type NetworkSignedExchangeErrorField string

NetworkSignedExchangeErrorField (experimental) Field type for a signed exchange related error.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// NetworkSignedExchangeErrorFieldSignatureSig enum const.
	NetworkSignedExchangeErrorFieldSignatureSig NetworkSignedExchangeErrorField = "signatureSig"

	// NetworkSignedExchangeErrorFieldSignatureIntegrity enum const.
	NetworkSignedExchangeErrorFieldSignatureIntegrity NetworkSignedExchangeErrorField = "signatureIntegrity"

	// NetworkSignedExchangeErrorFieldSignatureCertURL enum const.
	NetworkSignedExchangeErrorFieldSignatureCertURL NetworkSignedExchangeErrorField = "signatureCertUrl"

	// NetworkSignedExchangeErrorFieldSignatureCertSha256 enum const.
	NetworkSignedExchangeErrorFieldSignatureCertSha256 NetworkSignedExchangeErrorField = "signatureCertSha256"

	// NetworkSignedExchangeErrorFieldSignatureValidityURL enum const.
	NetworkSignedExchangeErrorFieldSignatureValidityURL NetworkSignedExchangeErrorField = "signatureValidityUrl"

	// NetworkSignedExchangeErrorFieldSignatureTimestamps enum const.
	NetworkSignedExchangeErrorFieldSignatureTimestamps NetworkSignedExchangeErrorField = "signatureTimestamps"
)

type NetworkSignedExchangeHeader

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type NetworkSignedExchangeHeader struct {
	// RequestURL Signed exchange request URL.
	RequestURL string `json:"requestUrl"`

	// ResponseCode Signed exchange response code.
	ResponseCode int `json:"responseCode"`

	// ResponseHeaders Signed exchange response headers.
	ResponseHeaders NetworkHeaders `json:"responseHeaders"`

	// Signatures Signed exchange response signature.
	Signatures []*NetworkSignedExchangeSignature `json:"signatures"`

	// HeaderIntegrity Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`.
	HeaderIntegrity string `json:"headerIntegrity"`
}

NetworkSignedExchangeHeader (experimental) Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation

type NetworkSignedExchangeInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkSignedExchangeInfo struct {
	// OuterResponse The outer response of signed HTTP exchange which was received from network.
	OuterResponse *NetworkResponse `json:"outerResponse"`

	// Header (optional) Information about the signed exchange header.
	Header *NetworkSignedExchangeHeader `json:"header,omitempty"`

	// SecurityDetails (optional) Security details for the signed exchange header.
	SecurityDetails *NetworkSecurityDetails `json:"securityDetails,omitempty"`

	// Errors (optional) Errors occurred while handling the signed exchange.
	Errors []*NetworkSignedExchangeError `json:"errors,omitempty"`
}

NetworkSignedExchangeInfo (experimental) Information about a signed exchange response.

type NetworkSignedExchangeReceived

1
2
3
4
5
6
7
type NetworkSignedExchangeReceived struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Information about the signed exchange response.
	Info *NetworkSignedExchangeInfo `json:"info"`
}

NetworkSignedExchangeReceived (experimental) Fired when a signed exchange was received over the network.

(NetworkSignedExchangeReceived) ProtoEvent <- 0.72.0

1
func (evt NetworkSignedExchangeReceived) ProtoEvent() string

ProtoEvent name.

type NetworkSignedExchangeSignature

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
type NetworkSignedExchangeSignature struct {
	// Label Signed exchange signature label.
	Label string `json:"label"`

	// Signature The hex string of signed exchange signature.
	Signature string `json:"signature"`

	// Integrity Signed exchange signature integrity.
	Integrity string `json:"integrity"`

	// CertURL (optional) Signed exchange signature cert Url.
	CertURL string `json:"certUrl,omitempty"`

	// CertSha256 (optional) The hex string of signed exchange signature cert sha256.
	CertSha256 string `json:"certSha256,omitempty"`

	// ValidityURL Signed exchange signature validity Url.
	ValidityURL string `json:"validityUrl"`

	// Date Signed exchange signature date.
	Date int `json:"date"`

	// Expires Signed exchange signature expires.
	Expires int `json:"expires"`

	// Certificates (optional) The encoded certificates.
	Certificates []string `json:"certificates,omitempty"`
}

NetworkSignedExchangeSignature (experimental) Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1

type NetworkStreamResourceContent <- 0.115.0

1
2
3
4
type NetworkStreamResourceContent struct {
	// RequestID Identifier of the request to stream.
	RequestID NetworkRequestID `json:"requestId"`
}

NetworkStreamResourceContent (experimental) Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.

(NetworkStreamResourceContent) Call <- 0.115.0

1
func (m NetworkStreamResourceContent) Call(c Client) (*NetworkStreamResourceContentResult, error)

Call the request.

(NetworkStreamResourceContent) ProtoReq <- 0.115.0

1
func (m NetworkStreamResourceContent) ProtoReq() string

ProtoReq name.

type NetworkStreamResourceContentResult <- 0.115.0

1
2
3
4
type NetworkStreamResourceContentResult struct {
	// BufferedData Data that has been buffered until streaming is enabled.
	BufferedData []byte `json:"bufferedData"`
}

NetworkStreamResourceContentResult (experimental) …

type NetworkSubresourceWebBundleInnerResponseError <- 0.101.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type NetworkSubresourceWebBundleInnerResponseError struct {
	// InnerRequestID Request identifier of the subresource request
	InnerRequestID NetworkRequestID `json:"innerRequestId"`

	// InnerRequestURL URL of the subresource resource.
	InnerRequestURL string `json:"innerRequestURL"`

	// ErrorMessage Error message
	ErrorMessage string `json:"errorMessage"`

	// BundleRequestID (optional) Bundle request identifier. Used to match this information to another event.
	// This made be absent in case when the instrumentation was enabled only
	// after webbundle was parsed.
	BundleRequestID NetworkRequestID `json:"bundleRequestId,omitempty"`
}

NetworkSubresourceWebBundleInnerResponseError (experimental) Fired when request for resources within a .wbn file failed.

(NetworkSubresourceWebBundleInnerResponseError) ProtoEvent <- 0.101.5

1
func (evt NetworkSubresourceWebBundleInnerResponseError) ProtoEvent() string

ProtoEvent name.

type NetworkSubresourceWebBundleInnerResponseParsed <- 0.101.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type NetworkSubresourceWebBundleInnerResponseParsed struct {
	// InnerRequestID Request identifier of the subresource request
	InnerRequestID NetworkRequestID `json:"innerRequestId"`

	// InnerRequestURL URL of the subresource resource.
	InnerRequestURL string `json:"innerRequestURL"`

	// BundleRequestID (optional) Bundle request identifier. Used to match this information to another event.
	// This made be absent in case when the instrumentation was enabled only
	// after webbundle was parsed.
	BundleRequestID NetworkRequestID `json:"bundleRequestId,omitempty"`
}

NetworkSubresourceWebBundleInnerResponseParsed (experimental) Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.

(NetworkSubresourceWebBundleInnerResponseParsed) ProtoEvent <- 0.101.5

1
func (evt NetworkSubresourceWebBundleInnerResponseParsed) ProtoEvent() string

ProtoEvent name.

type NetworkSubresourceWebBundleMetadataError <- 0.101.5

1
2
3
4
5
6
7
type NetworkSubresourceWebBundleMetadataError struct {
	// RequestID Request identifier. Used to match this information to another event.
	RequestID NetworkRequestID `json:"requestId"`

	// ErrorMessage Error message
	ErrorMessage string `json:"errorMessage"`
}

NetworkSubresourceWebBundleMetadataError (experimental) Fired once when parsing the .wbn file has failed.

(NetworkSubresourceWebBundleMetadataError) ProtoEvent <- 0.101.5

1
func (evt NetworkSubresourceWebBundleMetadataError) ProtoEvent() string

ProtoEvent name.

type NetworkSubresourceWebBundleMetadataReceived <- 0.101.5

1
2
3
4
5
6
7
type NetworkSubresourceWebBundleMetadataReceived struct {
	// RequestID Request identifier. Used to match this information to another event.
	RequestID NetworkRequestID `json:"requestId"`

	// Urls A list of URLs of resources in the subresource Web Bundle.
	Urls []string `json:"urls"`
}

NetworkSubresourceWebBundleMetadataReceived (experimental) Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.

(NetworkSubresourceWebBundleMetadataReceived) ProtoEvent <- 0.101.5

1
func (evt NetworkSubresourceWebBundleMetadataReceived) ProtoEvent() string

ProtoEvent name.

type NetworkTakeResponseBodyForInterceptionAsStream

1
2
3
4
type NetworkTakeResponseBodyForInterceptionAsStream struct {
	// InterceptionID ...
	InterceptionID NetworkInterceptionID `json:"interceptionId"`
}

NetworkTakeResponseBodyForInterceptionAsStream (experimental) Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can’t be continued as is – you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.

(NetworkTakeResponseBodyForInterceptionAsStream) Call

1
func (m NetworkTakeResponseBodyForInterceptionAsStream) Call(c Client) (*NetworkTakeResponseBodyForInterceptionAsStreamResult, error)

Call the request.

(NetworkTakeResponseBodyForInterceptionAsStream) ProtoReq <- 0.74.0

1
func (m NetworkTakeResponseBodyForInterceptionAsStream) ProtoReq() string

ProtoReq name.

type NetworkTakeResponseBodyForInterceptionAsStreamResult

1
2
3
4
type NetworkTakeResponseBodyForInterceptionAsStreamResult struct {
	// Stream ...
	Stream IOStreamHandle `json:"stream"`
}

NetworkTakeResponseBodyForInterceptionAsStreamResult (experimental) …

type NetworkTrustTokenOperationDone <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type NetworkTrustTokenOperationDone struct {
	// Status Detailed success or error status of the operation.
	// 'AlreadyExists' also signifies a successful operation, as the result
	// of the operation already exists und thus, the operation was abort
	// preemptively (e.g. a cache hit).
	Status NetworkTrustTokenOperationDoneStatus `json:"status"`

	// Type ...
	Type NetworkTrustTokenOperationType `json:"type"`

	// RequestID ...
	RequestID NetworkRequestID `json:"requestId"`

	// TopLevelOrigin (optional) Top level origin. The context in which the operation was attempted.
	TopLevelOrigin string `json:"topLevelOrigin,omitempty"`

	// IssuerOrigin (optional) Origin of the issuer in case of a "Issuance" or "Redemption" operation.
	IssuerOrigin string `json:"issuerOrigin,omitempty"`

	// IssuedTokenCount (optional) The number of obtained Trust Tokens on a successful "Issuance" operation.
	IssuedTokenCount *int `json:"issuedTokenCount,omitempty"`
}

NetworkTrustTokenOperationDone (experimental) Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.

(NetworkTrustTokenOperationDone) ProtoEvent <- 0.90.0

1
func (evt NetworkTrustTokenOperationDone) ProtoEvent() string

ProtoEvent name.

type NetworkTrustTokenOperationDoneStatus <- 0.90.0

1
type NetworkTrustTokenOperationDoneStatus string

NetworkTrustTokenOperationDoneStatus enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const (
	// NetworkTrustTokenOperationDoneStatusOk enum const.
	NetworkTrustTokenOperationDoneStatusOk NetworkTrustTokenOperationDoneStatus = "Ok"

	// NetworkTrustTokenOperationDoneStatusInvalidArgument enum const.
	NetworkTrustTokenOperationDoneStatusInvalidArgument NetworkTrustTokenOperationDoneStatus = "InvalidArgument"

	// NetworkTrustTokenOperationDoneStatusMissingIssuerKeys enum const.
	NetworkTrustTokenOperationDoneStatusMissingIssuerKeys NetworkTrustTokenOperationDoneStatus = "MissingIssuerKeys"

	// NetworkTrustTokenOperationDoneStatusFailedPrecondition enum const.
	NetworkTrustTokenOperationDoneStatusFailedPrecondition NetworkTrustTokenOperationDoneStatus = "FailedPrecondition"

	// NetworkTrustTokenOperationDoneStatusResourceExhausted enum const.
	NetworkTrustTokenOperationDoneStatusResourceExhausted NetworkTrustTokenOperationDoneStatus = "ResourceExhausted"

	// NetworkTrustTokenOperationDoneStatusAlreadyExists enum const.
	NetworkTrustTokenOperationDoneStatusAlreadyExists NetworkTrustTokenOperationDoneStatus = "AlreadyExists"

	// NetworkTrustTokenOperationDoneStatusResourceLimited enum const.
	NetworkTrustTokenOperationDoneStatusResourceLimited NetworkTrustTokenOperationDoneStatus = "ResourceLimited"

	// NetworkTrustTokenOperationDoneStatusUnauthorized enum const.
	NetworkTrustTokenOperationDoneStatusUnauthorized NetworkTrustTokenOperationDoneStatus = "Unauthorized"

	// NetworkTrustTokenOperationDoneStatusBadResponse enum const.
	NetworkTrustTokenOperationDoneStatusBadResponse NetworkTrustTokenOperationDoneStatus = "BadResponse"

	// NetworkTrustTokenOperationDoneStatusInternalError enum const.
	NetworkTrustTokenOperationDoneStatusInternalError NetworkTrustTokenOperationDoneStatus = "InternalError"

	// NetworkTrustTokenOperationDoneStatusUnknownError enum const.
	NetworkTrustTokenOperationDoneStatusUnknownError NetworkTrustTokenOperationDoneStatus = "UnknownError"

	// NetworkTrustTokenOperationDoneStatusFulfilledLocally enum const.
	NetworkTrustTokenOperationDoneStatusFulfilledLocally NetworkTrustTokenOperationDoneStatus = "FulfilledLocally"
)

type NetworkTrustTokenOperationType <- 0.85.9

1
type NetworkTrustTokenOperationType string

NetworkTrustTokenOperationType (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// NetworkTrustTokenOperationTypeIssuance enum const.
	NetworkTrustTokenOperationTypeIssuance NetworkTrustTokenOperationType = "Issuance"

	// NetworkTrustTokenOperationTypeRedemption enum const.
	NetworkTrustTokenOperationTypeRedemption NetworkTrustTokenOperationType = "Redemption"

	// NetworkTrustTokenOperationTypeSigning enum const.
	NetworkTrustTokenOperationTypeSigning NetworkTrustTokenOperationType = "Signing"
)

type NetworkTrustTokenParams <- 0.85.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type NetworkTrustTokenParams struct {
	// Operation ...
	Operation NetworkTrustTokenOperationType `json:"operation"`

	// RefreshPolicy Only set for "token-redemption" operation and determine whether
	// to request a fresh SRR or use a still valid cached SRR.
	RefreshPolicy NetworkTrustTokenParamsRefreshPolicy `json:"refreshPolicy"`

	// Issuers (optional) Origins of issuers from whom to request tokens or redemption
	// records.
	Issuers []string `json:"issuers,omitempty"`
}

NetworkTrustTokenParams (experimental) Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.

type NetworkTrustTokenParamsRefreshPolicy <- 0.85.9

1
type NetworkTrustTokenParamsRefreshPolicy string

NetworkTrustTokenParamsRefreshPolicy enum.

1
2
3
4
5
6
7
const (
	// NetworkTrustTokenParamsRefreshPolicyUseCached enum const.
	NetworkTrustTokenParamsRefreshPolicyUseCached NetworkTrustTokenParamsRefreshPolicy = "UseCached"

	// NetworkTrustTokenParamsRefreshPolicyRefresh enum const.
	NetworkTrustTokenParamsRefreshPolicyRefresh NetworkTrustTokenParamsRefreshPolicy = "Refresh"
)

type NetworkWebSocketClosed

1
2
3
4
5
6
7
type NetworkWebSocketClosed struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`
}

NetworkWebSocketClosed Fired when WebSocket is closed.

(NetworkWebSocketClosed) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketClosed) ProtoEvent() string

ProtoEvent name.

type NetworkWebSocketCreated

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkWebSocketCreated struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// URL WebSocket request URL.
	URL string `json:"url"`

	// Initiator (optional) Request initiator.
	Initiator *NetworkInitiator `json:"initiator,omitempty"`
}

NetworkWebSocketCreated Fired upon WebSocket creation.

(NetworkWebSocketCreated) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketCreated) ProtoEvent() string

ProtoEvent name.

type NetworkWebSocketFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type NetworkWebSocketFrame struct {
	// Opcode WebSocket message opcode.
	Opcode float64 `json:"opcode"`

	// Mask WebSocket message mask.
	Mask bool `json:"mask"`

	// PayloadData WebSocket message payload data.
	// If the opcode is 1, this is a text message and payloadData is a UTF-8 string.
	// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.
	PayloadData string `json:"payloadData"`
}

NetworkWebSocketFrame WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

type NetworkWebSocketFrameError

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkWebSocketFrameError struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// ErrorMessage WebSocket error message.
	ErrorMessage string `json:"errorMessage"`
}

NetworkWebSocketFrameError Fired when WebSocket message error occurs.

(NetworkWebSocketFrameError) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketFrameError) ProtoEvent() string

ProtoEvent name.

type NetworkWebSocketFrameReceived

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkWebSocketFrameReceived struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// Response WebSocket response data.
	Response *NetworkWebSocketFrame `json:"response"`
}

NetworkWebSocketFrameReceived Fired when WebSocket message is received.

(NetworkWebSocketFrameReceived) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketFrameReceived) ProtoEvent() string

ProtoEvent name.

type NetworkWebSocketFrameSent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkWebSocketFrameSent struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// Response WebSocket response data.
	Response *NetworkWebSocketFrame `json:"response"`
}

NetworkWebSocketFrameSent Fired when WebSocket message is sent.

(NetworkWebSocketFrameSent) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketFrameSent) ProtoEvent() string

ProtoEvent name.

type NetworkWebSocketHandshakeResponseReceived

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type NetworkWebSocketHandshakeResponseReceived struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// Response WebSocket response data.
	Response *NetworkWebSocketResponse `json:"response"`
}

NetworkWebSocketHandshakeResponseReceived Fired when WebSocket handshake response becomes available.

(NetworkWebSocketHandshakeResponseReceived) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketHandshakeResponseReceived) ProtoEvent() string

ProtoEvent name.

type NetworkWebSocketRequest

1
2
3
4
type NetworkWebSocketRequest struct {
	// Headers HTTP request headers.
	Headers NetworkHeaders `json:"headers"`
}

NetworkWebSocketRequest WebSocket request data.

type NetworkWebSocketResponse

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type NetworkWebSocketResponse struct {
	// Status HTTP response status code.
	Status int `json:"status"`

	// StatusText HTTP response status text.
	StatusText string `json:"statusText"`

	// Headers HTTP response headers.
	Headers NetworkHeaders `json:"headers"`

	// HeadersText (optional) HTTP response headers text.
	HeadersText string `json:"headersText,omitempty"`

	// RequestHeaders (optional) HTTP request headers.
	RequestHeaders NetworkHeaders `json:"requestHeaders,omitempty"`

	// RequestHeadersText (optional) HTTP request headers text.
	RequestHeadersText string `json:"requestHeadersText,omitempty"`
}

NetworkWebSocketResponse WebSocket response data.

type NetworkWebSocketWillSendHandshakeRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkWebSocketWillSendHandshakeRequest struct {
	// RequestID Request identifier.
	RequestID NetworkRequestID `json:"requestId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// WallTime UTC Timestamp.
	WallTime TimeSinceEpoch `json:"wallTime"`

	// Request WebSocket request data.
	Request *NetworkWebSocketRequest `json:"request"`
}

NetworkWebSocketWillSendHandshakeRequest Fired when WebSocket is about to initiate handshake.

(NetworkWebSocketWillSendHandshakeRequest) ProtoEvent <- 0.72.0

1
func (evt NetworkWebSocketWillSendHandshakeRequest) ProtoEvent() string

ProtoEvent name.

type NetworkWebTransportClosed <- 0.90.0

1
2
3
4
5
6
7
type NetworkWebTransportClosed struct {
	// TransportID WebTransport identifier.
	TransportID NetworkRequestID `json:"transportId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`
}

NetworkWebTransportClosed Fired when WebTransport is disposed.

(NetworkWebTransportClosed) ProtoEvent <- 0.90.0

1
func (evt NetworkWebTransportClosed) ProtoEvent() string

ProtoEvent name.

type NetworkWebTransportConnectionEstablished <- 0.90.0

1
2
3
4
5
6
7
type NetworkWebTransportConnectionEstablished struct {
	// TransportID WebTransport identifier.
	TransportID NetworkRequestID `json:"transportId"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`
}

NetworkWebTransportConnectionEstablished Fired when WebTransport handshake is finished.

(NetworkWebTransportConnectionEstablished) ProtoEvent <- 0.90.0

1
func (evt NetworkWebTransportConnectionEstablished) ProtoEvent() string

ProtoEvent name.

type NetworkWebTransportCreated <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type NetworkWebTransportCreated struct {
	// TransportID WebTransport identifier.
	TransportID NetworkRequestID `json:"transportId"`

	// URL WebTransport request URL.
	URL string `json:"url"`

	// Timestamp.
	Timestamp MonotonicTime `json:"timestamp"`

	// Initiator (optional) Request initiator.
	Initiator *NetworkInitiator `json:"initiator,omitempty"`
}

NetworkWebTransportCreated Fired upon WebTransport creation.

(NetworkWebTransportCreated) ProtoEvent <- 0.90.0

1
func (evt NetworkWebTransportCreated) ProtoEvent() string

ProtoEvent name.

type OverlayBoxStyle <- 0.90.0

1
2
3
4
5
6
7
type OverlayBoxStyle struct {
	// FillColor (optional) The background color for the box (default: transparent)
	FillColor *DOMRGBA `json:"fillColor,omitempty"`

	// HatchColor (optional) The hatching color for the box (default: transparent)
	HatchColor *DOMRGBA `json:"hatchColor,omitempty"`
}

OverlayBoxStyle Style information for drawing a box.

type OverlayColorFormat <- 0.48.0

1
type OverlayColorFormat string

OverlayColorFormat …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// OverlayColorFormatRgb enum const.
	OverlayColorFormatRgb OverlayColorFormat = "rgb"

	// OverlayColorFormatHsl enum const.
	OverlayColorFormatHsl OverlayColorFormat = "hsl"

	// OverlayColorFormatHwb enum const.
	OverlayColorFormatHwb OverlayColorFormat = "hwb"

	// OverlayColorFormatHex enum const.
	OverlayColorFormatHex OverlayColorFormat = "hex"
)

type OverlayContainerQueryContainerHighlightConfig <- 0.101.5

1
2
3
4
5
6
7
type OverlayContainerQueryContainerHighlightConfig struct {
	// ContainerBorder (optional) The style of the container border.
	ContainerBorder *OverlayLineStyle `json:"containerBorder,omitempty"`

	// DescendantBorder (optional) The style of the descendants' borders.
	DescendantBorder *OverlayLineStyle `json:"descendantBorder,omitempty"`
}

OverlayContainerQueryContainerHighlightConfig …

type OverlayContainerQueryHighlightConfig <- 0.101.5

1
2
3
4
5
6
7
type OverlayContainerQueryHighlightConfig struct {
	// ContainerQueryContainerHighlightConfig A descriptor for the highlight appearance of container query containers.
	ContainerQueryContainerHighlightConfig *OverlayContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig"`

	// NodeID Identifier of the container node to highlight.
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayContainerQueryHighlightConfig …

type OverlayContrastAlgorithm <- 0.90.0

1
type OverlayContrastAlgorithm string

OverlayContrastAlgorithm …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// OverlayContrastAlgorithmAa enum const.
	OverlayContrastAlgorithmAa OverlayContrastAlgorithm = "aa"

	// OverlayContrastAlgorithmAaa enum const.
	OverlayContrastAlgorithmAaa OverlayContrastAlgorithm = "aaa"

	// OverlayContrastAlgorithmApca enum const.
	OverlayContrastAlgorithmApca OverlayContrastAlgorithm = "apca"
)

type OverlayDisable

1
type OverlayDisable struct{}

OverlayDisable Disables domain notifications.

(OverlayDisable) Call

1
func (m OverlayDisable) Call(c Client) error

Call sends the request.

(OverlayDisable) ProtoReq <- 0.74.0

1
func (m OverlayDisable) ProtoReq() string

ProtoReq name.

type OverlayEnable

1
type OverlayEnable struct{}

OverlayEnable Enables domain notifications.

(OverlayEnable) Call

1
func (m OverlayEnable) Call(c Client) error

Call sends the request.

(OverlayEnable) ProtoReq <- 0.74.0

1
func (m OverlayEnable) ProtoReq() string

ProtoReq name.

type OverlayFlexContainerHighlightConfig <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type OverlayFlexContainerHighlightConfig struct {
	// ContainerBorder (optional) The style of the container border
	ContainerBorder *OverlayLineStyle `json:"containerBorder,omitempty"`

	// LineSeparator (optional) The style of the separator between lines
	LineSeparator *OverlayLineStyle `json:"lineSeparator,omitempty"`

	// ItemSeparator (optional) The style of the separator between items
	ItemSeparator *OverlayLineStyle `json:"itemSeparator,omitempty"`

	// MainDistributedSpace (optional) Style of content-distribution space on the main axis (justify-content).
	MainDistributedSpace *OverlayBoxStyle `json:"mainDistributedSpace,omitempty"`

	// CrossDistributedSpace (optional) Style of content-distribution space on the cross axis (align-content).
	CrossDistributedSpace *OverlayBoxStyle `json:"crossDistributedSpace,omitempty"`

	// RowGapSpace (optional) Style of empty space caused by row gaps (gap/row-gap).
	RowGapSpace *OverlayBoxStyle `json:"rowGapSpace,omitempty"`

	// ColumnGapSpace (optional) Style of empty space caused by columns gaps (gap/column-gap).
	ColumnGapSpace *OverlayBoxStyle `json:"columnGapSpace,omitempty"`

	// CrossAlignment (optional) Style of the self-alignment line (align-items).
	CrossAlignment *OverlayLineStyle `json:"crossAlignment,omitempty"`
}

OverlayFlexContainerHighlightConfig Configuration data for the highlighting of Flex container elements.

type OverlayFlexItemHighlightConfig <- 0.93.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type OverlayFlexItemHighlightConfig struct {
	// BaseSizeBox (optional) Style of the box representing the item's base size
	BaseSizeBox *OverlayBoxStyle `json:"baseSizeBox,omitempty"`

	// BaseSizeBorder (optional) Style of the border around the box representing the item's base size
	BaseSizeBorder *OverlayLineStyle `json:"baseSizeBorder,omitempty"`

	// FlexibilityArrow (optional) Style of the arrow representing if the item grew or shrank
	FlexibilityArrow *OverlayLineStyle `json:"flexibilityArrow,omitempty"`
}

OverlayFlexItemHighlightConfig Configuration data for the highlighting of Flex item elements.

type OverlayFlexNodeHighlightConfig <- 0.90.0

1
2
3
4
5
6
7
type OverlayFlexNodeHighlightConfig struct {
	// FlexContainerHighlightConfig A descriptor for the highlight appearance of flex containers.
	FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig"`

	// NodeID Identifier of the node to highlight.
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayFlexNodeHighlightConfig …

type OverlayGetGridHighlightObjectsForTest <- 0.72.0

1
2
3
4
type OverlayGetGridHighlightObjectsForTest struct {
	// NodeIDs Ids of the node to get highlight object for.
	NodeIDs []DOMNodeID `json:"nodeIds"`
}

OverlayGetGridHighlightObjectsForTest For Persistent Grid testing.

(OverlayGetGridHighlightObjectsForTest) Call <- 0.72.0

1
func (m OverlayGetGridHighlightObjectsForTest) Call(c Client) (*OverlayGetGridHighlightObjectsForTestResult, error)

Call the request.

(OverlayGetGridHighlightObjectsForTest) ProtoReq <- 0.74.0

1
func (m OverlayGetGridHighlightObjectsForTest) ProtoReq() string

ProtoReq name.

type OverlayGetGridHighlightObjectsForTestResult <- 0.72.0

1
2
3
4
type OverlayGetGridHighlightObjectsForTestResult struct {
	// Highlights Grid Highlight data for the node ids provided.
	Highlights map[string]gson.JSON `json:"highlights"`
}

OverlayGetGridHighlightObjectsForTestResult …

type OverlayGetHighlightObjectForTest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type OverlayGetHighlightObjectForTest struct {
	// NodeID Id of the node to get highlight object for.
	NodeID DOMNodeID `json:"nodeId"`

	// IncludeDistance (optional) Whether to include distance info.
	IncludeDistance bool `json:"includeDistance,omitempty"`

	// IncludeStyle (optional) Whether to include style info.
	IncludeStyle bool `json:"includeStyle,omitempty"`

	// ColorFormat (optional) The color format to get config with (default: hex).
	ColorFormat OverlayColorFormat `json:"colorFormat,omitempty"`

	// ShowAccessibilityInfo (optional) Whether to show accessibility info (default: true).
	ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"`
}

OverlayGetHighlightObjectForTest For testing.

(OverlayGetHighlightObjectForTest) Call

1
func (m OverlayGetHighlightObjectForTest) Call(c Client) (*OverlayGetHighlightObjectForTestResult, error)

Call the request.

(OverlayGetHighlightObjectForTest) ProtoReq <- 0.74.0

1
func (m OverlayGetHighlightObjectForTest) ProtoReq() string

ProtoReq name.

type OverlayGetHighlightObjectForTestResult

1
2
3
4
type OverlayGetHighlightObjectForTestResult struct {
	// Highlight data for the node.
	Highlight map[string]gson.JSON `json:"highlight"`
}

OverlayGetHighlightObjectForTestResult …

type OverlayGetSourceOrderHighlightObjectForTest <- 0.72.0

1
2
3
4
type OverlayGetSourceOrderHighlightObjectForTest struct {
	// NodeID Id of the node to highlight.
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayGetSourceOrderHighlightObjectForTest For Source Order Viewer testing.

(OverlayGetSourceOrderHighlightObjectForTest) Call <- 0.72.0

1
func (m OverlayGetSourceOrderHighlightObjectForTest) Call(c Client) (*OverlayGetSourceOrderHighlightObjectForTestResult, error)

Call the request.

(OverlayGetSourceOrderHighlightObjectForTest) ProtoReq <- 0.74.0

1
func (m OverlayGetSourceOrderHighlightObjectForTest) ProtoReq() string

ProtoReq name.

type OverlayGetSourceOrderHighlightObjectForTestResult <- 0.72.0

1
2
3
4
type OverlayGetSourceOrderHighlightObjectForTestResult struct {
	// Highlight Source order highlight data for the node id provided.
	Highlight map[string]gson.JSON `json:"highlight"`
}

OverlayGetSourceOrderHighlightObjectForTestResult …

type OverlayGridHighlightConfig <- 0.48.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
type OverlayGridHighlightConfig struct {
	// ShowGridExtensionLines (optional) Whether the extension lines from grid cells to the rulers should be shown (default: false).
	ShowGridExtensionLines bool `json:"showGridExtensionLines,omitempty"`

	// ShowPositiveLineNumbers (optional) Show Positive line number labels (default: false).
	ShowPositiveLineNumbers bool `json:"showPositiveLineNumbers,omitempty"`

	// ShowNegativeLineNumbers (optional) Show Negative line number labels (default: false).
	ShowNegativeLineNumbers bool `json:"showNegativeLineNumbers,omitempty"`

	// ShowAreaNames (optional) Show area name labels (default: false).
	ShowAreaNames bool `json:"showAreaNames,omitempty"`

	// ShowLineNames (optional) Show line name labels (default: false).
	ShowLineNames bool `json:"showLineNames,omitempty"`

	// ShowTrackSizes (optional) Show track size labels (default: false).
	ShowTrackSizes bool `json:"showTrackSizes,omitempty"`

	// GridBorderColor (optional) The grid container border highlight color (default: transparent).
	GridBorderColor *DOMRGBA `json:"gridBorderColor,omitempty"`

	// CellBorderColor (deprecated) (optional) The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.
	CellBorderColor *DOMRGBA `json:"cellBorderColor,omitempty"`

	// RowLineColor (optional) The row line color (default: transparent).
	RowLineColor *DOMRGBA `json:"rowLineColor,omitempty"`

	// ColumnLineColor (optional) The column line color (default: transparent).
	ColumnLineColor *DOMRGBA `json:"columnLineColor,omitempty"`

	// GridBorderDash (optional) Whether the grid border is dashed (default: false).
	GridBorderDash bool `json:"gridBorderDash,omitempty"`

	// CellBorderDash (deprecated) (optional) Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.
	CellBorderDash bool `json:"cellBorderDash,omitempty"`

	// RowLineDash (optional) Whether row lines are dashed (default: false).
	RowLineDash bool `json:"rowLineDash,omitempty"`

	// ColumnLineDash (optional) Whether column lines are dashed (default: false).
	ColumnLineDash bool `json:"columnLineDash,omitempty"`

	// RowGapColor (optional) The row gap highlight fill color (default: transparent).
	RowGapColor *DOMRGBA `json:"rowGapColor,omitempty"`

	// RowHatchColor (optional) The row gap hatching fill color (default: transparent).
	RowHatchColor *DOMRGBA `json:"rowHatchColor,omitempty"`

	// ColumnGapColor (optional) The column gap highlight fill color (default: transparent).
	ColumnGapColor *DOMRGBA `json:"columnGapColor,omitempty"`

	// ColumnHatchColor (optional) The column gap hatching fill color (default: transparent).
	ColumnHatchColor *DOMRGBA `json:"columnHatchColor,omitempty"`

	// AreaBorderColor (optional) The named grid areas border color (Default: transparent).
	AreaBorderColor *DOMRGBA `json:"areaBorderColor,omitempty"`

	// GridBackgroundColor (optional) The grid container background color (Default: transparent).
	GridBackgroundColor *DOMRGBA `json:"gridBackgroundColor,omitempty"`
}

OverlayGridHighlightConfig Configuration data for the highlighting of Grid elements.

type OverlayGridNodeHighlightConfig <- 0.72.0

1
2
3
4
5
6
7
type OverlayGridNodeHighlightConfig struct {
	// GridHighlightConfig A descriptor for the highlight appearance.
	GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig"`

	// NodeID Identifier of the node to highlight.
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayGridNodeHighlightConfig Configurations for Persistent Grid Highlight.

type OverlayHideHighlight

1
type OverlayHideHighlight struct{}

OverlayHideHighlight Hides any highlight.

(OverlayHideHighlight) Call

1
func (m OverlayHideHighlight) Call(c Client) error

Call sends the request.

(OverlayHideHighlight) ProtoReq <- 0.74.0

1
func (m OverlayHideHighlight) ProtoReq() string

ProtoReq name.

type OverlayHighlightConfig

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
type OverlayHighlightConfig struct {
	// ShowInfo (optional) Whether the node info tooltip should be shown (default: false).
	ShowInfo bool `json:"showInfo,omitempty"`

	// ShowStyles (optional) Whether the node styles in the tooltip (default: false).
	ShowStyles bool `json:"showStyles,omitempty"`

	// ShowRulers (optional) Whether the rulers should be shown (default: false).
	ShowRulers bool `json:"showRulers,omitempty"`

	// ShowAccessibilityInfo (optional) Whether the a11y info should be shown (default: true).
	ShowAccessibilityInfo bool `json:"showAccessibilityInfo,omitempty"`

	// ShowExtensionLines (optional) Whether the extension lines from node to the rulers should be shown (default: false).
	ShowExtensionLines bool `json:"showExtensionLines,omitempty"`

	// ContentColor (optional) The content box highlight fill color (default: transparent).
	ContentColor *DOMRGBA `json:"contentColor,omitempty"`

	// PaddingColor (optional) The padding highlight fill color (default: transparent).
	PaddingColor *DOMRGBA `json:"paddingColor,omitempty"`

	// BorderColor (optional) The border highlight fill color (default: transparent).
	BorderColor *DOMRGBA `json:"borderColor,omitempty"`

	// MarginColor (optional) The margin highlight fill color (default: transparent).
	MarginColor *DOMRGBA `json:"marginColor,omitempty"`

	// EventTargetColor (optional) The event target element highlight fill color (default: transparent).
	EventTargetColor *DOMRGBA `json:"eventTargetColor,omitempty"`

	// ShapeColor (optional) The shape outside fill color (default: transparent).
	ShapeColor *DOMRGBA `json:"shapeColor,omitempty"`

	// ShapeMarginColor (optional) The shape margin fill color (default: transparent).
	ShapeMarginColor *DOMRGBA `json:"shapeMarginColor,omitempty"`

	// CSSGridColor (optional) The grid layout color (default: transparent).
	CSSGridColor *DOMRGBA `json:"cssGridColor,omitempty"`

	// ColorFormat (optional) The color format used to format color styles (default: hex).
	ColorFormat OverlayColorFormat `json:"colorFormat,omitempty"`

	// GridHighlightConfig (optional) The grid layout highlight configuration (default: all transparent).
	GridHighlightConfig *OverlayGridHighlightConfig `json:"gridHighlightConfig,omitempty"`

	// FlexContainerHighlightConfig (optional) The flex container highlight configuration (default: all transparent).
	FlexContainerHighlightConfig *OverlayFlexContainerHighlightConfig `json:"flexContainerHighlightConfig,omitempty"`

	// FlexItemHighlightConfig (optional) The flex item highlight configuration (default: all transparent).
	FlexItemHighlightConfig *OverlayFlexItemHighlightConfig `json:"flexItemHighlightConfig,omitempty"`

	// ContrastAlgorithm (optional) The contrast algorithm to use for the contrast ratio (default: aa).
	ContrastAlgorithm OverlayContrastAlgorithm `json:"contrastAlgorithm,omitempty"`

	// ContainerQueryContainerHighlightConfig (optional) The container query container highlight configuration (default: all transparent).
	ContainerQueryContainerHighlightConfig *OverlayContainerQueryContainerHighlightConfig `json:"containerQueryContainerHighlightConfig,omitempty"`
}

OverlayHighlightConfig Configuration data for the highlighting of page elements.

type OverlayHighlightFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type OverlayHighlightFrame struct {
	// FrameID Identifier of the frame to highlight.
	FrameID PageFrameID `json:"frameId"`

	// ContentColor (optional) The content box highlight fill color (default: transparent).
	ContentColor *DOMRGBA `json:"contentColor,omitempty"`

	// ContentOutlineColor (optional) The content box highlight outline color (default: transparent).
	ContentOutlineColor *DOMRGBA `json:"contentOutlineColor,omitempty"`
}

OverlayHighlightFrame (deprecated) Highlights owner element of the frame with given id. Deprecated: Doesn’t work reliably and cannot be fixed due to process separation (the owner node might be in a different process). Determine the owner node in the client and use highlightNode.

(OverlayHighlightFrame) Call

1
func (m OverlayHighlightFrame) Call(c Client) error

Call sends the request.

(OverlayHighlightFrame) ProtoReq <- 0.74.0

1
func (m OverlayHighlightFrame) ProtoReq() string

ProtoReq name.

type OverlayHighlightNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type OverlayHighlightNode struct {
	// HighlightConfig A descriptor for the highlight appearance.
	HighlightConfig *OverlayHighlightConfig `json:"highlightConfig"`

	// NodeID (optional) Identifier of the node to highlight.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node to highlight.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node to be highlighted.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// Selector (optional) Selectors to highlight relevant nodes.
	Selector string `json:"selector,omitempty"`
}

OverlayHighlightNode Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

(OverlayHighlightNode) Call

1
func (m OverlayHighlightNode) Call(c Client) error

Call sends the request.

(OverlayHighlightNode) ProtoReq <- 0.74.0

1
func (m OverlayHighlightNode) ProtoReq() string

ProtoReq name.

type OverlayHighlightQuad

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type OverlayHighlightQuad struct {
	// Quad to highlight
	Quad DOMQuad `json:"quad"`

	// Color (optional) The highlight fill color (default: transparent).
	Color *DOMRGBA `json:"color,omitempty"`

	// OutlineColor (optional) The highlight outline color (default: transparent).
	OutlineColor *DOMRGBA `json:"outlineColor,omitempty"`
}

OverlayHighlightQuad Highlights given quad. Coordinates are absolute with respect to the main frame viewport.

(OverlayHighlightQuad) Call

1
func (m OverlayHighlightQuad) Call(c Client) error

Call sends the request.

(OverlayHighlightQuad) ProtoReq <- 0.74.0

1
func (m OverlayHighlightQuad) ProtoReq() string

ProtoReq name.

type OverlayHighlightRect

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type OverlayHighlightRect struct {
	// X coordinate
	X int `json:"x"`

	// Y coordinate
	Y int `json:"y"`

	// Width Rectangle width
	Width int `json:"width"`

	// Height Rectangle height
	Height int `json:"height"`

	// Color (optional) The highlight fill color (default: transparent).
	Color *DOMRGBA `json:"color,omitempty"`

	// OutlineColor (optional) The highlight outline color (default: transparent).
	OutlineColor *DOMRGBA `json:"outlineColor,omitempty"`
}

OverlayHighlightRect Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.

(OverlayHighlightRect) Call

1
func (m OverlayHighlightRect) Call(c Client) error

Call sends the request.

(OverlayHighlightRect) ProtoReq <- 0.74.0

1
func (m OverlayHighlightRect) ProtoReq() string

ProtoReq name.

type OverlayHighlightSourceOrder <- 0.72.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type OverlayHighlightSourceOrder struct {
	// SourceOrderConfig A descriptor for the appearance of the overlay drawing.
	SourceOrderConfig *OverlaySourceOrderConfig `json:"sourceOrderConfig"`

	// NodeID (optional) Identifier of the node to highlight.
	NodeID DOMNodeID `json:"nodeId,omitempty"`

	// BackendNodeID (optional) Identifier of the backend node to highlight.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// ObjectID (optional) JavaScript object id of the node to be highlighted.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

OverlayHighlightSourceOrder Highlights the source order of the children of the DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.

(OverlayHighlightSourceOrder) Call <- 0.72.0

1
func (m OverlayHighlightSourceOrder) Call(c Client) error

Call sends the request.

(OverlayHighlightSourceOrder) ProtoReq <- 0.74.0

1
func (m OverlayHighlightSourceOrder) ProtoReq() string

ProtoReq name.

type OverlayHingeConfig <- 0.48.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type OverlayHingeConfig struct {
	// Rect A rectangle represent hinge
	Rect *DOMRect `json:"rect"`

	// ContentColor (optional) The content box highlight fill color (default: a dark color).
	ContentColor *DOMRGBA `json:"contentColor,omitempty"`

	// OutlineColor (optional) The content box highlight outline color (default: transparent).
	OutlineColor *DOMRGBA `json:"outlineColor,omitempty"`
}

OverlayHingeConfig Configuration for dual screen hinge.

type OverlayInspectMode

1
type OverlayInspectMode string

OverlayInspectMode …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// OverlayInspectModeSearchForNode enum const.
	OverlayInspectModeSearchForNode OverlayInspectMode = "searchForNode"

	// OverlayInspectModeSearchForUAShadowDOM enum const.
	OverlayInspectModeSearchForUAShadowDOM OverlayInspectMode = "searchForUAShadowDOM"

	// OverlayInspectModeCaptureAreaScreenshot enum const.
	OverlayInspectModeCaptureAreaScreenshot OverlayInspectMode = "captureAreaScreenshot"

	// OverlayInspectModeShowDistances enum const.
	OverlayInspectModeShowDistances OverlayInspectMode = "showDistances"

	// OverlayInspectModeNone enum const.
	OverlayInspectModeNone OverlayInspectMode = "none"
)

type OverlayInspectModeCanceled

1
type OverlayInspectModeCanceled struct{}

OverlayInspectModeCanceled Fired when user cancels the inspect mode.

(OverlayInspectModeCanceled) ProtoEvent <- 0.72.0

1
func (evt OverlayInspectModeCanceled) ProtoEvent() string

ProtoEvent name.

type OverlayInspectNodeRequested

1
2
3
4
type OverlayInspectNodeRequested struct {
	// BackendNodeID Id of the node to inspect.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId"`
}

OverlayInspectNodeRequested Fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element.

(OverlayInspectNodeRequested) ProtoEvent <- 0.72.0

1
func (evt OverlayInspectNodeRequested) ProtoEvent() string

ProtoEvent name.

type OverlayIsolatedElementHighlightConfig <- 0.102.0

1
2
3
4
5
6
7
type OverlayIsolatedElementHighlightConfig struct {
	// IsolationModeHighlightConfig A descriptor for the highlight appearance of an element in isolation mode.
	IsolationModeHighlightConfig *OverlayIsolationModeHighlightConfig `json:"isolationModeHighlightConfig"`

	// NodeID Identifier of the isolated element to highlight.
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayIsolatedElementHighlightConfig …

type OverlayIsolationModeHighlightConfig <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type OverlayIsolationModeHighlightConfig struct {
	// ResizerColor (optional) The fill color of the resizers (default: transparent).
	ResizerColor *DOMRGBA `json:"resizerColor,omitempty"`

	// ResizerHandleColor (optional) The fill color for resizer handles (default: transparent).
	ResizerHandleColor *DOMRGBA `json:"resizerHandleColor,omitempty"`

	// MaskColor (optional) The fill color for the mask covering non-isolated elements (default: transparent).
	MaskColor *DOMRGBA `json:"maskColor,omitempty"`
}

OverlayIsolationModeHighlightConfig …

type OverlayLineStyle <- 0.90.0

1
2
3
4
5
6
7
type OverlayLineStyle struct {
	// Color (optional) The color of the line (default: transparent)
	Color *DOMRGBA `json:"color,omitempty"`

	// Pattern (optional) The line pattern (default: solid)
	Pattern OverlayLineStylePattern `json:"pattern,omitempty"`
}

OverlayLineStyle Style information for drawing a line.

type OverlayLineStylePattern <- 0.90.0

1
type OverlayLineStylePattern string

OverlayLineStylePattern enum.

1
2
3
4
5
6
7
const (
	// OverlayLineStylePatternDashed enum const.
	OverlayLineStylePatternDashed OverlayLineStylePattern = "dashed"

	// OverlayLineStylePatternDotted enum const.
	OverlayLineStylePatternDotted OverlayLineStylePattern = "dotted"
)

type OverlayNodeHighlightRequested

1
2
3
4
type OverlayNodeHighlightRequested struct {
	// NodeID ...
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayNodeHighlightRequested Fired when the node should be highlighted. This happens after call to setInspectMode.

(OverlayNodeHighlightRequested) ProtoEvent <- 0.72.0

1
func (evt OverlayNodeHighlightRequested) ProtoEvent() string

ProtoEvent name.

type OverlayScreenshotRequested

1
2
3
4
type OverlayScreenshotRequested struct {
	// Viewport to capture, in device independent pixels (dip).
	Viewport *PageViewport `json:"viewport"`
}

OverlayScreenshotRequested Fired when user asks to capture screenshot of some area on the page.

(OverlayScreenshotRequested) ProtoEvent <- 0.72.0

1
func (evt OverlayScreenshotRequested) ProtoEvent() string

ProtoEvent name.

type OverlayScrollSnapContainerHighlightConfig <- 0.97.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type OverlayScrollSnapContainerHighlightConfig struct {
	// SnapportBorder (optional) The style of the snapport border (default: transparent)
	SnapportBorder *OverlayLineStyle `json:"snapportBorder,omitempty"`

	// SnapAreaBorder (optional) The style of the snap area border (default: transparent)
	SnapAreaBorder *OverlayLineStyle `json:"snapAreaBorder,omitempty"`

	// ScrollMarginColor (optional) The margin highlight fill color (default: transparent).
	ScrollMarginColor *DOMRGBA `json:"scrollMarginColor,omitempty"`

	// ScrollPaddingColor (optional) The padding highlight fill color (default: transparent).
	ScrollPaddingColor *DOMRGBA `json:"scrollPaddingColor,omitempty"`
}

OverlayScrollSnapContainerHighlightConfig …

type OverlayScrollSnapHighlightConfig <- 0.97.5

1
2
3
4
5
6
7
type OverlayScrollSnapHighlightConfig struct {
	// ScrollSnapContainerHighlightConfig A descriptor for the highlight appearance of scroll snap containers.
	ScrollSnapContainerHighlightConfig *OverlayScrollSnapContainerHighlightConfig `json:"scrollSnapContainerHighlightConfig"`

	// NodeID Identifier of the node to highlight.
	NodeID DOMNodeID `json:"nodeId"`
}

OverlayScrollSnapHighlightConfig …

type OverlaySetInspectMode

1
2
3
4
5
6
7
8
type OverlaySetInspectMode struct {
	// Mode Set an inspection mode.
	Mode OverlayInspectMode `json:"mode"`

	// HighlightConfig (optional) A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled
	// == false`.
	HighlightConfig *OverlayHighlightConfig `json:"highlightConfig,omitempty"`
}

OverlaySetInspectMode Enters the ‘inspect’ mode. In this mode, elements that user is hovering over are highlighted. Backend then generates ‘inspectNodeRequested’ event upon element selection.

(OverlaySetInspectMode) Call

1
func (m OverlaySetInspectMode) Call(c Client) error

Call sends the request.

(OverlaySetInspectMode) ProtoReq <- 0.74.0

1
func (m OverlaySetInspectMode) ProtoReq() string

ProtoReq name.

type OverlaySetPausedInDebuggerMessage

1
2
3
4
type OverlaySetPausedInDebuggerMessage struct {
	// Message (optional) The message to display, also triggers resume and step over controls.
	Message string `json:"message,omitempty"`
}

OverlaySetPausedInDebuggerMessage …

(OverlaySetPausedInDebuggerMessage) Call

1
func (m OverlaySetPausedInDebuggerMessage) Call(c Client) error

Call sends the request.

(OverlaySetPausedInDebuggerMessage) ProtoReq <- 0.74.0

1
func (m OverlaySetPausedInDebuggerMessage) ProtoReq() string

ProtoReq name.

type OverlaySetShowAdHighlights

1
2
3
4
type OverlaySetShowAdHighlights struct {
	// Show True for showing ad highlights
	Show bool `json:"show"`
}

OverlaySetShowAdHighlights Highlights owner element of all frames detected to be ads.

(OverlaySetShowAdHighlights) Call

1
func (m OverlaySetShowAdHighlights) Call(c Client) error

Call sends the request.

(OverlaySetShowAdHighlights) ProtoReq <- 0.74.0

1
func (m OverlaySetShowAdHighlights) ProtoReq() string

ProtoReq name.

type OverlaySetShowContainerQueryOverlays <- 0.101.5

1
2
3
4
type OverlaySetShowContainerQueryOverlays struct {
	// ContainerQueryHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
	ContainerQueryHighlightConfigs []*OverlayContainerQueryHighlightConfig `json:"containerQueryHighlightConfigs"`
}

OverlaySetShowContainerQueryOverlays …

(OverlaySetShowContainerQueryOverlays) Call <- 0.101.5

1
func (m OverlaySetShowContainerQueryOverlays) Call(c Client) error

Call sends the request.

(OverlaySetShowContainerQueryOverlays) ProtoReq <- 0.101.5

1
func (m OverlaySetShowContainerQueryOverlays) ProtoReq() string

ProtoReq name.

type OverlaySetShowDebugBorders

1
2
3
4
type OverlaySetShowDebugBorders struct {
	// Show True for showing debug borders
	Show bool `json:"show"`
}

OverlaySetShowDebugBorders Requests that backend shows debug borders on layers.

(OverlaySetShowDebugBorders) Call

1
func (m OverlaySetShowDebugBorders) Call(c Client) error

Call sends the request.

(OverlaySetShowDebugBorders) ProtoReq <- 0.74.0

1
func (m OverlaySetShowDebugBorders) ProtoReq() string

ProtoReq name.

type OverlaySetShowFPSCounter

1
2
3
4
type OverlaySetShowFPSCounter struct {
	// Show True for showing the FPS counter
	Show bool `json:"show"`
}

OverlaySetShowFPSCounter Requests that backend shows the FPS counter.

(OverlaySetShowFPSCounter) Call

1
func (m OverlaySetShowFPSCounter) Call(c Client) error

Call sends the request.

(OverlaySetShowFPSCounter) ProtoReq <- 0.74.0

1
func (m OverlaySetShowFPSCounter) ProtoReq() string

ProtoReq name.

type OverlaySetShowFlexOverlays <- 0.90.0

1
2
3
4
type OverlaySetShowFlexOverlays struct {
	// FlexNodeHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
	FlexNodeHighlightConfigs []*OverlayFlexNodeHighlightConfig `json:"flexNodeHighlightConfigs"`
}

OverlaySetShowFlexOverlays …

(OverlaySetShowFlexOverlays) Call <- 0.90.0

1
func (m OverlaySetShowFlexOverlays) Call(c Client) error

Call sends the request.

(OverlaySetShowFlexOverlays) ProtoReq <- 0.90.0

1
func (m OverlaySetShowFlexOverlays) ProtoReq() string

ProtoReq name.

type OverlaySetShowGridOverlays <- 0.72.0

1
2
3
4
type OverlaySetShowGridOverlays struct {
	// GridNodeHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
	GridNodeHighlightConfigs []*OverlayGridNodeHighlightConfig `json:"gridNodeHighlightConfigs"`
}

OverlaySetShowGridOverlays Highlight multiple elements with the CSS Grid overlay.

(OverlaySetShowGridOverlays) Call <- 0.72.0

1
func (m OverlaySetShowGridOverlays) Call(c Client) error

Call sends the request.

(OverlaySetShowGridOverlays) ProtoReq <- 0.74.0

1
func (m OverlaySetShowGridOverlays) ProtoReq() string

ProtoReq name.

type OverlaySetShowHinge <- 0.48.0

1
2
3
4
type OverlaySetShowHinge struct {
	// HingeConfig (optional) hinge data, null means hideHinge
	HingeConfig *OverlayHingeConfig `json:"hingeConfig,omitempty"`
}

OverlaySetShowHinge Add a dual screen device hinge.

(OverlaySetShowHinge) Call <- 0.48.0

1
func (m OverlaySetShowHinge) Call(c Client) error

Call sends the request.

(OverlaySetShowHinge) ProtoReq <- 0.74.0

1
func (m OverlaySetShowHinge) ProtoReq() string

ProtoReq name.

type OverlaySetShowHitTestBorders

1
2
3
4
type OverlaySetShowHitTestBorders struct {
	// Show True for showing hit-test borders
	Show bool `json:"show"`
}

OverlaySetShowHitTestBorders (deprecated) Deprecated, no longer has any effect.

(OverlaySetShowHitTestBorders) Call

1
func (m OverlaySetShowHitTestBorders) Call(c Client) error

Call sends the request.

(OverlaySetShowHitTestBorders) ProtoReq <- 0.74.0

1
func (m OverlaySetShowHitTestBorders) ProtoReq() string

ProtoReq name.

type OverlaySetShowIsolatedElements <- 0.102.0

1
2
3
4
type OverlaySetShowIsolatedElements struct {
	// IsolatedElementHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
	IsolatedElementHighlightConfigs []*OverlayIsolatedElementHighlightConfig `json:"isolatedElementHighlightConfigs"`
}

OverlaySetShowIsolatedElements Show elements in isolation mode with overlays.

(OverlaySetShowIsolatedElements) Call <- 0.102.0

1
func (m OverlaySetShowIsolatedElements) Call(c Client) error

Call sends the request.

(OverlaySetShowIsolatedElements) ProtoReq <- 0.102.0

1
func (m OverlaySetShowIsolatedElements) ProtoReq() string

ProtoReq name.

type OverlaySetShowLayoutShiftRegions

1
2
3
4
type OverlaySetShowLayoutShiftRegions struct {
	// Result True for showing layout shift regions
	Result bool `json:"result"`
}

OverlaySetShowLayoutShiftRegions Requests that backend shows layout shift regions.

(OverlaySetShowLayoutShiftRegions) Call

1
func (m OverlaySetShowLayoutShiftRegions) Call(c Client) error

Call sends the request.

(OverlaySetShowLayoutShiftRegions) ProtoReq <- 0.74.0

1
func (m OverlaySetShowLayoutShiftRegions) ProtoReq() string

ProtoReq name.

type OverlaySetShowPaintRects

1
2
3
4
type OverlaySetShowPaintRects struct {
	// Result True for showing paint rectangles
	Result bool `json:"result"`
}

OverlaySetShowPaintRects Requests that backend shows paint rectangles.

(OverlaySetShowPaintRects) Call

1
func (m OverlaySetShowPaintRects) Call(c Client) error

Call sends the request.

(OverlaySetShowPaintRects) ProtoReq <- 0.74.0

1
func (m OverlaySetShowPaintRects) ProtoReq() string

ProtoReq name.

type OverlaySetShowScrollBottleneckRects

1
2
3
4
type OverlaySetShowScrollBottleneckRects struct {
	// Show True for showing scroll bottleneck rects
	Show bool `json:"show"`
}

OverlaySetShowScrollBottleneckRects Requests that backend shows scroll bottleneck rects.

(OverlaySetShowScrollBottleneckRects) Call

1
func (m OverlaySetShowScrollBottleneckRects) Call(c Client) error

Call sends the request.

(OverlaySetShowScrollBottleneckRects) ProtoReq <- 0.74.0

1
func (m OverlaySetShowScrollBottleneckRects) ProtoReq() string

ProtoReq name.

type OverlaySetShowScrollSnapOverlays <- 0.97.5

1
2
3
4
type OverlaySetShowScrollSnapOverlays struct {
	// ScrollSnapHighlightConfigs An array of node identifiers and descriptors for the highlight appearance.
	ScrollSnapHighlightConfigs []*OverlayScrollSnapHighlightConfig `json:"scrollSnapHighlightConfigs"`
}

OverlaySetShowScrollSnapOverlays …

(OverlaySetShowScrollSnapOverlays) Call <- 0.97.5

1
func (m OverlaySetShowScrollSnapOverlays) Call(c Client) error

Call sends the request.

(OverlaySetShowScrollSnapOverlays) ProtoReq <- 0.97.5

1
func (m OverlaySetShowScrollSnapOverlays) ProtoReq() string

ProtoReq name.

type OverlaySetShowViewportSizeOnResize

1
2
3
4
type OverlaySetShowViewportSizeOnResize struct {
	// Show Whether to paint size or not.
	Show bool `json:"show"`
}

OverlaySetShowViewportSizeOnResize Paints viewport size upon main frame resize.

(OverlaySetShowViewportSizeOnResize) Call

1
func (m OverlaySetShowViewportSizeOnResize) Call(c Client) error

Call sends the request.

(OverlaySetShowViewportSizeOnResize) ProtoReq <- 0.74.0

1
func (m OverlaySetShowViewportSizeOnResize) ProtoReq() string

ProtoReq name.

type OverlaySetShowWebVitals <- 0.90.0

1
2
3
4
type OverlaySetShowWebVitals struct {
	// Show ...
	Show bool `json:"show"`
}

OverlaySetShowWebVitals Request that backend shows an overlay with web vital metrics.

(OverlaySetShowWebVitals) Call <- 0.90.0

1
func (m OverlaySetShowWebVitals) Call(c Client) error

Call sends the request.

(OverlaySetShowWebVitals) ProtoReq <- 0.90.0

1
func (m OverlaySetShowWebVitals) ProtoReq() string

ProtoReq name.

type OverlaySetShowWindowControlsOverlay <- 0.115.0

1
2
3
4
type OverlaySetShowWindowControlsOverlay struct {
	// WindowControlsOverlayConfig (optional) Window Controls Overlay data, null means hide Window Controls Overlay
	WindowControlsOverlayConfig *OverlayWindowControlsOverlayConfig `json:"windowControlsOverlayConfig,omitempty"`
}

OverlaySetShowWindowControlsOverlay Show Window Controls Overlay for PWA.

(OverlaySetShowWindowControlsOverlay) Call <- 0.115.0

1
func (m OverlaySetShowWindowControlsOverlay) Call(c Client) error

Call sends the request.

(OverlaySetShowWindowControlsOverlay) ProtoReq <- 0.115.0

1
func (m OverlaySetShowWindowControlsOverlay) ProtoReq() string

ProtoReq name.

type OverlaySourceOrderConfig <- 0.72.0

1
2
3
4
5
6
7
type OverlaySourceOrderConfig struct {
	// ParentOutlineColor the color to outline the given element in.
	ParentOutlineColor *DOMRGBA `json:"parentOutlineColor"`

	// ChildOutlineColor the color to outline the child elements in.
	ChildOutlineColor *DOMRGBA `json:"childOutlineColor"`
}

OverlaySourceOrderConfig Configuration data for drawing the source order of an elements children.

type OverlayWindowControlsOverlayConfig <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type OverlayWindowControlsOverlayConfig struct {
	// ShowCSS Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
	ShowCSS bool `json:"showCSS"`

	// SelectedPlatform Selected platforms to show the overlay.
	SelectedPlatform string `json:"selectedPlatform"`

	// ThemeColor The theme color defined in app manifest.
	ThemeColor string `json:"themeColor"`
}

OverlayWindowControlsOverlayConfig Configuration for Window Controls Overlay.

type PWAChangeAppUserSettings <- 0.116.2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type PWAChangeAppUserSettings struct {
	// ManifestID ...
	ManifestID string `json:"manifestId"`

	// LinkCapturing (optional) If user allows the links clicked on by the user in the app's scope, or
	// extended scope if the manifest has scope extensions and the flags
	// `DesktopPWAsLinkCapturingWithScopeExtensions` and
	// `WebAppEnableScopeExtensions` are enabled.
	//
	// Note, the API does not support resetting the linkCapturing to the
	// initial value, uninstalling and installing the web app again will reset
	// it.
	//
	// TODO(crbug.com/339453269): Setting this value on ChromeOS is not
	// supported yet.
	LinkCapturing bool `json:"linkCapturing,omitempty"`

	// DisplayMode (optional) ...
	DisplayMode PWADisplayMode `json:"displayMode,omitempty"`
}

PWAChangeAppUserSettings Changes user settings of the web app identified by its manifestId. If the app was not installed, this command returns an error. Unset parameters will be ignored; unrecognized values will cause an error.

Unlike the ones defined in the manifest files of the web apps, these settings are provided by the browser and controlled by the users, they impact the way the browser handling the web apps.

See the comment of each parameter.

(PWAChangeAppUserSettings) Call <- 0.116.2

1
func (m PWAChangeAppUserSettings) Call(c Client) error

Call sends the request.

(PWAChangeAppUserSettings) ProtoReq <- 0.116.2

1
func (m PWAChangeAppUserSettings) ProtoReq() string

ProtoReq name.

type PWADisplayMode <- 0.116.2

1
type PWADisplayMode string

PWADisplayMode If user prefers opening the app in browser or an app window.

1
2
3
4
5
6
7
const (
	// PWADisplayModeStandalone enum const.
	PWADisplayModeStandalone PWADisplayMode = "standalone"

	// PWADisplayModeBrowser enum const.
	PWADisplayModeBrowser PWADisplayMode = "browser"
)

type PWAFileHandler <- 0.116.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PWAFileHandler struct {
	// Action ...
	Action string `json:"action"`

	// Accepts ...
	Accepts []*PWAFileHandlerAccept `json:"accepts"`

	// DisplayName ...
	DisplayName string `json:"displayName"`
}

PWAFileHandler …

type PWAFileHandlerAccept <- 0.116.0

1
2
3
4
5
6
7
8
type PWAFileHandlerAccept struct {
	// MediaType New name of the mimetype according to
	// https://www.iana.org/assignments/media-types/media-types.xhtml
	MediaType string `json:"mediaType"`

	// FileExtensions ...
	FileExtensions []string `json:"fileExtensions"`
}

PWAFileHandlerAccept The following types are the replica of https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67

type PWAGetOsAppState <- 0.116.0

1
2
3
4
5
6
type PWAGetOsAppState struct {
	// ManifestID The id from the webapp's manifest file, commonly it's the url of the
	// site installing the webapp. See
	// https://web.dev/learn/pwa/web-app-manifest.
	ManifestID string `json:"manifestId"`
}

PWAGetOsAppState Returns the following OS state for the given manifest id.

(PWAGetOsAppState) Call <- 0.116.0

1
func (m PWAGetOsAppState) Call(c Client) (*PWAGetOsAppStateResult, error)

Call the request.

(PWAGetOsAppState) ProtoReq <- 0.116.0

1
func (m PWAGetOsAppState) ProtoReq() string

ProtoReq name.

type PWAGetOsAppStateResult <- 0.116.0

1
2
3
4
5
6
7
type PWAGetOsAppStateResult struct {
	// BadgeCount ...
	BadgeCount int `json:"badgeCount"`

	// FileHandlers ...
	FileHandlers []*PWAFileHandler `json:"fileHandlers"`
}

PWAGetOsAppStateResult …

type PWAInstall <- 0.116.0

1
2
3
4
5
6
7
8
type PWAInstall struct {
	// ManifestID ...
	ManifestID string `json:"manifestId"`

	// InstallURLOrBundleURL (optional) The location of the app or bundle overriding the one derived from the
	// manifestId.
	InstallURLOrBundleURL string `json:"installUrlOrBundleUrl,omitempty"`
}

PWAInstall Installs the given manifest identity, optionally using the given install_url or IWA bundle location.

TODO(crbug.com/337872319) Support IWA to meet the following specific requirement. IWA-specific install description: If the manifest_id is isolated-app://, install_url_or_bundle_url is required, and can be either an http(s) URL or file:// URL pointing to a signed web bundle (.swbn). The .swbn file’s signing key must correspond to manifest_id. If Chrome is not in IWA dev mode, the installation will fail, regardless of the state of the allowlist.

(PWAInstall) Call <- 0.116.0

1
func (m PWAInstall) Call(c Client) error

Call sends the request.

(PWAInstall) ProtoReq <- 0.116.0

1
func (m PWAInstall) ProtoReq() string

ProtoReq name.

type PWALaunch <- 0.116.2

1
2
3
4
5
6
7
type PWALaunch struct {
	// ManifestID ...
	ManifestID string `json:"manifestId"`

	// URL (optional) ...
	URL string `json:"url,omitempty"`
}

PWALaunch Launches the installed web app, or an url in the same web app instead of the default start url if it is provided. Returns a page Target.TargetID which can be used to attach to via Target.attachToTarget or similar APIs.

(PWALaunch) Call <- 0.116.2

1
func (m PWALaunch) Call(c Client) (*PWALaunchResult, error)

Call the request.

(PWALaunch) ProtoReq <- 0.116.2

1
func (m PWALaunch) ProtoReq() string

ProtoReq name.

type PWALaunchFilesInApp <- 0.116.2

1
2
3
4
5
6
7
type PWALaunchFilesInApp struct {
	// ManifestID ...
	ManifestID string `json:"manifestId"`

	// Files ...
	Files []string `json:"files"`
}

PWALaunchFilesInApp Opens one or more local files from an installed web app identified by its manifestId. The web app needs to have file handlers registered to process the files. The API returns one or more page Target.TargetIDs which can be used to attach to via Target.attachToTarget or similar APIs. If some files in the parameters cannot be handled by the web app, they will be ignored. If none of the files can be handled, this API returns an error. If no files are provided as the parameter, this API also returns an error.

According to the definition of the file handlers in the manifest file, one Target.TargetID may represent a page handling one or more files. The order of the returned Target.TargetIDs is not guaranteed.

TODO(crbug.com/339454034): Check the existences of the input files.

(PWALaunchFilesInApp) Call <- 0.116.2

1
func (m PWALaunchFilesInApp) Call(c Client) (*PWALaunchFilesInAppResult, error)

Call the request.

(PWALaunchFilesInApp) ProtoReq <- 0.116.2

1
func (m PWALaunchFilesInApp) ProtoReq() string

ProtoReq name.

type PWALaunchFilesInAppResult <- 0.116.2

1
2
3
4
type PWALaunchFilesInAppResult struct {
	// TargetIDs IDs of the tab targets created as the result.
	TargetIDs []TargetTargetID `json:"targetIds"`
}

PWALaunchFilesInAppResult …

type PWALaunchResult <- 0.116.2

1
2
3
4
type PWALaunchResult struct {
	// TargetID ID of the tab target created as a result.
	TargetID TargetTargetID `json:"targetId"`
}

PWALaunchResult …

type PWAOpenCurrentPageInApp <- 0.116.2

1
2
3
4
type PWAOpenCurrentPageInApp struct {
	// ManifestID ...
	ManifestID string `json:"manifestId"`
}

PWAOpenCurrentPageInApp Opens the current page in its web app identified by the manifest id, needs to be called on a page target. This function returns immediately without waiting for the app to finish loading.

(PWAOpenCurrentPageInApp) Call <- 0.116.2

1
func (m PWAOpenCurrentPageInApp) Call(c Client) error

Call sends the request.

(PWAOpenCurrentPageInApp) ProtoReq <- 0.116.2

1
func (m PWAOpenCurrentPageInApp) ProtoReq() string

ProtoReq name.

type PWAUninstall <- 0.116.0

1
2
3
4
type PWAUninstall struct {
	// ManifestID ...
	ManifestID string `json:"manifestId"`
}

PWAUninstall Uninstalls the given manifest_id and closes any opened app windows.

(PWAUninstall) Call <- 0.116.0

1
func (m PWAUninstall) Call(c Client) error

Call sends the request.

(PWAUninstall) ProtoReq <- 0.116.0

1
func (m PWAUninstall) ProtoReq() string

ProtoReq name.

type PageAdFrameExplanation <- 0.101.5

1
type PageAdFrameExplanation string

PageAdFrameExplanation (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageAdFrameExplanationParentIsAd enum const.
	PageAdFrameExplanationParentIsAd PageAdFrameExplanation = "ParentIsAd"

	// PageAdFrameExplanationCreatedByAdScript enum const.
	PageAdFrameExplanationCreatedByAdScript PageAdFrameExplanation = "CreatedByAdScript"

	// PageAdFrameExplanationMatchedBlockingRule enum const.
	PageAdFrameExplanationMatchedBlockingRule PageAdFrameExplanation = "MatchedBlockingRule"
)

type PageAdFrameStatus <- 0.101.5

1
2
3
4
5
6
7
type PageAdFrameStatus struct {
	// AdFrameType ...
	AdFrameType PageAdFrameType `json:"adFrameType"`

	// Explanations (optional) ...
	Explanations []PageAdFrameExplanation `json:"explanations,omitempty"`
}

PageAdFrameStatus (experimental) Indicates whether a frame has been identified as an ad and why.

type PageAdFrameType <- 0.72.0

1
type PageAdFrameType string

PageAdFrameType (experimental) Indicates whether a frame has been identified as an ad.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageAdFrameTypeNone enum const.
	PageAdFrameTypeNone PageAdFrameType = "none"

	// PageAdFrameTypeChild enum const.
	PageAdFrameTypeChild PageAdFrameType = "child"

	// PageAdFrameTypeRoot enum const.
	PageAdFrameTypeRoot PageAdFrameType = "root"
)

type PageAdScriptID <- 0.107.1

1
2
3
4
5
6
7
8
type PageAdScriptID struct {
	// ScriptID Script Id of the bottom-most script which caused the frame to be labelled
	// as an ad.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// DebuggerID Id of adScriptId's debugger.
	DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId"`
}

PageAdScriptID (experimental) Identifies the bottom-most script which caused the frame to be labelled as an ad.

type PageAddCompilationCache

1
2
3
4
5
6
7
type PageAddCompilationCache struct {
	// URL ...
	URL string `json:"url"`

	// Data Base64-encoded data
	Data []byte `json:"data"`
}

PageAddCompilationCache (experimental) Seeds compilation cache for given url. Compilation cache does not survive cross-process navigation.

(PageAddCompilationCache) Call

1
func (m PageAddCompilationCache) Call(c Client) error

Call sends the request.

(PageAddCompilationCache) ProtoReq <- 0.74.0

1
func (m PageAddCompilationCache) ProtoReq() string

ProtoReq name.

type PageAddScriptToEvaluateOnLoad

1
2
3
4
type PageAddScriptToEvaluateOnLoad struct {
	// ScriptSource ...
	ScriptSource string `json:"scriptSource"`
}

PageAddScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use addScriptToEvaluateOnNewDocument instead.

(PageAddScriptToEvaluateOnLoad) Call

1
func (m PageAddScriptToEvaluateOnLoad) Call(c Client) (*PageAddScriptToEvaluateOnLoadResult, error)

Call the request.

(PageAddScriptToEvaluateOnLoad) ProtoReq <- 0.74.0

1
func (m PageAddScriptToEvaluateOnLoad) ProtoReq() string

ProtoReq name.

type PageAddScriptToEvaluateOnLoadResult

1
2
3
4
type PageAddScriptToEvaluateOnLoadResult struct {
	// Identifier of the added script.
	Identifier PageScriptIdentifier `json:"identifier"`
}

PageAddScriptToEvaluateOnLoadResult (deprecated) (experimental) …

type PageAddScriptToEvaluateOnNewDocument

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type PageAddScriptToEvaluateOnNewDocument struct {
	// Source ...
	Source string `json:"source"`

	// WorldName (experimental) (optional) If specified, creates an isolated world with the given name and evaluates given script in it.
	// This world name will be used as the ExecutionContextDescription::name when the corresponding
	// event is emitted.
	WorldName string `json:"worldName,omitempty"`

	// IncludeCommandLineAPI (experimental) (optional) Specifies whether command line API should be available to the script, defaults
	// to false.
	IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"`

	// RunImmediately (experimental) (optional) If true, runs the script immediately on existing execution contexts or worlds.
	// Default: false.
	RunImmediately bool `json:"runImmediately,omitempty"`
}

PageAddScriptToEvaluateOnNewDocument Evaluates given script in every frame upon creation (before loading frame’s scripts).

(PageAddScriptToEvaluateOnNewDocument) Call

1
func (m PageAddScriptToEvaluateOnNewDocument) Call(c Client) (*PageAddScriptToEvaluateOnNewDocumentResult, error)

Call the request.

(PageAddScriptToEvaluateOnNewDocument) ProtoReq <- 0.74.0

1
func (m PageAddScriptToEvaluateOnNewDocument) ProtoReq() string

ProtoReq name.

type PageAddScriptToEvaluateOnNewDocumentResult

1
2
3
4
type PageAddScriptToEvaluateOnNewDocumentResult struct {
	// Identifier of the added script.
	Identifier PageScriptIdentifier `json:"identifier"`
}

PageAddScriptToEvaluateOnNewDocumentResult …

type PageAppManifestError

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageAppManifestError struct {
	// Message Error message.
	Message string `json:"message"`

	// Critical If critical, this is a non-recoverable parse error.
	Critical int `json:"critical"`

	// Line Error line.
	Line int `json:"line"`

	// Column Error column.
	Column int `json:"column"`
}

PageAppManifestError Error while paring app manifest.

type PageAppManifestParsedProperties

1
2
3
4
type PageAppManifestParsedProperties struct {
	// Scope Computed scope value
	Scope string `json:"scope"`
}

PageAppManifestParsedProperties (experimental) Parsed app manifest properties.

type PageAutoResponseMode <- 0.112.9

1
type PageAutoResponseMode string

PageAutoResponseMode (experimental) Enum of possible auto-response for permission / prompt dialogs.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PageAutoResponseModeNone enum const.
	PageAutoResponseModeNone PageAutoResponseMode = "none"

	// PageAutoResponseModeAutoAccept enum const.
	PageAutoResponseModeAutoAccept PageAutoResponseMode = "autoAccept"

	// PageAutoResponseModeAutoReject enum const.
	PageAutoResponseModeAutoReject PageAutoResponseMode = "autoReject"

	// PageAutoResponseModeAutoOptOut enum const.
	PageAutoResponseModeAutoOptOut PageAutoResponseMode = "autoOptOut"
)

type PageBackForwardCacheBlockingDetails <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageBackForwardCacheBlockingDetails struct {
	// URL (optional) Url of the file where blockage happened. Optional because of tests.
	URL string `json:"url,omitempty"`

	// Function (optional) Function name where blockage happened. Optional because of anonymous functions and tests.
	Function string `json:"function,omitempty"`

	// LineNumber Line number in the script (0-based).
	LineNumber int `json:"lineNumber"`

	// ColumnNumber Column number in the script (0-based).
	ColumnNumber int `json:"columnNumber"`
}

PageBackForwardCacheBlockingDetails (experimental) …

type PageBackForwardCacheNotRestoredExplanation <- 0.101.5

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type PageBackForwardCacheNotRestoredExplanation struct {
	// Type of the reason
	Type PageBackForwardCacheNotRestoredReasonType `json:"type"`

	// Reason Not restored reason
	Reason PageBackForwardCacheNotRestoredReason `json:"reason"`

	// Context (optional) Context associated with the reason. The meaning of this context is
	// dependent on the reason:
	// - EmbedderExtensionSentMessageToCachedFrame: the extension ID.
	Context string `json:"context,omitempty"`

	// Details (optional) ...
	Details []*PageBackForwardCacheBlockingDetails `json:"details,omitempty"`
}

PageBackForwardCacheNotRestoredExplanation (experimental) …

type PageBackForwardCacheNotRestoredExplanationTree <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageBackForwardCacheNotRestoredExplanationTree struct {
	// URL of each frame
	URL string `json:"url"`

	// Explanations Not restored reasons of each frame
	Explanations []*PageBackForwardCacheNotRestoredExplanation `json:"explanations"`

	// Children Array of children frame
	Children []*PageBackForwardCacheNotRestoredExplanationTree `json:"children"`
}

PageBackForwardCacheNotRestoredExplanationTree (experimental) …

type PageBackForwardCacheNotRestoredReason <- 0.101.5

1
type PageBackForwardCacheNotRestoredReason string

PageBackForwardCacheNotRestoredReason (experimental) List of not restored reasons for back-forward cache.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
const (
	// PageBackForwardCacheNotRestoredReasonNotPrimaryMainFrame enum const.
	PageBackForwardCacheNotRestoredReasonNotPrimaryMainFrame PageBackForwardCacheNotRestoredReason = "NotPrimaryMainFrame"

	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabled enum const.
	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabled PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabled"

	// PageBackForwardCacheNotRestoredReasonRelatedActiveContentsExist enum const.
	PageBackForwardCacheNotRestoredReasonRelatedActiveContentsExist PageBackForwardCacheNotRestoredReason = "RelatedActiveContentsExist"

	// PageBackForwardCacheNotRestoredReasonHTTPStatusNotOK enum const.
	PageBackForwardCacheNotRestoredReasonHTTPStatusNotOK PageBackForwardCacheNotRestoredReason = "HTTPStatusNotOK"

	// PageBackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS enum const.
	PageBackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS PageBackForwardCacheNotRestoredReason = "SchemeNotHTTPOrHTTPS"

	// PageBackForwardCacheNotRestoredReasonLoading enum const.
	PageBackForwardCacheNotRestoredReasonLoading PageBackForwardCacheNotRestoredReason = "Loading"

	// PageBackForwardCacheNotRestoredReasonWasGrantedMediaAccess enum const.
	PageBackForwardCacheNotRestoredReasonWasGrantedMediaAccess PageBackForwardCacheNotRestoredReason = "WasGrantedMediaAccess"

	// PageBackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled enum const.
	PageBackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled PageBackForwardCacheNotRestoredReason = "DisableForRenderFrameHostCalled"

	// PageBackForwardCacheNotRestoredReasonDomainNotAllowed enum const.
	PageBackForwardCacheNotRestoredReasonDomainNotAllowed PageBackForwardCacheNotRestoredReason = "DomainNotAllowed"

	// PageBackForwardCacheNotRestoredReasonHTTPMethodNotGET enum const.
	PageBackForwardCacheNotRestoredReasonHTTPMethodNotGET PageBackForwardCacheNotRestoredReason = "HTTPMethodNotGET"

	// PageBackForwardCacheNotRestoredReasonSubframeIsNavigating enum const.
	PageBackForwardCacheNotRestoredReasonSubframeIsNavigating PageBackForwardCacheNotRestoredReason = "SubframeIsNavigating"

	// PageBackForwardCacheNotRestoredReasonTimeout enum const.
	PageBackForwardCacheNotRestoredReasonTimeout PageBackForwardCacheNotRestoredReason = "Timeout"

	// PageBackForwardCacheNotRestoredReasonCacheLimit enum const.
	PageBackForwardCacheNotRestoredReasonCacheLimit PageBackForwardCacheNotRestoredReason = "CacheLimit"

	// PageBackForwardCacheNotRestoredReasonJavaScriptExecution enum const.
	PageBackForwardCacheNotRestoredReasonJavaScriptExecution PageBackForwardCacheNotRestoredReason = "JavaScriptExecution"

	// PageBackForwardCacheNotRestoredReasonRendererProcessKilled enum const.
	PageBackForwardCacheNotRestoredReasonRendererProcessKilled PageBackForwardCacheNotRestoredReason = "RendererProcessKilled"

	// PageBackForwardCacheNotRestoredReasonRendererProcessCrashed enum const.
	PageBackForwardCacheNotRestoredReasonRendererProcessCrashed PageBackForwardCacheNotRestoredReason = "RendererProcessCrashed"

	// PageBackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed enum const.
	PageBackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed PageBackForwardCacheNotRestoredReason = "SchedulerTrackedFeatureUsed"

	// PageBackForwardCacheNotRestoredReasonConflictingBrowsingInstance enum const.
	PageBackForwardCacheNotRestoredReasonConflictingBrowsingInstance PageBackForwardCacheNotRestoredReason = "ConflictingBrowsingInstance"

	// PageBackForwardCacheNotRestoredReasonCacheFlushed enum const.
	PageBackForwardCacheNotRestoredReasonCacheFlushed PageBackForwardCacheNotRestoredReason = "CacheFlushed"

	// PageBackForwardCacheNotRestoredReasonServiceWorkerVersionActivation enum const.
	PageBackForwardCacheNotRestoredReasonServiceWorkerVersionActivation PageBackForwardCacheNotRestoredReason = "ServiceWorkerVersionActivation"

	// PageBackForwardCacheNotRestoredReasonSessionRestored enum const.
	PageBackForwardCacheNotRestoredReasonSessionRestored PageBackForwardCacheNotRestoredReason = "SessionRestored"

	// PageBackForwardCacheNotRestoredReasonServiceWorkerPostMessage enum const.
	PageBackForwardCacheNotRestoredReasonServiceWorkerPostMessage PageBackForwardCacheNotRestoredReason = "ServiceWorkerPostMessage"

	// PageBackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded enum const.
	PageBackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded PageBackForwardCacheNotRestoredReason = "EnteredBackForwardCacheBeforeServiceWorkerHostAdded"

	// PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite enum const.
	PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite PageBackForwardCacheNotRestoredReason = "RenderFrameHostReused_SameSite"

	// PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite enum const.
	PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite PageBackForwardCacheNotRestoredReason = "RenderFrameHostReused_CrossSite"

	// PageBackForwardCacheNotRestoredReasonServiceWorkerClaim enum const.
	PageBackForwardCacheNotRestoredReasonServiceWorkerClaim PageBackForwardCacheNotRestoredReason = "ServiceWorkerClaim"

	// PageBackForwardCacheNotRestoredReasonIgnoreEventAndEvict enum const.
	PageBackForwardCacheNotRestoredReasonIgnoreEventAndEvict PageBackForwardCacheNotRestoredReason = "IgnoreEventAndEvict"

	// PageBackForwardCacheNotRestoredReasonHaveInnerContents enum const.
	PageBackForwardCacheNotRestoredReasonHaveInnerContents PageBackForwardCacheNotRestoredReason = "HaveInnerContents"

	// PageBackForwardCacheNotRestoredReasonTimeoutPuttingInCache enum const.
	PageBackForwardCacheNotRestoredReasonTimeoutPuttingInCache PageBackForwardCacheNotRestoredReason = "TimeoutPuttingInCache"

	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory enum const.
	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByLowMemory"

	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine enum const.
	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByCommandLine"

	// PageBackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer enum const.
	PageBackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer PageBackForwardCacheNotRestoredReason = "NetworkRequestDatapipeDrainedAsBytesConsumer"

	// PageBackForwardCacheNotRestoredReasonNetworkRequestRedirected enum const.
	PageBackForwardCacheNotRestoredReasonNetworkRequestRedirected PageBackForwardCacheNotRestoredReason = "NetworkRequestRedirected"

	// PageBackForwardCacheNotRestoredReasonNetworkRequestTimeout enum const.
	PageBackForwardCacheNotRestoredReasonNetworkRequestTimeout PageBackForwardCacheNotRestoredReason = "NetworkRequestTimeout"

	// PageBackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit enum const.
	PageBackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit PageBackForwardCacheNotRestoredReason = "NetworkExceedsBufferLimit"

	// PageBackForwardCacheNotRestoredReasonNavigationCancelledWhileRestoring enum const.
	PageBackForwardCacheNotRestoredReasonNavigationCancelledWhileRestoring PageBackForwardCacheNotRestoredReason = "NavigationCancelledWhileRestoring"

	// PageBackForwardCacheNotRestoredReasonNotMostRecentNavigationEntry enum const.
	PageBackForwardCacheNotRestoredReasonNotMostRecentNavigationEntry PageBackForwardCacheNotRestoredReason = "NotMostRecentNavigationEntry"

	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender enum const.
	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForPrerender"

	// PageBackForwardCacheNotRestoredReasonUserAgentOverrideDiffers enum const.
	PageBackForwardCacheNotRestoredReasonUserAgentOverrideDiffers PageBackForwardCacheNotRestoredReason = "UserAgentOverrideDiffers"

	// PageBackForwardCacheNotRestoredReasonForegroundCacheLimit enum const.
	PageBackForwardCacheNotRestoredReasonForegroundCacheLimit PageBackForwardCacheNotRestoredReason = "ForegroundCacheLimit"

	// PageBackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped enum const.
	PageBackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped PageBackForwardCacheNotRestoredReason = "BrowsingInstanceNotSwapped"

	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate enum const.
	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForDelegate"

	// PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame enum const.
	PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame PageBackForwardCacheNotRestoredReason = "UnloadHandlerExistsInMainFrame"

	// PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame enum const.
	PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame PageBackForwardCacheNotRestoredReason = "UnloadHandlerExistsInSubFrame"

	// PageBackForwardCacheNotRestoredReasonServiceWorkerUnregistration enum const.
	PageBackForwardCacheNotRestoredReasonServiceWorkerUnregistration PageBackForwardCacheNotRestoredReason = "ServiceWorkerUnregistration"

	// PageBackForwardCacheNotRestoredReasonCacheControlNoStore enum const.
	PageBackForwardCacheNotRestoredReasonCacheControlNoStore PageBackForwardCacheNotRestoredReason = "CacheControlNoStore"

	// PageBackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified enum const.
	PageBackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified PageBackForwardCacheNotRestoredReason = "CacheControlNoStoreCookieModified"

	// PageBackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified enum const.
	PageBackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified PageBackForwardCacheNotRestoredReason = "CacheControlNoStoreHTTPOnlyCookieModified"

	// PageBackForwardCacheNotRestoredReasonNoResponseHead enum const.
	PageBackForwardCacheNotRestoredReasonNoResponseHead PageBackForwardCacheNotRestoredReason = "NoResponseHead"

	// PageBackForwardCacheNotRestoredReasonUnknown enum const.
	PageBackForwardCacheNotRestoredReasonUnknown PageBackForwardCacheNotRestoredReason = "Unknown"

	// PageBackForwardCacheNotRestoredReasonActivationNavigationsDisallowedForBug1234857 enum const.
	PageBackForwardCacheNotRestoredReasonActivationNavigationsDisallowedForBug1234857 PageBackForwardCacheNotRestoredReason = "ActivationNavigationsDisallowedForBug1234857"

	// PageBackForwardCacheNotRestoredReasonErrorDocument enum const.
	PageBackForwardCacheNotRestoredReasonErrorDocument PageBackForwardCacheNotRestoredReason = "ErrorDocument"

	// PageBackForwardCacheNotRestoredReasonFencedFramesEmbedder enum const.
	PageBackForwardCacheNotRestoredReasonFencedFramesEmbedder PageBackForwardCacheNotRestoredReason = "FencedFramesEmbedder"

	// PageBackForwardCacheNotRestoredReasonCookieDisabled enum const.
	PageBackForwardCacheNotRestoredReasonCookieDisabled PageBackForwardCacheNotRestoredReason = "CookieDisabled"

	// PageBackForwardCacheNotRestoredReasonHTTPAuthRequired enum const.
	PageBackForwardCacheNotRestoredReasonHTTPAuthRequired PageBackForwardCacheNotRestoredReason = "HTTPAuthRequired"

	// PageBackForwardCacheNotRestoredReasonCookieFlushed enum const.
	PageBackForwardCacheNotRestoredReasonCookieFlushed PageBackForwardCacheNotRestoredReason = "CookieFlushed"

	// PageBackForwardCacheNotRestoredReasonBroadcastChannelOnMessage enum const.
	PageBackForwardCacheNotRestoredReasonBroadcastChannelOnMessage PageBackForwardCacheNotRestoredReason = "BroadcastChannelOnMessage"

	// PageBackForwardCacheNotRestoredReasonWebViewSettingsChanged enum const.
	PageBackForwardCacheNotRestoredReasonWebViewSettingsChanged PageBackForwardCacheNotRestoredReason = "WebViewSettingsChanged"

	// PageBackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged enum const.
	PageBackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged PageBackForwardCacheNotRestoredReason = "WebViewJavaScriptObjectChanged"

	// PageBackForwardCacheNotRestoredReasonWebViewMessageListenerInjected enum const.
	PageBackForwardCacheNotRestoredReasonWebViewMessageListenerInjected PageBackForwardCacheNotRestoredReason = "WebViewMessageListenerInjected"

	// PageBackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged enum const.
	PageBackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged PageBackForwardCacheNotRestoredReason = "WebViewSafeBrowsingAllowlistChanged"

	// PageBackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged enum const.
	PageBackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged PageBackForwardCacheNotRestoredReason = "WebViewDocumentStartJavascriptChanged"

	// PageBackForwardCacheNotRestoredReasonWebSocket enum const.
	PageBackForwardCacheNotRestoredReasonWebSocket PageBackForwardCacheNotRestoredReason = "WebSocket"

	// PageBackForwardCacheNotRestoredReasonWebTransport enum const.
	PageBackForwardCacheNotRestoredReasonWebTransport PageBackForwardCacheNotRestoredReason = "WebTransport"

	// PageBackForwardCacheNotRestoredReasonWebRTC enum const.
	PageBackForwardCacheNotRestoredReasonWebRTC PageBackForwardCacheNotRestoredReason = "WebRTC"

	// PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore enum const.
	PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore PageBackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoStore"

	// PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache enum const.
	PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache PageBackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoCache"

	// PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore enum const.
	PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore PageBackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoStore"

	// PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache enum const.
	PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache PageBackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoCache"

	// PageBackForwardCacheNotRestoredReasonContainsPlugins enum const.
	PageBackForwardCacheNotRestoredReasonContainsPlugins PageBackForwardCacheNotRestoredReason = "ContainsPlugins"

	// PageBackForwardCacheNotRestoredReasonDocumentLoaded enum const.
	PageBackForwardCacheNotRestoredReasonDocumentLoaded PageBackForwardCacheNotRestoredReason = "DocumentLoaded"

	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers enum const.
	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestOthers"

	// PageBackForwardCacheNotRestoredReasonRequestedMIDIPermission enum const.
	PageBackForwardCacheNotRestoredReasonRequestedMIDIPermission PageBackForwardCacheNotRestoredReason = "RequestedMIDIPermission"

	// PageBackForwardCacheNotRestoredReasonRequestedAudioCapturePermission enum const.
	PageBackForwardCacheNotRestoredReasonRequestedAudioCapturePermission PageBackForwardCacheNotRestoredReason = "RequestedAudioCapturePermission"

	// PageBackForwardCacheNotRestoredReasonRequestedVideoCapturePermission enum const.
	PageBackForwardCacheNotRestoredReasonRequestedVideoCapturePermission PageBackForwardCacheNotRestoredReason = "RequestedVideoCapturePermission"

	// PageBackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors enum const.
	PageBackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors PageBackForwardCacheNotRestoredReason = "RequestedBackForwardCacheBlockedSensors"

	// PageBackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission enum const.
	PageBackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission PageBackForwardCacheNotRestoredReason = "RequestedBackgroundWorkPermission"

	// PageBackForwardCacheNotRestoredReasonBroadcastChannel enum const.
	PageBackForwardCacheNotRestoredReasonBroadcastChannel PageBackForwardCacheNotRestoredReason = "BroadcastChannel"

	// PageBackForwardCacheNotRestoredReasonWebXR enum const.
	PageBackForwardCacheNotRestoredReasonWebXR PageBackForwardCacheNotRestoredReason = "WebXR"

	// PageBackForwardCacheNotRestoredReasonSharedWorker enum const.
	PageBackForwardCacheNotRestoredReasonSharedWorker PageBackForwardCacheNotRestoredReason = "SharedWorker"

	// PageBackForwardCacheNotRestoredReasonWebLocks enum const.
	PageBackForwardCacheNotRestoredReasonWebLocks PageBackForwardCacheNotRestoredReason = "WebLocks"

	// PageBackForwardCacheNotRestoredReasonWebHID enum const.
	PageBackForwardCacheNotRestoredReasonWebHID PageBackForwardCacheNotRestoredReason = "WebHID"

	// PageBackForwardCacheNotRestoredReasonWebShare enum const.
	PageBackForwardCacheNotRestoredReasonWebShare PageBackForwardCacheNotRestoredReason = "WebShare"

	// PageBackForwardCacheNotRestoredReasonRequestedStorageAccessGrant enum const.
	PageBackForwardCacheNotRestoredReasonRequestedStorageAccessGrant PageBackForwardCacheNotRestoredReason = "RequestedStorageAccessGrant"

	// PageBackForwardCacheNotRestoredReasonWebNfc enum const.
	PageBackForwardCacheNotRestoredReasonWebNfc PageBackForwardCacheNotRestoredReason = "WebNfc"

	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch enum const.
	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestFetch"

	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR enum const.
	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestXHR"

	// PageBackForwardCacheNotRestoredReasonAppBanner enum const.
	PageBackForwardCacheNotRestoredReasonAppBanner PageBackForwardCacheNotRestoredReason = "AppBanner"

	// PageBackForwardCacheNotRestoredReasonPrinting enum const.
	PageBackForwardCacheNotRestoredReasonPrinting PageBackForwardCacheNotRestoredReason = "Printing"

	// PageBackForwardCacheNotRestoredReasonWebDatabase enum const.
	PageBackForwardCacheNotRestoredReasonWebDatabase PageBackForwardCacheNotRestoredReason = "WebDatabase"

	// PageBackForwardCacheNotRestoredReasonPictureInPicture enum const.
	PageBackForwardCacheNotRestoredReasonPictureInPicture PageBackForwardCacheNotRestoredReason = "PictureInPicture"

	// PageBackForwardCacheNotRestoredReasonPortal enum const.
	PageBackForwardCacheNotRestoredReasonPortal PageBackForwardCacheNotRestoredReason = "Portal"

	// PageBackForwardCacheNotRestoredReasonSpeechRecognizer enum const.
	PageBackForwardCacheNotRestoredReasonSpeechRecognizer PageBackForwardCacheNotRestoredReason = "SpeechRecognizer"

	// PageBackForwardCacheNotRestoredReasonIdleManager enum const.
	PageBackForwardCacheNotRestoredReasonIdleManager PageBackForwardCacheNotRestoredReason = "IdleManager"

	// PageBackForwardCacheNotRestoredReasonPaymentManager enum const.
	PageBackForwardCacheNotRestoredReasonPaymentManager PageBackForwardCacheNotRestoredReason = "PaymentManager"

	// PageBackForwardCacheNotRestoredReasonSpeechSynthesis enum const.
	PageBackForwardCacheNotRestoredReasonSpeechSynthesis PageBackForwardCacheNotRestoredReason = "SpeechSynthesis"

	// PageBackForwardCacheNotRestoredReasonKeyboardLock enum const.
	PageBackForwardCacheNotRestoredReasonKeyboardLock PageBackForwardCacheNotRestoredReason = "KeyboardLock"

	// PageBackForwardCacheNotRestoredReasonWebOTPService enum const.
	PageBackForwardCacheNotRestoredReasonWebOTPService PageBackForwardCacheNotRestoredReason = "WebOTPService"

	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket enum const.
	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestDirectSocket"

	// PageBackForwardCacheNotRestoredReasonInjectedJavascript enum const.
	PageBackForwardCacheNotRestoredReasonInjectedJavascript PageBackForwardCacheNotRestoredReason = "InjectedJavascript"

	// PageBackForwardCacheNotRestoredReasonInjectedStyleSheet enum const.
	PageBackForwardCacheNotRestoredReasonInjectedStyleSheet PageBackForwardCacheNotRestoredReason = "InjectedStyleSheet"

	// PageBackForwardCacheNotRestoredReasonKeepaliveRequest enum const.
	PageBackForwardCacheNotRestoredReasonKeepaliveRequest PageBackForwardCacheNotRestoredReason = "KeepaliveRequest"

	// PageBackForwardCacheNotRestoredReasonIndexedDBEvent enum const.
	PageBackForwardCacheNotRestoredReasonIndexedDBEvent PageBackForwardCacheNotRestoredReason = "IndexedDBEvent"

	// PageBackForwardCacheNotRestoredReasonDummy enum const.
	PageBackForwardCacheNotRestoredReasonDummy PageBackForwardCacheNotRestoredReason = "Dummy"

	// PageBackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource enum const.
	PageBackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource PageBackForwardCacheNotRestoredReason = "JsNetworkRequestReceivedCacheControlNoStoreResource"

	// PageBackForwardCacheNotRestoredReasonWebRTCSticky enum const.
	PageBackForwardCacheNotRestoredReasonWebRTCSticky PageBackForwardCacheNotRestoredReason = "WebRTCSticky"

	// PageBackForwardCacheNotRestoredReasonWebTransportSticky enum const.
	PageBackForwardCacheNotRestoredReasonWebTransportSticky PageBackForwardCacheNotRestoredReason = "WebTransportSticky"

	// PageBackForwardCacheNotRestoredReasonWebSocketSticky enum const.
	PageBackForwardCacheNotRestoredReasonWebSocketSticky PageBackForwardCacheNotRestoredReason = "WebSocketSticky"

	// PageBackForwardCacheNotRestoredReasonSmartCard enum const.
	PageBackForwardCacheNotRestoredReasonSmartCard PageBackForwardCacheNotRestoredReason = "SmartCard"

	// PageBackForwardCacheNotRestoredReasonLiveMediaStreamTrack enum const.
	PageBackForwardCacheNotRestoredReasonLiveMediaStreamTrack PageBackForwardCacheNotRestoredReason = "LiveMediaStreamTrack"

	// PageBackForwardCacheNotRestoredReasonUnloadHandler enum const.
	PageBackForwardCacheNotRestoredReasonUnloadHandler PageBackForwardCacheNotRestoredReason = "UnloadHandler"

	// PageBackForwardCacheNotRestoredReasonParserAborted enum const.
	PageBackForwardCacheNotRestoredReasonParserAborted PageBackForwardCacheNotRestoredReason = "ParserAborted"

	// PageBackForwardCacheNotRestoredReasonContentSecurityHandler enum const.
	PageBackForwardCacheNotRestoredReasonContentSecurityHandler PageBackForwardCacheNotRestoredReason = "ContentSecurityHandler"

	// PageBackForwardCacheNotRestoredReasonContentWebAuthenticationAPI enum const.
	PageBackForwardCacheNotRestoredReasonContentWebAuthenticationAPI PageBackForwardCacheNotRestoredReason = "ContentWebAuthenticationAPI"

	// PageBackForwardCacheNotRestoredReasonContentFileChooser enum const.
	PageBackForwardCacheNotRestoredReasonContentFileChooser PageBackForwardCacheNotRestoredReason = "ContentFileChooser"

	// PageBackForwardCacheNotRestoredReasonContentSerial enum const.
	PageBackForwardCacheNotRestoredReasonContentSerial PageBackForwardCacheNotRestoredReason = "ContentSerial"

	// PageBackForwardCacheNotRestoredReasonContentFileSystemAccess enum const.
	PageBackForwardCacheNotRestoredReasonContentFileSystemAccess PageBackForwardCacheNotRestoredReason = "ContentFileSystemAccess"

	// PageBackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost enum const.
	PageBackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost PageBackForwardCacheNotRestoredReason = "ContentMediaDevicesDispatcherHost"

	// PageBackForwardCacheNotRestoredReasonContentWebBluetooth enum const.
	PageBackForwardCacheNotRestoredReasonContentWebBluetooth PageBackForwardCacheNotRestoredReason = "ContentWebBluetooth"

	// PageBackForwardCacheNotRestoredReasonContentWebUSB enum const.
	PageBackForwardCacheNotRestoredReasonContentWebUSB PageBackForwardCacheNotRestoredReason = "ContentWebUSB"

	// PageBackForwardCacheNotRestoredReasonContentMediaSessionService enum const.
	PageBackForwardCacheNotRestoredReasonContentMediaSessionService PageBackForwardCacheNotRestoredReason = "ContentMediaSessionService"

	// PageBackForwardCacheNotRestoredReasonContentScreenReader enum const.
	PageBackForwardCacheNotRestoredReasonContentScreenReader PageBackForwardCacheNotRestoredReason = "ContentScreenReader"

	// PageBackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper PageBackForwardCacheNotRestoredReason = "EmbedderPopupBlockerTabHelper"

	// PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker PageBackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingTriggeredPopupBlocker"

	// PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails PageBackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingThreatDetails"

	// PageBackForwardCacheNotRestoredReasonEmbedderAppBannerManager enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderAppBannerManager PageBackForwardCacheNotRestoredReason = "EmbedderAppBannerManager"

	// PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource PageBackForwardCacheNotRestoredReason = "EmbedderDomDistillerViewerSource"

	// PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate PageBackForwardCacheNotRestoredReason = "EmbedderDomDistillerSelfDeletingRequestDelegate"

	// PageBackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper PageBackForwardCacheNotRestoredReason = "EmbedderOomInterventionTabHelper"

	// PageBackForwardCacheNotRestoredReasonEmbedderOfflinePage enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderOfflinePage PageBackForwardCacheNotRestoredReason = "EmbedderOfflinePage"

	// PageBackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager PageBackForwardCacheNotRestoredReason = "EmbedderChromePasswordManagerClientBindCredentialManager"

	// PageBackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager PageBackForwardCacheNotRestoredReason = "EmbedderPermissionRequestManager"

	// PageBackForwardCacheNotRestoredReasonEmbedderModalDialog enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderModalDialog PageBackForwardCacheNotRestoredReason = "EmbedderModalDialog"

	// PageBackForwardCacheNotRestoredReasonEmbedderExtensions enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderExtensions PageBackForwardCacheNotRestoredReason = "EmbedderExtensions"

	// PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessaging enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessaging PageBackForwardCacheNotRestoredReason = "EmbedderExtensionMessaging"

	// PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort PageBackForwardCacheNotRestoredReason = "EmbedderExtensionMessagingForOpenPort"

	// PageBackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame enum const.
	PageBackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame PageBackForwardCacheNotRestoredReason = "EmbedderExtensionSentMessageToCachedFrame"

	// PageBackForwardCacheNotRestoredReasonRequestedByWebViewClient enum const.
	PageBackForwardCacheNotRestoredReasonRequestedByWebViewClient PageBackForwardCacheNotRestoredReason = "RequestedByWebViewClient"
)

type PageBackForwardCacheNotRestoredReasonType <- 0.101.5

1
type PageBackForwardCacheNotRestoredReasonType string

PageBackForwardCacheNotRestoredReasonType (experimental) Types of not restored reasons for back-forward cache.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageBackForwardCacheNotRestoredReasonTypeSupportPending enum const.
	PageBackForwardCacheNotRestoredReasonTypeSupportPending PageBackForwardCacheNotRestoredReasonType = "SupportPending"

	// PageBackForwardCacheNotRestoredReasonTypePageSupportNeeded enum const.
	PageBackForwardCacheNotRestoredReasonTypePageSupportNeeded PageBackForwardCacheNotRestoredReasonType = "PageSupportNeeded"

	// PageBackForwardCacheNotRestoredReasonTypeCircumstantial enum const.
	PageBackForwardCacheNotRestoredReasonTypeCircumstantial PageBackForwardCacheNotRestoredReasonType = "Circumstantial"
)

type PageBackForwardCacheNotUsed <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageBackForwardCacheNotUsed struct {
	// LoaderID The loader id for the associated navigation.
	LoaderID NetworkLoaderID `json:"loaderId"`

	// FrameID The frame id of the associated frame.
	FrameID PageFrameID `json:"frameId"`

	// NotRestoredExplanations Array of reasons why the page could not be cached. This must not be empty.
	NotRestoredExplanations []*PageBackForwardCacheNotRestoredExplanation `json:"notRestoredExplanations"`

	// NotRestoredExplanationsTree (optional) Tree structure of reasons why the page could not be cached for each frame.
	NotRestoredExplanationsTree *PageBackForwardCacheNotRestoredExplanationTree `json:"notRestoredExplanationsTree,omitempty"`
}

PageBackForwardCacheNotUsed (experimental) Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do not assume any ordering with the Page.frameNavigated event. This event is fired only for main-frame history navigation where the document changes (non-same-document navigations), when bfcache navigation fails.

(PageBackForwardCacheNotUsed) ProtoEvent <- 0.100.0

1
func (evt PageBackForwardCacheNotUsed) ProtoEvent() string

ProtoEvent name.

type PageBringToFront

1
type PageBringToFront struct{}

PageBringToFront Brings page to front (activates tab).

(PageBringToFront) Call

1
func (m PageBringToFront) Call(c Client) error

Call sends the request.

(PageBringToFront) ProtoReq <- 0.74.0

1
func (m PageBringToFront) ProtoReq() string

ProtoReq name.

type PageCaptureScreenshot

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type PageCaptureScreenshot struct {
	// Format (optional) Image compression format (defaults to png).
	Format PageCaptureScreenshotFormat `json:"format,omitempty"`

	// Quality (optional) Compression quality from range [0..100] (jpeg only).
	Quality *int `json:"quality,omitempty"`

	// Clip (optional) Capture the screenshot of a given region only.
	Clip *PageViewport `json:"clip,omitempty"`

	// FromSurface (experimental) (optional) Capture the screenshot from the surface, rather than the view. Defaults to true.
	FromSurface bool `json:"fromSurface,omitempty"`

	// CaptureBeyondViewport (experimental) (optional) Capture the screenshot beyond the viewport. Defaults to false.
	CaptureBeyondViewport bool `json:"captureBeyondViewport,omitempty"`

	// OptimizeForSpeed (experimental) (optional) Optimize image encoding for speed, not for resulting size (defaults to false)
	OptimizeForSpeed bool `json:"optimizeForSpeed,omitempty"`
}

PageCaptureScreenshot Capture page screenshot.

(PageCaptureScreenshot) Call

1
func (m PageCaptureScreenshot) Call(c Client) (*PageCaptureScreenshotResult, error)

Call the request.

(PageCaptureScreenshot) ProtoReq <- 0.74.0

1
func (m PageCaptureScreenshot) ProtoReq() string

ProtoReq name.

type PageCaptureScreenshotFormat

1
type PageCaptureScreenshotFormat string

PageCaptureScreenshotFormat enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageCaptureScreenshotFormatJpeg enum const.
	PageCaptureScreenshotFormatJpeg PageCaptureScreenshotFormat = "jpeg"

	// PageCaptureScreenshotFormatPng enum const.
	PageCaptureScreenshotFormatPng PageCaptureScreenshotFormat = "png"

	// PageCaptureScreenshotFormatWebp enum const.
	PageCaptureScreenshotFormatWebp PageCaptureScreenshotFormat = "webp"
)

type PageCaptureScreenshotResult

1
2
3
4
type PageCaptureScreenshotResult struct {
	// Data Base64-encoded image data.
	Data []byte `json:"data"`
}

PageCaptureScreenshotResult …

type PageCaptureSnapshot

1
2
3
4
type PageCaptureSnapshot struct {
	// Format (optional) Format (defaults to mhtml).
	Format PageCaptureSnapshotFormat `json:"format,omitempty"`
}

PageCaptureSnapshot (experimental) Returns a snapshot of the page as a string. For MHTML format, the serialization includes iframes, shadow DOM, external resources, and element-inline styles.

(PageCaptureSnapshot) Call

1
func (m PageCaptureSnapshot) Call(c Client) (*PageCaptureSnapshotResult, error)

Call the request.

(PageCaptureSnapshot) ProtoReq <- 0.74.0

1
func (m PageCaptureSnapshot) ProtoReq() string

ProtoReq name.

type PageCaptureSnapshotFormat

1
type PageCaptureSnapshotFormat string

PageCaptureSnapshotFormat enum.

1
2
3
4
const (
	// PageCaptureSnapshotFormatMhtml enum const.
	PageCaptureSnapshotFormatMhtml PageCaptureSnapshotFormat = "mhtml"
)

type PageCaptureSnapshotResult

1
2
3
4
type PageCaptureSnapshotResult struct {
	// Data Serialized page data.
	Data string `json:"data"`
}

PageCaptureSnapshotResult (experimental) …

type PageClearCompilationCache

1
type PageClearCompilationCache struct{}

PageClearCompilationCache (experimental) Clears seeded compilation cache.

(PageClearCompilationCache) Call

1
func (m PageClearCompilationCache) Call(c Client) error

Call sends the request.

(PageClearCompilationCache) ProtoReq <- 0.74.0

1
func (m PageClearCompilationCache) ProtoReq() string

ProtoReq name.

type PageClearDeviceMetricsOverride

1
type PageClearDeviceMetricsOverride struct{}

PageClearDeviceMetricsOverride (deprecated) (experimental) Clears the overridden device metrics.

(PageClearDeviceMetricsOverride) Call

1
func (m PageClearDeviceMetricsOverride) Call(c Client) error

Call sends the request.

(PageClearDeviceMetricsOverride) ProtoReq <- 0.74.0

1
func (m PageClearDeviceMetricsOverride) ProtoReq() string

ProtoReq name.

type PageClearDeviceOrientationOverride

1
type PageClearDeviceOrientationOverride struct{}

PageClearDeviceOrientationOverride (deprecated) (experimental) Clears the overridden Device Orientation.

(PageClearDeviceOrientationOverride) Call

1
func (m PageClearDeviceOrientationOverride) Call(c Client) error

Call sends the request.

(PageClearDeviceOrientationOverride) ProtoReq <- 0.74.0

1
func (m PageClearDeviceOrientationOverride) ProtoReq() string

ProtoReq name.

type PageClearGeolocationOverride

1
type PageClearGeolocationOverride struct{}

PageClearGeolocationOverride (deprecated) Clears the overridden Geolocation Position and Error.

(PageClearGeolocationOverride) Call

1
func (m PageClearGeolocationOverride) Call(c Client) error

Call sends the request.

(PageClearGeolocationOverride) ProtoReq <- 0.74.0

1
func (m PageClearGeolocationOverride) ProtoReq() string

ProtoReq name.

type PageClientNavigationDisposition <- 0.48.0

1
type PageClientNavigationDisposition string

PageClientNavigationDisposition (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PageClientNavigationDispositionCurrentTab enum const.
	PageClientNavigationDispositionCurrentTab PageClientNavigationDisposition = "currentTab"

	// PageClientNavigationDispositionNewTab enum const.
	PageClientNavigationDispositionNewTab PageClientNavigationDisposition = "newTab"

	// PageClientNavigationDispositionNewWindow enum const.
	PageClientNavigationDispositionNewWindow PageClientNavigationDisposition = "newWindow"

	// PageClientNavigationDispositionDownload enum const.
	PageClientNavigationDispositionDownload PageClientNavigationDisposition = "download"
)

type PageClientNavigationReason

1
type PageClientNavigationReason string

PageClientNavigationReason (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const (
	// PageClientNavigationReasonFormSubmissionGet enum const.
	PageClientNavigationReasonFormSubmissionGet PageClientNavigationReason = "formSubmissionGet"

	// PageClientNavigationReasonFormSubmissionPost enum const.
	PageClientNavigationReasonFormSubmissionPost PageClientNavigationReason = "formSubmissionPost"

	// PageClientNavigationReasonHTTPHeaderRefresh enum const.
	PageClientNavigationReasonHTTPHeaderRefresh PageClientNavigationReason = "httpHeaderRefresh"

	// PageClientNavigationReasonScriptInitiated enum const.
	PageClientNavigationReasonScriptInitiated PageClientNavigationReason = "scriptInitiated"

	// PageClientNavigationReasonMetaTagRefresh enum const.
	PageClientNavigationReasonMetaTagRefresh PageClientNavigationReason = "metaTagRefresh"

	// PageClientNavigationReasonPageBlockInterstitial enum const.
	PageClientNavigationReasonPageBlockInterstitial PageClientNavigationReason = "pageBlockInterstitial"

	// PageClientNavigationReasonReload enum const.
	PageClientNavigationReasonReload PageClientNavigationReason = "reload"

	// PageClientNavigationReasonAnchorClick enum const.
	PageClientNavigationReasonAnchorClick PageClientNavigationReason = "anchorClick"
)

type PageClose

1
type PageClose struct{}

PageClose Tries to close page, running its beforeunload hooks, if any.

(PageClose) Call

1
func (m PageClose) Call(c Client) error

Call sends the request.

(PageClose) ProtoReq <- 0.74.0

1
func (m PageClose) ProtoReq() string

ProtoReq name.

type PageCompilationCacheParams <- 0.97.5

1
2
3
4
5
6
7
8
type PageCompilationCacheParams struct {
	// URL The URL of the script to produce a compilation cache entry for.
	URL string `json:"url"`

	// Eager (optional) A hint to the backend whether eager compilation is recommended.
	// (the actual compilation mode used is upon backend discretion).
	Eager bool `json:"eager,omitempty"`
}

PageCompilationCacheParams (experimental) Per-script compilation cache parameters for Page.produceCompilationCache.

type PageCompilationCacheProduced

1
2
3
4
5
6
7
type PageCompilationCacheProduced struct {
	// URL ...
	URL string `json:"url"`

	// Data Base64-encoded data
	Data []byte `json:"data"`
}

PageCompilationCacheProduced (experimental) Issued for every compilation cache generated. Is only available if Page.setGenerateCompilationCache is enabled.

(PageCompilationCacheProduced) ProtoEvent <- 0.72.0

1
func (evt PageCompilationCacheProduced) ProtoEvent() string

ProtoEvent name.

type PageCrash

1
type PageCrash struct{}

PageCrash (experimental) Crashes renderer on the IO thread, generates minidumps.

(PageCrash) Call

1
func (m PageCrash) Call(c Client) error

Call sends the request.

(PageCrash) ProtoReq <- 0.74.0

1
func (m PageCrash) ProtoReq() string

ProtoReq name.

type PageCreateIsolatedWorld

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type PageCreateIsolatedWorld struct {
	// FrameID Id of the frame in which the isolated world should be created.
	FrameID PageFrameID `json:"frameId"`

	// WorldName (optional) An optional name which is reported in the Execution Context.
	WorldName string `json:"worldName,omitempty"`

	// GrantUniveralAccess (optional) Whether or not universal access should be granted to the isolated world. This is a powerful
	// option, use with caution.
	GrantUniveralAccess bool `json:"grantUniveralAccess,omitempty"`
}

PageCreateIsolatedWorld Creates an isolated world for the given frame.

(PageCreateIsolatedWorld) Call

1
func (m PageCreateIsolatedWorld) Call(c Client) (*PageCreateIsolatedWorldResult, error)

Call the request.

(PageCreateIsolatedWorld) ProtoReq <- 0.74.0

1
func (m PageCreateIsolatedWorld) ProtoReq() string

ProtoReq name.

type PageCreateIsolatedWorldResult

1
2
3
4
type PageCreateIsolatedWorldResult struct {
	// ExecutionContextID Execution context of the isolated world.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`
}

PageCreateIsolatedWorldResult …

type PageCrossOriginIsolatedContextType <- 0.72.0

1
type PageCrossOriginIsolatedContextType string

PageCrossOriginIsolatedContextType (experimental) Indicates whether the frame is cross-origin isolated and why it is the case.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageCrossOriginIsolatedContextTypeIsolated enum const.
	PageCrossOriginIsolatedContextTypeIsolated PageCrossOriginIsolatedContextType = "Isolated"

	// PageCrossOriginIsolatedContextTypeNotIsolated enum const.
	PageCrossOriginIsolatedContextTypeNotIsolated PageCrossOriginIsolatedContextType = "NotIsolated"

	// PageCrossOriginIsolatedContextTypeNotIsolatedFeatureDisabled enum const.
	PageCrossOriginIsolatedContextTypeNotIsolatedFeatureDisabled PageCrossOriginIsolatedContextType = "NotIsolatedFeatureDisabled"
)

type PageDeleteCookie

1
2
3
4
5
6
7
type PageDeleteCookie struct {
	// CookieName Name of the cookie to remove.
	CookieName string `json:"cookieName"`

	// URL to match cooke domain and path.
	URL string `json:"url"`
}

PageDeleteCookie (deprecated) (experimental) Deletes browser cookie with given name, domain and path.

(PageDeleteCookie) Call

1
func (m PageDeleteCookie) Call(c Client) error

Call sends the request.

(PageDeleteCookie) ProtoReq <- 0.74.0

1
func (m PageDeleteCookie) ProtoReq() string

ProtoReq name.

type PageDialogType

1
type PageDialogType string

PageDialogType Javascript dialog type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PageDialogTypeAlert enum const.
	PageDialogTypeAlert PageDialogType = "alert"

	// PageDialogTypeConfirm enum const.
	PageDialogTypeConfirm PageDialogType = "confirm"

	// PageDialogTypePrompt enum const.
	PageDialogTypePrompt PageDialogType = "prompt"

	// PageDialogTypeBeforeunload enum const.
	PageDialogTypeBeforeunload PageDialogType = "beforeunload"
)

type PageDisable

1
type PageDisable struct{}

PageDisable Disables page domain notifications.

(PageDisable) Call

1
func (m PageDisable) Call(c Client) error

Call sends the request.

(PageDisable) ProtoReq <- 0.74.0

1
func (m PageDisable) ProtoReq() string

ProtoReq name.

type PageDocumentOpened <- 0.90.0

1
2
3
4
type PageDocumentOpened struct {
	// Frame object.
	Frame *PageFrame `json:"frame"`
}

PageDocumentOpened (experimental) Fired when opening document to write to.

(PageDocumentOpened) ProtoEvent <- 0.90.0

1
func (evt PageDocumentOpened) ProtoEvent() string

ProtoEvent name.

type PageDomContentEventFired

1
2
3
4
type PageDomContentEventFired struct {
	// Timestamp ...
	Timestamp MonotonicTime `json:"timestamp"`
}

PageDomContentEventFired …

(PageDomContentEventFired) ProtoEvent <- 0.72.0

1
func (evt PageDomContentEventFired) ProtoEvent() string

ProtoEvent name.

type PageDownloadProgress

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageDownloadProgress struct {
	// GUID Global unique identifier of the download.
	GUID string `json:"guid"`

	// TotalBytes Total expected bytes to download.
	TotalBytes float64 `json:"totalBytes"`

	// ReceivedBytes Total bytes received.
	ReceivedBytes float64 `json:"receivedBytes"`

	// State Download status.
	State PageDownloadProgressState `json:"state"`
}

PageDownloadProgress (deprecated) (experimental) Fired when download makes progress. Last call has |done| == true. Deprecated. Use Browser.downloadProgress instead.

(PageDownloadProgress) ProtoEvent <- 0.72.0

1
func (evt PageDownloadProgress) ProtoEvent() string

ProtoEvent name.

type PageDownloadProgressState

1
type PageDownloadProgressState string

PageDownloadProgressState enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageDownloadProgressStateInProgress enum const.
	PageDownloadProgressStateInProgress PageDownloadProgressState = "inProgress"

	// PageDownloadProgressStateCompleted enum const.
	PageDownloadProgressStateCompleted PageDownloadProgressState = "completed"

	// PageDownloadProgressStateCanceled enum const.
	PageDownloadProgressStateCanceled PageDownloadProgressState = "canceled"
)

type PageDownloadWillBegin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageDownloadWillBegin struct {
	// FrameID Id of the frame that caused download to begin.
	FrameID PageFrameID `json:"frameId"`

	// GUID Global unique identifier of the download.
	GUID string `json:"guid"`

	// URL of the resource being downloaded.
	URL string `json:"url"`

	// SuggestedFilename Suggested file name of the resource (the actual name of the file saved on disk may differ).
	SuggestedFilename string `json:"suggestedFilename"`
}

PageDownloadWillBegin (deprecated) (experimental) Fired when page is about to start a download. Deprecated. Use Browser.downloadWillBegin instead.

(PageDownloadWillBegin) ProtoEvent <- 0.72.0

1
func (evt PageDownloadWillBegin) ProtoEvent() string

ProtoEvent name.

type PageEnable

1
type PageEnable struct{}

PageEnable Enables page domain notifications.

(PageEnable) Call

1
func (m PageEnable) Call(c Client) error

Call sends the request.

(PageEnable) ProtoReq <- 0.74.0

1
func (m PageEnable) ProtoReq() string

ProtoReq name.

type PageFileChooserOpened

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageFileChooserOpened struct {
	// FrameID (experimental) Id of the frame containing input node.
	FrameID PageFrameID `json:"frameId"`

	// Mode Input mode.
	Mode PageFileChooserOpenedMode `json:"mode"`

	// BackendNodeID (experimental) (optional) Input node id. Only present for file choosers opened via an `<input type="file">` element.
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`
}

PageFileChooserOpened Emitted only when page.interceptFileChooser is enabled.

(PageFileChooserOpened) ProtoEvent <- 0.72.0

1
func (evt PageFileChooserOpened) ProtoEvent() string

ProtoEvent name.

type PageFileChooserOpenedMode

1
type PageFileChooserOpenedMode string

PageFileChooserOpenedMode enum.

1
2
3
4
5
6
7
const (
	// PageFileChooserOpenedModeSelectSingle enum const.
	PageFileChooserOpenedModeSelectSingle PageFileChooserOpenedMode = "selectSingle"

	// PageFileChooserOpenedModeSelectMultiple enum const.
	PageFileChooserOpenedModeSelectMultiple PageFileChooserOpenedMode = "selectMultiple"
)

type PageFileFilter <- 0.116.0

1
2
3
4
5
6
7
type PageFileFilter struct {
	// Name (optional) ...
	Name string `json:"name,omitempty"`

	// Accepts (optional) ...
	Accepts []string `json:"accepts,omitempty"`
}

PageFileFilter (experimental) …

type PageFileHandler <- 0.116.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type PageFileHandler struct {
	// Action ...
	Action string `json:"action"`

	// Name ...
	Name string `json:"name"`

	// Icons (optional) ...
	Icons []*PageImageResource `json:"icons,omitempty"`

	// Accepts (optional) Mimic a map, name is the key, accepts is the value.
	Accepts []*PageFileFilter `json:"accepts,omitempty"`

	// LaunchType Won't repeat the enums, using string for easy comparison. Same as the
	// other enums below.
	LaunchType string `json:"launchType"`
}

PageFileHandler (experimental) …

type PageFontFamilies

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type PageFontFamilies struct {
	// Standard (optional) The standard font-family.
	Standard string `json:"standard,omitempty"`

	// Fixed (optional) The fixed font-family.
	Fixed string `json:"fixed,omitempty"`

	// Serif (optional) The serif font-family.
	Serif string `json:"serif,omitempty"`

	// SansSerif (optional) The sansSerif font-family.
	SansSerif string `json:"sansSerif,omitempty"`

	// Cursive (optional) The cursive font-family.
	Cursive string `json:"cursive,omitempty"`

	// Fantasy (optional) The fantasy font-family.
	Fantasy string `json:"fantasy,omitempty"`

	// Math (optional) The math font-family.
	Math string `json:"math,omitempty"`
}

PageFontFamilies (experimental) Generic font families collection.

type PageFontSizes

1
2
3
4
5
6
7
type PageFontSizes struct {
	// Standard (optional) Default standard font size.
	Standard *int `json:"standard,omitempty"`

	// Fixed (optional) Default fixed font size.
	Fixed *int `json:"fixed,omitempty"`
}

PageFontSizes (experimental) Default font sizes.

type PageFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
type PageFrame struct {
	// ID Frame unique identifier.
	ID PageFrameID `json:"id"`

	// ParentID (optional) Parent frame identifier.
	ParentID PageFrameID `json:"parentId,omitempty"`

	// LoaderID Identifier of the loader associated with this frame.
	LoaderID NetworkLoaderID `json:"loaderId"`

	// Name (optional) Frame's name as specified in the tag.
	Name string `json:"name,omitempty"`

	// URL Frame document's URL without fragment.
	URL string `json:"url"`

	// URLFragment (experimental) (optional) Frame document's URL fragment including the '#'.
	URLFragment string `json:"urlFragment,omitempty"`

	// DomainAndRegistry (experimental) Frame document's registered domain, taking the public suffixes list into account.
	// Extracted from the Frame's url.
	// Example URLs: http://www.google.com/file.html -> "google.com"
	//               http://a.b.co.uk/file.html      -> "b.co.uk"
	DomainAndRegistry string `json:"domainAndRegistry"`

	// SecurityOrigin Frame document's security origin.
	SecurityOrigin string `json:"securityOrigin"`

	// MIMEType Frame document's mimeType as determined by the browser.
	MIMEType string `json:"mimeType"`

	// UnreachableURL (experimental) (optional) If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
	UnreachableURL string `json:"unreachableUrl,omitempty"`

	// AdFrameStatus (experimental) (optional) Indicates whether this frame was tagged as an ad and why.
	AdFrameStatus *PageAdFrameStatus `json:"adFrameStatus,omitempty"`

	// SecureContextType (experimental) Indicates whether the main document is a secure context and explains why that is the case.
	SecureContextType PageSecureContextType `json:"secureContextType"`

	// CrossOriginIsolatedContextType (experimental) Indicates whether this is a cross origin isolated context.
	CrossOriginIsolatedContextType PageCrossOriginIsolatedContextType `json:"crossOriginIsolatedContextType"`

	// GatedAPIFeatures (experimental) Indicated which gated APIs / features are available.
	GatedAPIFeatures []PageGatedAPIFeatures `json:"gatedAPIFeatures"`
}

PageFrame Information about the Frame on the page.

type PageFrameAttached

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageFrameAttached struct {
	// FrameID Id of the frame that has been attached.
	FrameID PageFrameID `json:"frameId"`

	// ParentFrameID Parent frame identifier.
	ParentFrameID PageFrameID `json:"parentFrameId"`

	// Stack (optional) JavaScript stack trace of when frame was attached, only set if frame initiated from script.
	Stack *RuntimeStackTrace `json:"stack,omitempty"`
}

PageFrameAttached Fired when frame has been attached to its parent.

(PageFrameAttached) ProtoEvent <- 0.72.0

1
func (evt PageFrameAttached) ProtoEvent() string

ProtoEvent name.

type PageFrameClearedScheduledNavigation

1
2
3
4
type PageFrameClearedScheduledNavigation struct {
	// FrameID Id of the frame that has cleared its scheduled navigation.
	FrameID PageFrameID `json:"frameId"`
}

PageFrameClearedScheduledNavigation (deprecated) Fired when frame no longer has a scheduled navigation.

(PageFrameClearedScheduledNavigation) ProtoEvent <- 0.72.0

1
func (evt PageFrameClearedScheduledNavigation) ProtoEvent() string

ProtoEvent name.

type PageFrameDetached

1
2
3
4
5
6
7
type PageFrameDetached struct {
	// FrameID Id of the frame that has been detached.
	FrameID PageFrameID `json:"frameId"`

	// Reason (experimental) ...
	Reason PageFrameDetachedReason `json:"reason"`
}

PageFrameDetached Fired when frame has been detached from its parent.

(PageFrameDetached) ProtoEvent <- 0.72.0

1
func (evt PageFrameDetached) ProtoEvent() string

ProtoEvent name.

type PageFrameDetachedReason <- 0.90.0

1
type PageFrameDetachedReason string

PageFrameDetachedReason enum.

1
2
3
4
5
6
7
const (
	// PageFrameDetachedReasonRemove enum const.
	PageFrameDetachedReasonRemove PageFrameDetachedReason = "remove"

	// PageFrameDetachedReasonSwap enum const.
	PageFrameDetachedReasonSwap PageFrameDetachedReason = "swap"
)

type PageFrameID

1
type PageFrameID string

PageFrameID Unique frame identifier.

type PageFrameNavigated

1
2
3
4
5
6
7
type PageFrameNavigated struct {
	// Frame object.
	Frame *PageFrame `json:"frame"`

	// Type (experimental) ...
	Type PageNavigationType `json:"type"`
}

PageFrameNavigated Fired once navigation of the frame has completed. Frame is now associated with the new loader.

(PageFrameNavigated) ProtoEvent <- 0.72.0

1
func (evt PageFrameNavigated) ProtoEvent() string

ProtoEvent name.

type PageFrameRequestedNavigation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageFrameRequestedNavigation struct {
	// FrameID Id of the frame that is being navigated.
	FrameID PageFrameID `json:"frameId"`

	// Reason The reason for the navigation.
	Reason PageClientNavigationReason `json:"reason"`

	// URL The destination URL for the requested navigation.
	URL string `json:"url"`

	// Disposition The disposition for the navigation.
	Disposition PageClientNavigationDisposition `json:"disposition"`
}

PageFrameRequestedNavigation (experimental) Fired when a renderer-initiated navigation is requested. Navigation may still be cancelled after the event is issued.

(PageFrameRequestedNavigation) ProtoEvent <- 0.72.0

1
func (evt PageFrameRequestedNavigation) ProtoEvent() string

ProtoEvent name.

type PageFrameResized

1
type PageFrameResized struct{}

PageFrameResized (experimental) …

(PageFrameResized) ProtoEvent <- 0.72.0

1
func (evt PageFrameResized) ProtoEvent() string

ProtoEvent name.

type PageFrameResource

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type PageFrameResource struct {
	// URL Resource URL.
	URL string `json:"url"`

	// Type of this resource.
	Type NetworkResourceType `json:"type"`

	// MIMEType Resource mimeType as determined by the browser.
	MIMEType string `json:"mimeType"`

	// LastModified (optional) last-modified timestamp as reported by server.
	LastModified TimeSinceEpoch `json:"lastModified,omitempty"`

	// ContentSize (optional) Resource content size.
	ContentSize *float64 `json:"contentSize,omitempty"`

	// Failed (optional) True if the resource failed to load.
	Failed bool `json:"failed,omitempty"`

	// Canceled (optional) True if the resource was canceled during loading.
	Canceled bool `json:"canceled,omitempty"`
}

PageFrameResource (experimental) Information about the Resource on the page.

type PageFrameResourceTree

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageFrameResourceTree struct {
	// Frame information for this tree item.
	Frame *PageFrame `json:"frame"`

	// ChildFrames (optional) Child frames.
	ChildFrames []*PageFrameResourceTree `json:"childFrames,omitempty"`

	// Resources Information about frame resources.
	Resources []*PageFrameResource `json:"resources"`
}

PageFrameResourceTree (experimental) Information about the Frame hierarchy along with their cached resources.

type PageFrameScheduledNavigation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type PageFrameScheduledNavigation struct {
	// FrameID Id of the frame that has scheduled a navigation.
	FrameID PageFrameID `json:"frameId"`

	// Delay (in seconds) until the navigation is scheduled to begin. The navigation is not
	// guaranteed to start.
	Delay float64 `json:"delay"`

	// Reason The reason for the navigation.
	Reason PageClientNavigationReason `json:"reason"`

	// URL The destination URL for the scheduled navigation.
	URL string `json:"url"`
}

PageFrameScheduledNavigation (deprecated) Fired when frame schedules a potential navigation.

(PageFrameScheduledNavigation) ProtoEvent <- 0.72.0

1
func (evt PageFrameScheduledNavigation) ProtoEvent() string

ProtoEvent name.

type PageFrameStartedLoading

1
2
3
4
type PageFrameStartedLoading struct {
	// FrameID Id of the frame that has started loading.
	FrameID PageFrameID `json:"frameId"`
}

PageFrameStartedLoading (experimental) Fired when frame has started loading.

(PageFrameStartedLoading) ProtoEvent <- 0.72.0

1
func (evt PageFrameStartedLoading) ProtoEvent() string

ProtoEvent name.

type PageFrameStoppedLoading

1
2
3
4
type PageFrameStoppedLoading struct {
	// FrameID Id of the frame that has stopped loading.
	FrameID PageFrameID `json:"frameId"`
}

PageFrameStoppedLoading (experimental) Fired when frame has stopped loading.

(PageFrameStoppedLoading) ProtoEvent <- 0.72.0

1
func (evt PageFrameStoppedLoading) ProtoEvent() string

ProtoEvent name.

type PageFrameTree

1
2
3
4
5
6
7
type PageFrameTree struct {
	// Frame information for this tree item.
	Frame *PageFrame `json:"frame"`

	// ChildFrames (optional) Child frames.
	ChildFrames []*PageFrameTree `json:"childFrames,omitempty"`
}

PageFrameTree Information about the Frame hierarchy.

type PageGatedAPIFeatures <- 0.90.0

1
type PageGatedAPIFeatures string

PageGatedAPIFeatures (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PageGatedAPIFeaturesSharedArrayBuffers enum const.
	PageGatedAPIFeaturesSharedArrayBuffers PageGatedAPIFeatures = "SharedArrayBuffers"

	// PageGatedAPIFeaturesSharedArrayBuffersTransferAllowed enum const.
	PageGatedAPIFeaturesSharedArrayBuffersTransferAllowed PageGatedAPIFeatures = "SharedArrayBuffersTransferAllowed"

	// PageGatedAPIFeaturesPerformanceMeasureMemory enum const.
	PageGatedAPIFeaturesPerformanceMeasureMemory PageGatedAPIFeatures = "PerformanceMeasureMemory"

	// PageGatedAPIFeaturesPerformanceProfile enum const.
	PageGatedAPIFeaturesPerformanceProfile PageGatedAPIFeatures = "PerformanceProfile"
)

type PageGenerateTestReport

1
2
3
4
5
6
7
type PageGenerateTestReport struct {
	// Message to be displayed in the report.
	Message string `json:"message"`

	// Group (optional) Specifies the endpoint group to deliver the report to.
	Group string `json:"group,omitempty"`
}

PageGenerateTestReport (experimental) Generates a report for testing.

(PageGenerateTestReport) Call

1
func (m PageGenerateTestReport) Call(c Client) error

Call sends the request.

(PageGenerateTestReport) ProtoReq <- 0.74.0

1
func (m PageGenerateTestReport) ProtoReq() string

ProtoReq name.

type PageGetAdScriptID <- 0.112.1

1
2
3
4
type PageGetAdScriptID struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`
}

PageGetAdScriptID (experimental) …

(PageGetAdScriptID) Call <- 0.112.1

1
func (m PageGetAdScriptID) Call(c Client) (*PageGetAdScriptIDResult, error)

Call the request.

(PageGetAdScriptID) ProtoReq <- 0.112.1

1
func (m PageGetAdScriptID) ProtoReq() string

ProtoReq name.

type PageGetAdScriptIDResult <- 0.112.1

1
2
3
4
5
type PageGetAdScriptIDResult struct {
	// AdScriptID (optional) Identifies the bottom-most script which caused the frame to be labelled
	// as an ad. Only sent if frame is labelled as an ad and id is available.
	AdScriptID *PageAdScriptID `json:"adScriptId,omitempty"`
}

PageGetAdScriptIDResult (experimental) …

type PageGetAppID <- 0.102.0

1
type PageGetAppID struct{}

PageGetAppID (experimental) Returns the unique (PWA) app id. Only returns values if the feature flag ‘WebAppEnableManifestId’ is enabled.

(PageGetAppID) Call <- 0.102.0

1
func (m PageGetAppID) Call(c Client) (*PageGetAppIDResult, error)

Call the request.

(PageGetAppID) ProtoReq <- 0.102.0

1
func (m PageGetAppID) ProtoReq() string

ProtoReq name.

type PageGetAppIDResult <- 0.102.0

1
2
3
4
5
6
7
type PageGetAppIDResult struct {
	// AppID (optional) App id, either from manifest's id attribute or computed from start_url
	AppID string `json:"appId,omitempty"`

	// RecommendedID (optional) Recommendation for manifest's id attribute to match current id computed from start_url
	RecommendedID string `json:"recommendedId,omitempty"`
}

PageGetAppIDResult (experimental) …

type PageGetAppManifest

1
2
3
4
type PageGetAppManifest struct {
	// ManifestID (optional) ...
	ManifestID string `json:"manifestId,omitempty"`
}

PageGetAppManifest Gets the processed manifest for this current document.

This API always waits for the manifest to be loaded.
If manifestId is provided, and it does not match the manifest of the
  current document, this API errors out.
If there is not a loaded page, this API errors out immediately.

(PageGetAppManifest) Call

1
func (m PageGetAppManifest) Call(c Client) (*PageGetAppManifestResult, error)

Call the request.

(PageGetAppManifest) ProtoReq <- 0.74.0

1
func (m PageGetAppManifest) ProtoReq() string

ProtoReq name.

type PageGetAppManifestResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PageGetAppManifestResult struct {
	// URL Manifest location.
	URL string `json:"url"`

	// Errors ...
	Errors []*PageAppManifestError `json:"errors"`

	// Data (optional) Manifest content.
	Data string `json:"data,omitempty"`

	// Parsed (deprecated) (experimental) (optional) Parsed manifest properties. Deprecated, use manifest instead.
	Parsed *PageAppManifestParsedProperties `json:"parsed,omitempty"`

	// Manifest (experimental) ...
	Manifest *PageWebAppManifest `json:"manifest"`
}

PageGetAppManifestResult …

type PageGetFrameTree

1
type PageGetFrameTree struct{}

PageGetFrameTree Returns present frame tree structure.

(PageGetFrameTree) Call

1
func (m PageGetFrameTree) Call(c Client) (*PageGetFrameTreeResult, error)

Call the request.

(PageGetFrameTree) ProtoReq <- 0.74.0

1
func (m PageGetFrameTree) ProtoReq() string

ProtoReq name.

type PageGetFrameTreeResult

1
2
3
4
type PageGetFrameTreeResult struct {
	// FrameTree Present frame tree structure.
	FrameTree *PageFrameTree `json:"frameTree"`
}

PageGetFrameTreeResult …

type PageGetInstallabilityErrors

1
type PageGetInstallabilityErrors struct{}

PageGetInstallabilityErrors (experimental) …

(PageGetInstallabilityErrors) Call

1
func (m PageGetInstallabilityErrors) Call(c Client) (*PageGetInstallabilityErrorsResult, error)

Call the request.

(PageGetInstallabilityErrors) ProtoReq <- 0.74.0

1
func (m PageGetInstallabilityErrors) ProtoReq() string

ProtoReq name.

type PageGetInstallabilityErrorsResult

1
2
3
4
type PageGetInstallabilityErrorsResult struct {
	// InstallabilityErrors ...
	InstallabilityErrors []*PageInstallabilityError `json:"installabilityErrors"`
}

PageGetInstallabilityErrorsResult (experimental) …

type PageGetLayoutMetrics

1
type PageGetLayoutMetrics struct{}

PageGetLayoutMetrics Returns metrics relating to the layouting of the page, such as viewport bounds/scale.

(PageGetLayoutMetrics) Call

1
func (m PageGetLayoutMetrics) Call(c Client) (*PageGetLayoutMetricsResult, error)

Call the request.

(PageGetLayoutMetrics) ProtoReq <- 0.74.0

1
func (m PageGetLayoutMetrics) ProtoReq() string

ProtoReq name.

type PageGetLayoutMetricsResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type PageGetLayoutMetricsResult struct {
	// LayoutViewport (deprecated) Deprecated metrics relating to the layout viewport. Is in device pixels. Use `cssLayoutViewport` instead.
	LayoutViewport *PageLayoutViewport `json:"layoutViewport"`

	// VisualViewport (deprecated) Deprecated metrics relating to the visual viewport. Is in device pixels. Use `cssVisualViewport` instead.
	VisualViewport *PageVisualViewport `json:"visualViewport"`

	// ContentSize (deprecated) Deprecated size of scrollable area. Is in DP. Use `cssContentSize` instead.
	ContentSize *DOMRect `json:"contentSize"`

	// CSSLayoutViewport Metrics relating to the layout viewport in CSS pixels.
	CSSLayoutViewport *PageLayoutViewport `json:"cssLayoutViewport"`

	// CSSVisualViewport Metrics relating to the visual viewport in CSS pixels.
	CSSVisualViewport *PageVisualViewport `json:"cssVisualViewport"`

	// CSSContentSize Size of scrollable area in CSS pixels.
	CSSContentSize *DOMRect `json:"cssContentSize"`
}

PageGetLayoutMetricsResult …

type PageGetManifestIcons

1
type PageGetManifestIcons struct{}

PageGetManifestIcons (deprecated) (experimental) Deprecated because it’s not guaranteed that the returned icon is in fact the one used for PWA installation.

(PageGetManifestIcons) Call

1
func (m PageGetManifestIcons) Call(c Client) (*PageGetManifestIconsResult, error)

Call the request.

(PageGetManifestIcons) ProtoReq <- 0.74.0

1
func (m PageGetManifestIcons) ProtoReq() string

ProtoReq name.

type PageGetManifestIconsResult

1
2
3
4
type PageGetManifestIconsResult struct {
	// PrimaryIcon (optional) ...
	PrimaryIcon []byte `json:"primaryIcon,omitempty"`
}

PageGetManifestIconsResult (deprecated) (experimental) …

type PageGetNavigationHistory

1
type PageGetNavigationHistory struct{}

PageGetNavigationHistory Returns navigation history for the current page.

(PageGetNavigationHistory) Call

1
func (m PageGetNavigationHistory) Call(c Client) (*PageGetNavigationHistoryResult, error)

Call the request.

(PageGetNavigationHistory) ProtoReq <- 0.74.0

1
func (m PageGetNavigationHistory) ProtoReq() string

ProtoReq name.

type PageGetNavigationHistoryResult

1
2
3
4
5
6
7
type PageGetNavigationHistoryResult struct {
	// CurrentIndex Index of the current navigation history entry.
	CurrentIndex int `json:"currentIndex"`

	// Entries Array of navigation history entries.
	Entries []*PageNavigationEntry `json:"entries"`
}

PageGetNavigationHistoryResult …

type PageGetOriginTrials <- 0.102.0

1
2
3
4
type PageGetOriginTrials struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`
}

PageGetOriginTrials (experimental) Get Origin Trials on given frame.

(PageGetOriginTrials) Call <- 0.102.0

1
func (m PageGetOriginTrials) Call(c Client) (*PageGetOriginTrialsResult, error)

Call the request.

(PageGetOriginTrials) ProtoReq <- 0.102.0

1
func (m PageGetOriginTrials) ProtoReq() string

ProtoReq name.

type PageGetOriginTrialsResult <- 0.102.0

1
2
3
4
type PageGetOriginTrialsResult struct {
	// OriginTrials ...
	OriginTrials []*PageOriginTrial `json:"originTrials"`
}

PageGetOriginTrialsResult (experimental) …

type PageGetPermissionsPolicyState <- 0.93.0

1
2
3
4
type PageGetPermissionsPolicyState struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`
}

PageGetPermissionsPolicyState (experimental) Get Permissions Policy state on given frame.

(PageGetPermissionsPolicyState) Call <- 0.93.0

1
func (m PageGetPermissionsPolicyState) Call(c Client) (*PageGetPermissionsPolicyStateResult, error)

Call the request.

(PageGetPermissionsPolicyState) ProtoReq <- 0.93.0

1
func (m PageGetPermissionsPolicyState) ProtoReq() string

ProtoReq name.

type PageGetPermissionsPolicyStateResult <- 0.93.0

1
2
3
4
type PageGetPermissionsPolicyStateResult struct {
	// States ...
	States []*PagePermissionsPolicyFeatureState `json:"states"`
}

PageGetPermissionsPolicyStateResult (experimental) …

type PageGetResourceContent

1
2
3
4
5
6
7
type PageGetResourceContent struct {
	// FrameID Frame id to get resource for.
	FrameID PageFrameID `json:"frameId"`

	// URL of the resource to get content for.
	URL string `json:"url"`
}

PageGetResourceContent (experimental) Returns content of the given resource.

(PageGetResourceContent) Call

1
func (m PageGetResourceContent) Call(c Client) (*PageGetResourceContentResult, error)

Call the request.

(PageGetResourceContent) ProtoReq <- 0.74.0

1
func (m PageGetResourceContent) ProtoReq() string

ProtoReq name.

type PageGetResourceContentResult

1
2
3
4
5
6
7
type PageGetResourceContentResult struct {
	// Content Resource content.
	Content string `json:"content"`

	// Base64Encoded True, if content was served as base64.
	Base64Encoded bool `json:"base64Encoded"`
}

PageGetResourceContentResult (experimental) …

type PageGetResourceTree

1
type PageGetResourceTree struct{}

PageGetResourceTree (experimental) Returns present frame / resource tree structure.

(PageGetResourceTree) Call

1
func (m PageGetResourceTree) Call(c Client) (*PageGetResourceTreeResult, error)

Call the request.

(PageGetResourceTree) ProtoReq <- 0.74.0

1
func (m PageGetResourceTree) ProtoReq() string

ProtoReq name.

type PageGetResourceTreeResult

1
2
3
4
type PageGetResourceTreeResult struct {
	// FrameTree Present frame / resource tree structure.
	FrameTree *PageFrameResourceTree `json:"frameTree"`
}

PageGetResourceTreeResult (experimental) …

type PageHandleJavaScriptDialog

1
2
3
4
5
6
7
8
type PageHandleJavaScriptDialog struct {
	// Accept Whether to accept or dismiss the dialog.
	Accept bool `json:"accept"`

	// PromptText (optional) The text to enter into the dialog prompt before accepting. Used only if this is a prompt
	// dialog.
	PromptText string `json:"promptText,omitempty"`
}

PageHandleJavaScriptDialog Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).

(PageHandleJavaScriptDialog) Call

1
func (m PageHandleJavaScriptDialog) Call(c Client) error

Call sends the request.

(PageHandleJavaScriptDialog) ProtoReq <- 0.74.0

1
func (m PageHandleJavaScriptDialog) ProtoReq() string

ProtoReq name.

type PageImageResource <- 0.116.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type PageImageResource struct {
	// URL The src field in the definition, but changing to url in favor of
	// consistency.
	URL string `json:"url"`

	// Sizes (optional) ...
	Sizes string `json:"sizes,omitempty"`

	// Type (optional) ...
	Type string `json:"type,omitempty"`
}

PageImageResource (experimental) The image definition used in both icon and screenshot.

type PageInstallabilityError

1
2
3
4
5
6
7
type PageInstallabilityError struct {
	// ErrorID The error id (e.g. 'manifest-missing-suitable-icon').
	ErrorID string `json:"errorId"`

	// ErrorArguments The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).
	ErrorArguments []*PageInstallabilityErrorArgument `json:"errorArguments"`
}

PageInstallabilityError (experimental) The installability error.

type PageInstallabilityErrorArgument

1
2
3
4
5
6
7
type PageInstallabilityErrorArgument struct {
	// Name Argument name (e.g. name:'minimum-icon-size-in-pixels').
	Name string `json:"name"`

	// Value Argument value (e.g. value:'64').
	Value string `json:"value"`
}

PageInstallabilityErrorArgument (experimental) …

type PageInterstitialHidden

1
type PageInterstitialHidden struct{}

PageInterstitialHidden Fired when interstitial page was hidden.

(PageInterstitialHidden) ProtoEvent <- 0.72.0

1
func (evt PageInterstitialHidden) ProtoEvent() string

ProtoEvent name.

type PageInterstitialShown

1
type PageInterstitialShown struct{}

PageInterstitialShown Fired when interstitial page was shown.

(PageInterstitialShown) ProtoEvent <- 0.72.0

1
func (evt PageInterstitialShown) ProtoEvent() string

ProtoEvent name.

type PageJavascriptDialogClosed

1
2
3
4
5
6
7
type PageJavascriptDialogClosed struct {
	// Result Whether dialog was confirmed.
	Result bool `json:"result"`

	// UserInput User input in case of prompt.
	UserInput string `json:"userInput"`
}

PageJavascriptDialogClosed Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.

(PageJavascriptDialogClosed) ProtoEvent <- 0.72.0

1
func (evt PageJavascriptDialogClosed) ProtoEvent() string

ProtoEvent name.

type PageJavascriptDialogOpening

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type PageJavascriptDialogOpening struct {
	// URL Frame url.
	URL string `json:"url"`

	// Message that will be displayed by the dialog.
	Message string `json:"message"`

	// Type Dialog type.
	Type PageDialogType `json:"type"`

	// HasBrowserHandler True iff browser is capable showing or acting on the given dialog. When browser has no
	// dialog handler for given target, calling alert while Page domain is engaged will stall
	// the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
	HasBrowserHandler bool `json:"hasBrowserHandler"`

	// DefaultPrompt (optional) Default dialog prompt.
	DefaultPrompt string `json:"defaultPrompt,omitempty"`
}

PageJavascriptDialogOpening Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.

(PageJavascriptDialogOpening) ProtoEvent <- 0.72.0

1
func (evt PageJavascriptDialogOpening) ProtoEvent() string

ProtoEvent name.

type PageLaunchHandler <- 0.116.0

1
2
3
4
type PageLaunchHandler struct {
	// ClientMode ...
	ClientMode string `json:"clientMode"`
}

PageLaunchHandler (experimental) …

type PageLayoutViewport

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageLayoutViewport struct {
	// PageX Horizontal offset relative to the document (CSS pixels).
	PageX int `json:"pageX"`

	// PageY Vertical offset relative to the document (CSS pixels).
	PageY int `json:"pageY"`

	// ClientWidth Width (CSS pixels), excludes scrollbar if present.
	ClientWidth int `json:"clientWidth"`

	// ClientHeight Height (CSS pixels), excludes scrollbar if present.
	ClientHeight int `json:"clientHeight"`
}

PageLayoutViewport Layout viewport position and dimensions.

type PageLifecycleEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageLifecycleEvent struct {
	// FrameID Id of the frame.
	FrameID PageFrameID `json:"frameId"`

	// LoaderID Loader identifier. Empty string if the request is fetched from worker.
	LoaderID NetworkLoaderID `json:"loaderId"`

	// Name ...
	Name PageLifecycleEventName `json:"name"`

	// Timestamp ...
	Timestamp MonotonicTime `json:"timestamp"`
}

PageLifecycleEvent Fired for top level page lifecycle events such as navigation, load, paint, etc.

(PageLifecycleEvent) ProtoEvent <- 0.72.0

1
func (evt PageLifecycleEvent) ProtoEvent() string

ProtoEvent name.

type PageLifecycleEventName <- 0.59.0

1
type PageLifecycleEventName string

PageLifecycleEventName enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const (
	// PageLifecycleEventNameInit enum const.
	PageLifecycleEventNameInit PageLifecycleEventName = "init"

	// PageLifecycleEventNameFirstPaint enum const.
	PageLifecycleEventNameFirstPaint PageLifecycleEventName = "firstPaint"

	// PageLifecycleEventNameFirstContentfulPaint enum const.
	PageLifecycleEventNameFirstContentfulPaint PageLifecycleEventName = "firstContentfulPaint"

	// PageLifecycleEventNameFirstImagePaint enum const.
	PageLifecycleEventNameFirstImagePaint PageLifecycleEventName = "firstImagePaint"

	// PageLifecycleEventNameFirstMeaningfulPaintCandidate enum const.
	PageLifecycleEventNameFirstMeaningfulPaintCandidate PageLifecycleEventName = "firstMeaningfulPaintCandidate"

	// PageLifecycleEventNameDOMContentLoaded enum const.
	PageLifecycleEventNameDOMContentLoaded PageLifecycleEventName = "DOMContentLoaded"

	// PageLifecycleEventNameLoad enum const.
	PageLifecycleEventNameLoad PageLifecycleEventName = "load"

	// PageLifecycleEventNameNetworkAlmostIdle enum const.
	PageLifecycleEventNameNetworkAlmostIdle PageLifecycleEventName = "networkAlmostIdle"

	// PageLifecycleEventNameFirstMeaningfulPaint enum const.
	PageLifecycleEventNameFirstMeaningfulPaint PageLifecycleEventName = "firstMeaningfulPaint"

	// PageLifecycleEventNameNetworkIdle enum const.
	PageLifecycleEventNameNetworkIdle PageLifecycleEventName = "networkIdle"
)

type PageLoadEventFired

1
2
3
4
type PageLoadEventFired struct {
	// Timestamp ...
	Timestamp MonotonicTime `json:"timestamp"`
}

PageLoadEventFired …

(PageLoadEventFired) ProtoEvent <- 0.72.0

1
func (evt PageLoadEventFired) ProtoEvent() string

ProtoEvent name.

type PageNavigate

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PageNavigate struct {
	// URL to navigate the page to.
	URL string `json:"url"`

	// Referrer (optional) Referrer URL.
	Referrer string `json:"referrer,omitempty"`

	// TransitionType (optional) Intended transition type.
	TransitionType PageTransitionType `json:"transitionType,omitempty"`

	// FrameID (optional) Frame id to navigate, if not specified navigates the top frame.
	FrameID PageFrameID `json:"frameId,omitempty"`

	// ReferrerPolicy (experimental) (optional) Referrer-policy used for the navigation.
	ReferrerPolicy PageReferrerPolicy `json:"referrerPolicy,omitempty"`
}

PageNavigate Navigates current page to the given URL.

1
func (m PageNavigate) Call(c Client) (*PageNavigateResult, error)

Call the request.

1
func (m PageNavigate) ProtoReq() string

ProtoReq name.

type PageNavigateResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type PageNavigateResult struct {
	// FrameID Frame id that has navigated (or failed to navigate)
	FrameID PageFrameID `json:"frameId"`

	// LoaderID (optional) Loader identifier. This is omitted in case of same-document navigation,
	// as the previously committed loaderId would not change.
	LoaderID NetworkLoaderID `json:"loaderId,omitempty"`

	// ErrorText (optional) User friendly error message, present if and only if navigation has failed.
	ErrorText string `json:"errorText,omitempty"`
}

PageNavigateResult …

type PageNavigateToHistoryEntry

1
2
3
4
type PageNavigateToHistoryEntry struct {
	// EntryID Unique id of the entry to navigate to.
	EntryID int `json:"entryId"`
}

PageNavigateToHistoryEntry Navigates current page to the given history entry.

1
func (m PageNavigateToHistoryEntry) Call(c Client) error

Call sends the request.

1
func (m PageNavigateToHistoryEntry) ProtoReq() string

ProtoReq name.

type PageNavigatedWithinDocument

1
2
3
4
5
6
7
type PageNavigatedWithinDocument struct {
	// FrameID Id of the frame.
	FrameID PageFrameID `json:"frameId"`

	// URL Frame's new url.
	URL string `json:"url"`
}

PageNavigatedWithinDocument (experimental) Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.

1
func (evt PageNavigatedWithinDocument) ProtoEvent() string

ProtoEvent name.

type PageNavigationEntry

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PageNavigationEntry struct {
	// ID Unique id of the navigation history entry.
	ID int `json:"id"`

	// URL of the navigation history entry.
	URL string `json:"url"`

	// UserTypedURL URL that the user typed in the url bar.
	UserTypedURL string `json:"userTypedURL"`

	// Title of the navigation history entry.
	Title string `json:"title"`

	// TransitionType Transition type.
	TransitionType PageTransitionType `json:"transitionType"`
}

PageNavigationEntry Navigation history entry.

type PageNavigationType <- 0.100.0

1
type PageNavigationType string

PageNavigationType (experimental) The type of a frameNavigated event.

1
2
3
4
5
6
7
const (
	// PageNavigationTypeNavigation enum const.
	PageNavigationTypeNavigation PageNavigationType = "Navigation"

	// PageNavigationTypeBackForwardCacheRestore enum const.
	PageNavigationTypeBackForwardCacheRestore PageNavigationType = "BackForwardCacheRestore"
)

type PageOriginTrial <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageOriginTrial struct {
	// TrialName ...
	TrialName string `json:"trialName"`

	// Status ...
	Status PageOriginTrialStatus `json:"status"`

	// TokensWithStatus ...
	TokensWithStatus []*PageOriginTrialTokenWithStatus `json:"tokensWithStatus"`
}

PageOriginTrial (experimental) …

type PageOriginTrialStatus <- 0.100.0

1
type PageOriginTrialStatus string

PageOriginTrialStatus (experimental) Status for an Origin Trial.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PageOriginTrialStatusEnabled enum const.
	PageOriginTrialStatusEnabled PageOriginTrialStatus = "Enabled"

	// PageOriginTrialStatusValidTokenNotProvided enum const.
	PageOriginTrialStatusValidTokenNotProvided PageOriginTrialStatus = "ValidTokenNotProvided"

	// PageOriginTrialStatusOSNotSupported enum const.
	PageOriginTrialStatusOSNotSupported PageOriginTrialStatus = "OSNotSupported"

	// PageOriginTrialStatusTrialNotAllowed enum const.
	PageOriginTrialStatusTrialNotAllowed PageOriginTrialStatus = "TrialNotAllowed"
)

type PageOriginTrialToken <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type PageOriginTrialToken struct {
	// Origin ...
	Origin string `json:"origin"`

	// MatchSubDomains ...
	MatchSubDomains bool `json:"matchSubDomains"`

	// TrialName ...
	TrialName string `json:"trialName"`

	// ExpiryTime ...
	ExpiryTime TimeSinceEpoch `json:"expiryTime"`

	// IsThirdParty ...
	IsThirdParty bool `json:"isThirdParty"`

	// UsageRestriction ...
	UsageRestriction PageOriginTrialUsageRestriction `json:"usageRestriction"`
}

PageOriginTrialToken (experimental) …

type PageOriginTrialTokenStatus <- 0.100.0

1
type PageOriginTrialTokenStatus string

PageOriginTrialTokenStatus (experimental) Origin Trial(https://www.chromium.org/blink/origin-trials) support. Status for an Origin Trial token.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const (
	// PageOriginTrialTokenStatusSuccess enum const.
	PageOriginTrialTokenStatusSuccess PageOriginTrialTokenStatus = "Success"

	// PageOriginTrialTokenStatusNotSupported enum const.
	PageOriginTrialTokenStatusNotSupported PageOriginTrialTokenStatus = "NotSupported"

	// PageOriginTrialTokenStatusInsecure enum const.
	PageOriginTrialTokenStatusInsecure PageOriginTrialTokenStatus = "Insecure"

	// PageOriginTrialTokenStatusExpired enum const.
	PageOriginTrialTokenStatusExpired PageOriginTrialTokenStatus = "Expired"

	// PageOriginTrialTokenStatusWrongOrigin enum const.
	PageOriginTrialTokenStatusWrongOrigin PageOriginTrialTokenStatus = "WrongOrigin"

	// PageOriginTrialTokenStatusInvalidSignature enum const.
	PageOriginTrialTokenStatusInvalidSignature PageOriginTrialTokenStatus = "InvalidSignature"

	// PageOriginTrialTokenStatusMalformed enum const.
	PageOriginTrialTokenStatusMalformed PageOriginTrialTokenStatus = "Malformed"

	// PageOriginTrialTokenStatusWrongVersion enum const.
	PageOriginTrialTokenStatusWrongVersion PageOriginTrialTokenStatus = "WrongVersion"

	// PageOriginTrialTokenStatusFeatureDisabled enum const.
	PageOriginTrialTokenStatusFeatureDisabled PageOriginTrialTokenStatus = "FeatureDisabled"

	// PageOriginTrialTokenStatusTokenDisabled enum const.
	PageOriginTrialTokenStatusTokenDisabled PageOriginTrialTokenStatus = "TokenDisabled"

	// PageOriginTrialTokenStatusFeatureDisabledForUser enum const.
	PageOriginTrialTokenStatusFeatureDisabledForUser PageOriginTrialTokenStatus = "FeatureDisabledForUser"

	// PageOriginTrialTokenStatusUnknownTrial enum const.
	PageOriginTrialTokenStatusUnknownTrial PageOriginTrialTokenStatus = "UnknownTrial"
)

type PageOriginTrialTokenWithStatus <- 0.100.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type PageOriginTrialTokenWithStatus struct {
	// RawTokenText ...
	RawTokenText string `json:"rawTokenText"`

	// ParsedToken (optional) `parsedToken` is present only when the token is extractable and
	// parsable.
	ParsedToken *PageOriginTrialToken `json:"parsedToken,omitempty"`

	// Status ...
	Status PageOriginTrialTokenStatus `json:"status"`
}

PageOriginTrialTokenWithStatus (experimental) …

type PageOriginTrialUsageRestriction <- 0.100.0

1
type PageOriginTrialUsageRestriction string

PageOriginTrialUsageRestriction (experimental) …

1
2
3
4
5
6
7
const (
	// PageOriginTrialUsageRestrictionNone enum const.
	PageOriginTrialUsageRestrictionNone PageOriginTrialUsageRestriction = "None"

	// PageOriginTrialUsageRestrictionSubset enum const.
	PageOriginTrialUsageRestrictionSubset PageOriginTrialUsageRestriction = "Subset"
)

type PagePermissionsPolicyBlockLocator <- 0.93.0

1
2
3
4
5
6
7
type PagePermissionsPolicyBlockLocator struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`

	// BlockReason ...
	BlockReason PagePermissionsPolicyBlockReason `json:"blockReason"`
}

PagePermissionsPolicyBlockLocator (experimental) …

type PagePermissionsPolicyBlockReason <- 0.93.0

1
type PagePermissionsPolicyBlockReason string

PagePermissionsPolicyBlockReason (experimental) Reason for a permissions policy feature to be disabled.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PagePermissionsPolicyBlockReasonHeader enum const.
	PagePermissionsPolicyBlockReasonHeader PagePermissionsPolicyBlockReason = "Header"

	// PagePermissionsPolicyBlockReasonIframeAttribute enum const.
	PagePermissionsPolicyBlockReasonIframeAttribute PagePermissionsPolicyBlockReason = "IframeAttribute"

	// PagePermissionsPolicyBlockReasonInFencedFrameTree enum const.
	PagePermissionsPolicyBlockReasonInFencedFrameTree PagePermissionsPolicyBlockReason = "InFencedFrameTree"

	// PagePermissionsPolicyBlockReasonInIsolatedApp enum const.
	PagePermissionsPolicyBlockReasonInIsolatedApp PagePermissionsPolicyBlockReason = "InIsolatedApp"
)

type PagePermissionsPolicyFeature <- 0.93.0

1
type PagePermissionsPolicyFeature string

PagePermissionsPolicyFeature (experimental) All Permissions Policy features. This enum should match the one defined in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
const (
	// PagePermissionsPolicyFeatureAccelerometer enum const.
	PagePermissionsPolicyFeatureAccelerometer PagePermissionsPolicyFeature = "accelerometer"

	// PagePermissionsPolicyFeatureAmbientLightSensor enum const.
	PagePermissionsPolicyFeatureAmbientLightSensor PagePermissionsPolicyFeature = "ambient-light-sensor"

	// PagePermissionsPolicyFeatureAttributionReporting enum const.
	PagePermissionsPolicyFeatureAttributionReporting PagePermissionsPolicyFeature = "attribution-reporting"

	// PagePermissionsPolicyFeatureAutoplay enum const.
	PagePermissionsPolicyFeatureAutoplay PagePermissionsPolicyFeature = "autoplay"

	// PagePermissionsPolicyFeatureBluetooth enum const.
	PagePermissionsPolicyFeatureBluetooth PagePermissionsPolicyFeature = "bluetooth"

	// PagePermissionsPolicyFeatureBrowsingTopics enum const.
	PagePermissionsPolicyFeatureBrowsingTopics PagePermissionsPolicyFeature = "browsing-topics"

	// PagePermissionsPolicyFeatureCamera enum const.
	PagePermissionsPolicyFeatureCamera PagePermissionsPolicyFeature = "camera"

	// PagePermissionsPolicyFeatureCapturedSurfaceControl enum const.
	PagePermissionsPolicyFeatureCapturedSurfaceControl PagePermissionsPolicyFeature = "captured-surface-control"

	// PagePermissionsPolicyFeatureChDpr enum const.
	PagePermissionsPolicyFeatureChDpr PagePermissionsPolicyFeature = "ch-dpr"

	// PagePermissionsPolicyFeatureChDeviceMemory enum const.
	PagePermissionsPolicyFeatureChDeviceMemory PagePermissionsPolicyFeature = "ch-device-memory"

	// PagePermissionsPolicyFeatureChDownlink enum const.
	PagePermissionsPolicyFeatureChDownlink PagePermissionsPolicyFeature = "ch-downlink"

	// PagePermissionsPolicyFeatureChEct enum const.
	PagePermissionsPolicyFeatureChEct PagePermissionsPolicyFeature = "ch-etc"

	// PagePermissionsPolicyFeatureChPrefersColorScheme enum const.
	PagePermissionsPolicyFeatureChPrefersColorScheme PagePermissionsPolicyFeature = "ch-prefers-color-scheme"

	// PagePermissionsPolicyFeatureChPrefersReducedMotion enum const.
	PagePermissionsPolicyFeatureChPrefersReducedMotion PagePermissionsPolicyFeature = "ch-prefers-reduced-motion"

	// PagePermissionsPolicyFeatureChPrefersReducedTransparency enum const.
	PagePermissionsPolicyFeatureChPrefersReducedTransparency PagePermissionsPolicyFeature = "ch-prefers-reduced-transparency"

	// PagePermissionsPolicyFeatureChRtt enum const.
	PagePermissionsPolicyFeatureChRtt PagePermissionsPolicyFeature = "ch-rtt"

	// PagePermissionsPolicyFeatureChSaveData enum const.
	PagePermissionsPolicyFeatureChSaveData PagePermissionsPolicyFeature = "ch-save-data"

	// PagePermissionsPolicyFeatureChUa enum const.
	PagePermissionsPolicyFeatureChUa PagePermissionsPolicyFeature = "ch-ua"

	// PagePermissionsPolicyFeatureChUaArch enum const.
	PagePermissionsPolicyFeatureChUaArch PagePermissionsPolicyFeature = "ch-ua-arch"

	// PagePermissionsPolicyFeatureChUaBitness enum const.
	PagePermissionsPolicyFeatureChUaBitness PagePermissionsPolicyFeature = "ch-ua-bitness"

	// PagePermissionsPolicyFeatureChUaPlatform enum const.
	PagePermissionsPolicyFeatureChUaPlatform PagePermissionsPolicyFeature = "ch-ua-platform"

	// PagePermissionsPolicyFeatureChUaModel enum const.
	PagePermissionsPolicyFeatureChUaModel PagePermissionsPolicyFeature = "ch-ua-model"

	// PagePermissionsPolicyFeatureChUaMobile enum const.
	PagePermissionsPolicyFeatureChUaMobile PagePermissionsPolicyFeature = "ch-ua-mobile"

	// PagePermissionsPolicyFeatureChUaFormFactors enum const.
	PagePermissionsPolicyFeatureChUaFormFactors PagePermissionsPolicyFeature = "ch-ua-form-factors"

	// PagePermissionsPolicyFeatureChUaFullVersion enum const.
	PagePermissionsPolicyFeatureChUaFullVersion PagePermissionsPolicyFeature = "ch-ua-full-version"

	// PagePermissionsPolicyFeatureChUaFullVersionList enum const.
	PagePermissionsPolicyFeatureChUaFullVersionList PagePermissionsPolicyFeature = "ch-ua-full-version-list"

	// PagePermissionsPolicyFeatureChUaPlatformVersion enum const.
	PagePermissionsPolicyFeatureChUaPlatformVersion PagePermissionsPolicyFeature = "ch-ua-platform-version"

	// PagePermissionsPolicyFeatureChUaWow64 enum const.
	PagePermissionsPolicyFeatureChUaWow64 PagePermissionsPolicyFeature = "ch-ua-wow64"

	// PagePermissionsPolicyFeatureChViewportHeight enum const.
	PagePermissionsPolicyFeatureChViewportHeight PagePermissionsPolicyFeature = "ch-viewport-height"

	// PagePermissionsPolicyFeatureChViewportWidth enum const.
	PagePermissionsPolicyFeatureChViewportWidth PagePermissionsPolicyFeature = "ch-viewport-width"

	// PagePermissionsPolicyFeatureChWidth enum const.
	PagePermissionsPolicyFeatureChWidth PagePermissionsPolicyFeature = "ch-width"

	// PagePermissionsPolicyFeatureClipboardRead enum const.
	PagePermissionsPolicyFeatureClipboardRead PagePermissionsPolicyFeature = "clipboard-read"

	// PagePermissionsPolicyFeatureClipboardWrite enum const.
	PagePermissionsPolicyFeatureClipboardWrite PagePermissionsPolicyFeature = "clipboard-write"

	// PagePermissionsPolicyFeatureComputePressure enum const.
	PagePermissionsPolicyFeatureComputePressure PagePermissionsPolicyFeature = "compute-pressure"

	// PagePermissionsPolicyFeatureCrossOriginIsolated enum const.
	PagePermissionsPolicyFeatureCrossOriginIsolated PagePermissionsPolicyFeature = "cross-origin-isolated"

	// PagePermissionsPolicyFeatureDeferredFetch enum const.
	PagePermissionsPolicyFeatureDeferredFetch PagePermissionsPolicyFeature = "deferred-fetch"

	// PagePermissionsPolicyFeatureDirectSockets enum const.
	PagePermissionsPolicyFeatureDirectSockets PagePermissionsPolicyFeature = "direct-sockets"

	// PagePermissionsPolicyFeatureDisplayCapture enum const.
	PagePermissionsPolicyFeatureDisplayCapture PagePermissionsPolicyFeature = "display-capture"

	// PagePermissionsPolicyFeatureDocumentDomain enum const.
	PagePermissionsPolicyFeatureDocumentDomain PagePermissionsPolicyFeature = "document-domain"

	// PagePermissionsPolicyFeatureEncryptedMedia enum const.
	PagePermissionsPolicyFeatureEncryptedMedia PagePermissionsPolicyFeature = "encrypted-media"

	// PagePermissionsPolicyFeatureExecutionWhileOutOfViewport enum const.
	PagePermissionsPolicyFeatureExecutionWhileOutOfViewport PagePermissionsPolicyFeature = "execution-while-out-of-viewport"

	// PagePermissionsPolicyFeatureExecutionWhileNotRendered enum const.
	PagePermissionsPolicyFeatureExecutionWhileNotRendered PagePermissionsPolicyFeature = "execution-while-not-rendered"

	// PagePermissionsPolicyFeatureFocusWithoutUserActivation enum const.
	PagePermissionsPolicyFeatureFocusWithoutUserActivation PagePermissionsPolicyFeature = "focus-without-user-activation"

	// PagePermissionsPolicyFeatureFullscreen enum const.
	PagePermissionsPolicyFeatureFullscreen PagePermissionsPolicyFeature = "fullscreen"

	// PagePermissionsPolicyFeatureFrobulate enum const.
	PagePermissionsPolicyFeatureFrobulate PagePermissionsPolicyFeature = "frobulate"

	// PagePermissionsPolicyFeatureGamepad enum const.
	PagePermissionsPolicyFeatureGamepad PagePermissionsPolicyFeature = "gamepad"

	// PagePermissionsPolicyFeatureGeolocation enum const.
	PagePermissionsPolicyFeatureGeolocation PagePermissionsPolicyFeature = "geolocation"

	// PagePermissionsPolicyFeatureGyroscope enum const.
	PagePermissionsPolicyFeatureGyroscope PagePermissionsPolicyFeature = "gyroscope"

	// PagePermissionsPolicyFeatureHid enum const.
	PagePermissionsPolicyFeatureHid PagePermissionsPolicyFeature = "hid"

	// PagePermissionsPolicyFeatureIdentityCredentialsGet enum const.
	PagePermissionsPolicyFeatureIdentityCredentialsGet PagePermissionsPolicyFeature = "identity-credentials-get"

	// PagePermissionsPolicyFeatureIdleDetection enum const.
	PagePermissionsPolicyFeatureIdleDetection PagePermissionsPolicyFeature = "idle-detection"

	// PagePermissionsPolicyFeatureInterestCohort enum const.
	PagePermissionsPolicyFeatureInterestCohort PagePermissionsPolicyFeature = "interest-cohort"

	// PagePermissionsPolicyFeatureJoinAdInterestGroup enum const.
	PagePermissionsPolicyFeatureJoinAdInterestGroup PagePermissionsPolicyFeature = "join-ad-interest-group"

	// PagePermissionsPolicyFeatureKeyboardMap enum const.
	PagePermissionsPolicyFeatureKeyboardMap PagePermissionsPolicyFeature = "keyboard-map"

	// PagePermissionsPolicyFeatureLocalFonts enum const.
	PagePermissionsPolicyFeatureLocalFonts PagePermissionsPolicyFeature = "local-fonts"

	// PagePermissionsPolicyFeatureMagnetometer enum const.
	PagePermissionsPolicyFeatureMagnetometer PagePermissionsPolicyFeature = "magnetometer"

	// PagePermissionsPolicyFeatureMicrophone enum const.
	PagePermissionsPolicyFeatureMicrophone PagePermissionsPolicyFeature = "microphone"

	// PagePermissionsPolicyFeatureMidi enum const.
	PagePermissionsPolicyFeatureMidi PagePermissionsPolicyFeature = "midi"

	// PagePermissionsPolicyFeatureOtpCredentials enum const.
	PagePermissionsPolicyFeatureOtpCredentials PagePermissionsPolicyFeature = "otp-credentials"

	// PagePermissionsPolicyFeaturePayment enum const.
	PagePermissionsPolicyFeaturePayment PagePermissionsPolicyFeature = "payment"

	// PagePermissionsPolicyFeaturePictureInPicture enum const.
	PagePermissionsPolicyFeaturePictureInPicture PagePermissionsPolicyFeature = "picture-in-picture"

	// PagePermissionsPolicyFeaturePrivateAggregation enum const.
	PagePermissionsPolicyFeaturePrivateAggregation PagePermissionsPolicyFeature = "private-aggregation"

	// PagePermissionsPolicyFeaturePrivateStateTokenIssuance enum const.
	PagePermissionsPolicyFeaturePrivateStateTokenIssuance PagePermissionsPolicyFeature = "private-state-token-issuance"

	// PagePermissionsPolicyFeaturePrivateStateTokenRedemption enum const.
	PagePermissionsPolicyFeaturePrivateStateTokenRedemption PagePermissionsPolicyFeature = "private-state-token-redemption"

	// PagePermissionsPolicyFeaturePublickeyCredentialsCreate enum const.
	PagePermissionsPolicyFeaturePublickeyCredentialsCreate PagePermissionsPolicyFeature = "publickey-credentials-create"

	// PagePermissionsPolicyFeaturePublickeyCredentialsGet enum const.
	PagePermissionsPolicyFeaturePublickeyCredentialsGet PagePermissionsPolicyFeature = "publickey-credentials-get"

	// PagePermissionsPolicyFeatureRunAdAuction enum const.
	PagePermissionsPolicyFeatureRunAdAuction PagePermissionsPolicyFeature = "run-ad-auction"

	// PagePermissionsPolicyFeatureScreenWakeLock enum const.
	PagePermissionsPolicyFeatureScreenWakeLock PagePermissionsPolicyFeature = "screen-wake-lock"

	// PagePermissionsPolicyFeatureSerial enum const.
	PagePermissionsPolicyFeatureSerial PagePermissionsPolicyFeature = "serial"

	// PagePermissionsPolicyFeatureSharedAutofill enum const.
	PagePermissionsPolicyFeatureSharedAutofill PagePermissionsPolicyFeature = "shared-autofill"

	// PagePermissionsPolicyFeatureSharedStorage enum const.
	PagePermissionsPolicyFeatureSharedStorage PagePermissionsPolicyFeature = "shared-storage"

	// PagePermissionsPolicyFeatureSharedStorageSelectURL enum const.
	PagePermissionsPolicyFeatureSharedStorageSelectURL PagePermissionsPolicyFeature = "shared-storage-select-url"

	// PagePermissionsPolicyFeatureSmartCard enum const.
	PagePermissionsPolicyFeatureSmartCard PagePermissionsPolicyFeature = "smart-card"

	// PagePermissionsPolicyFeatureSpeakerSelection enum const.
	PagePermissionsPolicyFeatureSpeakerSelection PagePermissionsPolicyFeature = "speaker-selection"

	// PagePermissionsPolicyFeatureStorageAccess enum const.
	PagePermissionsPolicyFeatureStorageAccess PagePermissionsPolicyFeature = "storage-access"

	// PagePermissionsPolicyFeatureSubApps enum const.
	PagePermissionsPolicyFeatureSubApps PagePermissionsPolicyFeature = "sub-apps"

	// PagePermissionsPolicyFeatureSyncXhr enum const.
	PagePermissionsPolicyFeatureSyncXhr PagePermissionsPolicyFeature = "sync-xhr"

	// PagePermissionsPolicyFeatureUnload enum const.
	PagePermissionsPolicyFeatureUnload PagePermissionsPolicyFeature = "unload"

	// PagePermissionsPolicyFeatureUsb enum const.
	PagePermissionsPolicyFeatureUsb PagePermissionsPolicyFeature = "usb"

	// PagePermissionsPolicyFeatureUsbUnrestricted enum const.
	PagePermissionsPolicyFeatureUsbUnrestricted PagePermissionsPolicyFeature = "usb-unrestricted"

	// PagePermissionsPolicyFeatureVerticalScroll enum const.
	PagePermissionsPolicyFeatureVerticalScroll PagePermissionsPolicyFeature = "vertical-scroll"

	// PagePermissionsPolicyFeatureWebPrinting enum const.
	PagePermissionsPolicyFeatureWebPrinting PagePermissionsPolicyFeature = "web-printing"

	// PagePermissionsPolicyFeatureWebShare enum const.
	PagePermissionsPolicyFeatureWebShare PagePermissionsPolicyFeature = "web-share"

	// PagePermissionsPolicyFeatureWindowManagement enum const.
	PagePermissionsPolicyFeatureWindowManagement PagePermissionsPolicyFeature = "window-management"

	// PagePermissionsPolicyFeatureXrSpatialTracking enum const.
	PagePermissionsPolicyFeatureXrSpatialTracking PagePermissionsPolicyFeature = "xr-spatial-tracking"
)

type PagePermissionsPolicyFeatureState <- 0.93.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PagePermissionsPolicyFeatureState struct {
	// Feature ...
	Feature PagePermissionsPolicyFeature `json:"feature"`

	// Allowed ...
	Allowed bool `json:"allowed"`

	// Locator (optional) ...
	Locator *PagePermissionsPolicyBlockLocator `json:"locator,omitempty"`
}

PagePermissionsPolicyFeatureState (experimental) …

type PagePrintToPDF

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
type PagePrintToPDF struct {
	// Landscape (optional) Paper orientation. Defaults to false.
	Landscape bool `json:"landscape,omitempty"`

	// DisplayHeaderFooter (optional) Display header and footer. Defaults to false.
	DisplayHeaderFooter bool `json:"displayHeaderFooter,omitempty"`

	// PrintBackground (optional) Print background graphics. Defaults to false.
	PrintBackground bool `json:"printBackground,omitempty"`

	// Scale (optional) Scale of the webpage rendering. Defaults to 1.
	Scale *float64 `json:"scale,omitempty"`

	// PaperWidth (optional) Paper width in inches. Defaults to 8.5 inches.
	PaperWidth *float64 `json:"paperWidth,omitempty"`

	// PaperHeight (optional) Paper height in inches. Defaults to 11 inches.
	PaperHeight *float64 `json:"paperHeight,omitempty"`

	// MarginTop (optional) Top margin in inches. Defaults to 1cm (~0.4 inches).
	MarginTop *float64 `json:"marginTop,omitempty"`

	// MarginBottom (optional) Bottom margin in inches. Defaults to 1cm (~0.4 inches).
	MarginBottom *float64 `json:"marginBottom,omitempty"`

	// MarginLeft (optional) Left margin in inches. Defaults to 1cm (~0.4 inches).
	MarginLeft *float64 `json:"marginLeft,omitempty"`

	// MarginRight (optional) Right margin in inches. Defaults to 1cm (~0.4 inches).
	MarginRight *float64 `json:"marginRight,omitempty"`

	// PageRanges (optional) Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are
	// printed in the document order, not in the order specified, and no
	// more than once.
	// Defaults to empty string, which implies the entire document is printed.
	// The page numbers are quietly capped to actual page count of the
	// document, and ranges beyond the end of the document are ignored.
	// If this results in no pages to print, an error is reported.
	// It is an error to specify a range with start greater than end.
	PageRanges string `json:"pageRanges,omitempty"`

	// HeaderTemplate (optional) HTML template for the print header. Should be valid HTML markup with following
	// classes used to inject printing values into them:
	// - `date`: formatted print date
	// - `title`: document title
	// - `url`: document location
	// - `pageNumber`: current page number
	// - `totalPages`: total pages in the document
	//
	// For example, `<span class=title></span>` would generate span containing the title.
	HeaderTemplate string `json:"headerTemplate,omitempty"`

	// FooterTemplate (optional) HTML template for the print footer. Should use the same format as the `headerTemplate`.
	FooterTemplate string `json:"footerTemplate,omitempty"`

	// PreferCSSPageSize (optional) Whether or not to prefer page size as defined by css. Defaults to false,
	// in which case the content will be scaled to fit the paper size.
	PreferCSSPageSize bool `json:"preferCSSPageSize,omitempty"`

	// TransferMode (experimental) (optional) return as stream
	TransferMode PagePrintToPDFTransferMode `json:"transferMode,omitempty"`

	// GenerateTaggedPDF (experimental) (optional) Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
	GenerateTaggedPDF bool `json:"generateTaggedPDF,omitempty"`

	// GenerateDocumentOutline (experimental) (optional) Whether or not to embed the document outline into the PDF.
	GenerateDocumentOutline bool `json:"generateDocumentOutline,omitempty"`
}

PagePrintToPDF Print page as PDF.

(PagePrintToPDF) Call

1
func (m PagePrintToPDF) Call(c Client) (*PagePrintToPDFResult, error)

Call the request.

(PagePrintToPDF) ProtoReq <- 0.74.0

1
func (m PagePrintToPDF) ProtoReq() string

ProtoReq name.

type PagePrintToPDFResult

1
2
3
4
5
6
7
type PagePrintToPDFResult struct {
	// Data Base64-encoded pdf data. Empty if |returnAsStream| is specified.
	Data []byte `json:"data"`

	// Stream (experimental) (optional) A handle of the stream that holds resulting PDF data.
	Stream IOStreamHandle `json:"stream,omitempty"`
}

PagePrintToPDFResult …

type PagePrintToPDFTransferMode

1
type PagePrintToPDFTransferMode string

PagePrintToPDFTransferMode enum.

1
2
3
4
5
6
7
const (
	// PagePrintToPDFTransferModeReturnAsBase64 enum const.
	PagePrintToPDFTransferModeReturnAsBase64 PagePrintToPDFTransferMode = "ReturnAsBase64"

	// PagePrintToPDFTransferModeReturnAsStream enum const.
	PagePrintToPDFTransferModeReturnAsStream PagePrintToPDFTransferMode = "ReturnAsStream"
)

type PageProduceCompilationCache <- 0.97.5

1
2
3
4
type PageProduceCompilationCache struct {
	// Scripts ...
	Scripts []*PageCompilationCacheParams `json:"scripts"`
}

PageProduceCompilationCache (experimental) Requests backend to produce compilation cache for the specified scripts. scripts are appended to the list of scripts for which the cache would be produced. The list may be reset during page navigation. When script with a matching URL is encountered, the cache is optionally produced upon backend discretion, based on internal heuristics. See also: Page.compilationCacheProduced.

(PageProduceCompilationCache) Call <- 0.97.5

1
func (m PageProduceCompilationCache) Call(c Client) error

Call sends the request.

(PageProduceCompilationCache) ProtoReq <- 0.97.5

1
func (m PageProduceCompilationCache) ProtoReq() string

ProtoReq name.

type PageProtocolHandler <- 0.116.0

1
2
3
4
5
6
7
type PageProtocolHandler struct {
	// Protocol ...
	Protocol string `json:"protocol"`

	// URL ...
	URL string `json:"url"`
}

PageProtocolHandler (experimental) …

type PageReferrerPolicy

1
type PageReferrerPolicy string

PageReferrerPolicy (experimental) The referring-policy used for the navigation.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const (
	// PageReferrerPolicyNoReferrer enum const.
	PageReferrerPolicyNoReferrer PageReferrerPolicy = "noReferrer"

	// PageReferrerPolicyNoReferrerWhenDowngrade enum const.
	PageReferrerPolicyNoReferrerWhenDowngrade PageReferrerPolicy = "noReferrerWhenDowngrade"

	// PageReferrerPolicyOrigin enum const.
	PageReferrerPolicyOrigin PageReferrerPolicy = "origin"

	// PageReferrerPolicyOriginWhenCrossOrigin enum const.
	PageReferrerPolicyOriginWhenCrossOrigin PageReferrerPolicy = "originWhenCrossOrigin"

	// PageReferrerPolicySameOrigin enum const.
	PageReferrerPolicySameOrigin PageReferrerPolicy = "sameOrigin"

	// PageReferrerPolicyStrictOrigin enum const.
	PageReferrerPolicyStrictOrigin PageReferrerPolicy = "strictOrigin"

	// PageReferrerPolicyStrictOriginWhenCrossOrigin enum const.
	PageReferrerPolicyStrictOriginWhenCrossOrigin PageReferrerPolicy = "strictOriginWhenCrossOrigin"

	// PageReferrerPolicyUnsafeURL enum const.
	PageReferrerPolicyUnsafeURL PageReferrerPolicy = "unsafeUrl"
)

type PageRelatedApplication <- 0.116.0

1
2
3
4
5
6
7
type PageRelatedApplication struct {
	// ID (optional) ...
	ID string `json:"id,omitempty"`

	// URL ...
	URL string `json:"url"`
}

PageRelatedApplication (experimental) …

type PageReload

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageReload struct {
	// IgnoreCache (optional) If true, browser cache is ignored (as if the user pressed Shift+refresh).
	IgnoreCache bool `json:"ignoreCache,omitempty"`

	// ScriptToEvaluateOnLoad (optional) If set, the script will be injected into all frames of the inspected page after reload.
	// Argument will be ignored if reloading dataURL origin.
	ScriptToEvaluateOnLoad string `json:"scriptToEvaluateOnLoad,omitempty"`

	// LoaderID (experimental) (optional) If set, an error will be thrown if the target page's main frame's
	// loader id does not match the provided id. This prevents accidentally
	// reloading an unintended target in case there's a racing navigation.
	LoaderID NetworkLoaderID `json:"loaderId,omitempty"`
}

PageReload Reloads given page optionally ignoring the cache.

(PageReload) Call

1
func (m PageReload) Call(c Client) error

Call sends the request.

(PageReload) ProtoReq <- 0.74.0

1
func (m PageReload) ProtoReq() string

ProtoReq name.

type PageRemoveScriptToEvaluateOnLoad

1
2
3
4
type PageRemoveScriptToEvaluateOnLoad struct {
	// Identifier ...
	Identifier PageScriptIdentifier `json:"identifier"`
}

PageRemoveScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use removeScriptToEvaluateOnNewDocument instead.

(PageRemoveScriptToEvaluateOnLoad) Call

1
func (m PageRemoveScriptToEvaluateOnLoad) Call(c Client) error

Call sends the request.

(PageRemoveScriptToEvaluateOnLoad) ProtoReq <- 0.74.0

1
func (m PageRemoveScriptToEvaluateOnLoad) ProtoReq() string

ProtoReq name.

type PageRemoveScriptToEvaluateOnNewDocument

1
2
3
4
type PageRemoveScriptToEvaluateOnNewDocument struct {
	// Identifier ...
	Identifier PageScriptIdentifier `json:"identifier"`
}

PageRemoveScriptToEvaluateOnNewDocument Removes given script from the list.

(PageRemoveScriptToEvaluateOnNewDocument) Call

1
func (m PageRemoveScriptToEvaluateOnNewDocument) Call(c Client) error

Call sends the request.

(PageRemoveScriptToEvaluateOnNewDocument) ProtoReq <- 0.74.0

1
func (m PageRemoveScriptToEvaluateOnNewDocument) ProtoReq() string

ProtoReq name.

type PageResetNavigationHistory

1
type PageResetNavigationHistory struct{}

PageResetNavigationHistory Resets navigation history for the current page.

(PageResetNavigationHistory) Call

1
func (m PageResetNavigationHistory) Call(c Client) error

Call sends the request.

(PageResetNavigationHistory) ProtoReq <- 0.74.0

1
func (m PageResetNavigationHistory) ProtoReq() string

ProtoReq name.

type PageScopeExtension <- 0.116.0

1
2
3
4
5
6
7
8
type PageScopeExtension struct {
	// Origin Instead of using tuple, this field always returns the serialized string
	// for easy understanding and comparison.
	Origin string `json:"origin"`

	// HasOriginWildcard ...
	HasOriginWildcard bool `json:"hasOriginWildcard"`
}

PageScopeExtension (experimental) …

type PageScreencastFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageScreencastFrame struct {
	// Data Base64-encoded compressed image.
	Data []byte `json:"data"`

	// Metadata Screencast frame metadata.
	Metadata *PageScreencastFrameMetadata `json:"metadata"`

	// SessionID Frame number.
	SessionID int `json:"sessionId"`
}

PageScreencastFrame (experimental) Compressed image data requested by the startScreencast.

(PageScreencastFrame) ProtoEvent <- 0.72.0

1
func (evt PageScreencastFrame) ProtoEvent() string

ProtoEvent name.

type PageScreencastFrameAck

1
2
3
4
type PageScreencastFrameAck struct {
	// SessionID Frame number.
	SessionID int `json:"sessionId"`
}

PageScreencastFrameAck (experimental) Acknowledges that a screencast frame has been received by the frontend.

(PageScreencastFrameAck) Call

1
func (m PageScreencastFrameAck) Call(c Client) error

Call sends the request.

(PageScreencastFrameAck) ProtoReq <- 0.74.0

1
func (m PageScreencastFrameAck) ProtoReq() string

ProtoReq name.

type PageScreencastFrameMetadata

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type PageScreencastFrameMetadata struct {
	// OffsetTop Top offset in DIP.
	OffsetTop float64 `json:"offsetTop"`

	// PageScaleFactor Page scale factor.
	PageScaleFactor float64 `json:"pageScaleFactor"`

	// DeviceWidth Device screen width in DIP.
	DeviceWidth float64 `json:"deviceWidth"`

	// DeviceHeight Device screen height in DIP.
	DeviceHeight float64 `json:"deviceHeight"`

	// ScrollOffsetX Position of horizontal scroll in CSS pixels.
	ScrollOffsetX float64 `json:"scrollOffsetX"`

	// ScrollOffsetY Position of vertical scroll in CSS pixels.
	ScrollOffsetY float64 `json:"scrollOffsetY"`

	// Timestamp (optional) Frame swap timestamp.
	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
}

PageScreencastFrameMetadata (experimental) Screencast frame metadata.

type PageScreencastVisibilityChanged

1
2
3
4
type PageScreencastVisibilityChanged struct {
	// Visible True if the page is visible.
	Visible bool `json:"visible"`
}

PageScreencastVisibilityChanged (experimental) Fired when the page with currently enabled screencast was shown or hidden `.

(PageScreencastVisibilityChanged) ProtoEvent <- 0.72.0

1
func (evt PageScreencastVisibilityChanged) ProtoEvent() string

ProtoEvent name.

type PageScreenshot <- 0.116.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageScreenshot struct {
	// Image ...
	Image *PageImageResource `json:"image"`

	// FormFactor ...
	FormFactor string `json:"formFactor"`

	// Label (optional) ...
	Label string `json:"label,omitempty"`
}

PageScreenshot (experimental) …

type PageScriptFontFamilies <- 0.102.0

1
2
3
4
5
6
7
type PageScriptFontFamilies struct {
	// Script Name of the script which these font families are defined for.
	Script string `json:"script"`

	// FontFamilies Generic font families collection for the script.
	FontFamilies *PageFontFamilies `json:"fontFamilies"`
}

PageScriptFontFamilies (experimental) Font families collection for a script.

type PageScriptIdentifier

1
type PageScriptIdentifier string

PageScriptIdentifier Unique script identifier.

type PageSearchInResource

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PageSearchInResource struct {
	// FrameID Frame id for resource to search in.
	FrameID PageFrameID `json:"frameId"`

	// URL of the resource to search in.
	URL string `json:"url"`

	// Query String to search for.
	Query string `json:"query"`

	// CaseSensitive (optional) If true, search is case sensitive.
	CaseSensitive bool `json:"caseSensitive,omitempty"`

	// IsRegex (optional) If true, treats string parameter as regex.
	IsRegex bool `json:"isRegex,omitempty"`
}

PageSearchInResource (experimental) Searches for given string in resource content.

(PageSearchInResource) Call

1
func (m PageSearchInResource) Call(c Client) (*PageSearchInResourceResult, error)

Call the request.

(PageSearchInResource) ProtoReq <- 0.74.0

1
func (m PageSearchInResource) ProtoReq() string

ProtoReq name.

type PageSearchInResourceResult

1
2
3
4
type PageSearchInResourceResult struct {
	// Result List of search matches.
	Result []*DebuggerSearchMatch `json:"result"`
}

PageSearchInResourceResult (experimental) …

type PageSecureContextType <- 0.72.0

1
type PageSecureContextType string

PageSecureContextType (experimental) Indicates whether the frame is a secure context and why it is the case.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// PageSecureContextTypeSecure enum const.
	PageSecureContextTypeSecure PageSecureContextType = "Secure"

	// PageSecureContextTypeSecureLocalhost enum const.
	PageSecureContextTypeSecureLocalhost PageSecureContextType = "SecureLocalhost"

	// PageSecureContextTypeInsecureScheme enum const.
	PageSecureContextTypeInsecureScheme PageSecureContextType = "InsecureScheme"

	// PageSecureContextTypeInsecureAncestor enum const.
	PageSecureContextTypeInsecureAncestor PageSecureContextType = "InsecureAncestor"
)

type PageSetAdBlockingEnabled

1
2
3
4
type PageSetAdBlockingEnabled struct {
	// Enabled Whether to block ads.
	Enabled bool `json:"enabled"`
}

PageSetAdBlockingEnabled (experimental) Enable Chrome’s experimental ad filter on all sites.

(PageSetAdBlockingEnabled) Call

1
func (m PageSetAdBlockingEnabled) Call(c Client) error

Call sends the request.

(PageSetAdBlockingEnabled) ProtoReq <- 0.74.0

1
func (m PageSetAdBlockingEnabled) ProtoReq() string

ProtoReq name.

type PageSetBypassCSP

1
2
3
4
type PageSetBypassCSP struct {
	// Enabled Whether to bypass page CSP.
	Enabled bool `json:"enabled"`
}

PageSetBypassCSP Enable page Content Security Policy by-passing.

(PageSetBypassCSP) Call

1
func (m PageSetBypassCSP) Call(c Client) error

Call sends the request.

(PageSetBypassCSP) ProtoReq <- 0.74.0

1
func (m PageSetBypassCSP) ProtoReq() string

ProtoReq name.

type PageSetDeviceMetricsOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
type PageSetDeviceMetricsOverride struct {
	// Width Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
	Width int `json:"width"`

	// Height Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
	Height int `json:"height"`

	// DeviceScaleFactor Overriding device scale factor value. 0 disables the override.
	DeviceScaleFactor float64 `json:"deviceScaleFactor"`

	// Mobile Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text
	// autosizing and more.
	Mobile bool `json:"mobile"`

	// Scale (optional) Scale to apply to resulting view image.
	Scale *float64 `json:"scale,omitempty"`

	// ScreenWidth (optional) Overriding screen width value in pixels (minimum 0, maximum 10000000).
	ScreenWidth *int `json:"screenWidth,omitempty"`

	// ScreenHeight (optional) Overriding screen height value in pixels (minimum 0, maximum 10000000).
	ScreenHeight *int `json:"screenHeight,omitempty"`

	// PositionX (optional) Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
	PositionX *int `json:"positionX,omitempty"`

	// PositionY (optional) Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
	PositionY *int `json:"positionY,omitempty"`

	// DontSetVisibleSize (optional) Do not set visible view size, rely upon explicit setVisibleSize call.
	DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"`

	// ScreenOrientation (optional) Screen orientation override.
	ScreenOrientation *EmulationScreenOrientation `json:"screenOrientation,omitempty"`

	// Viewport (optional) The viewport dimensions and scale. If not set, the override is cleared.
	Viewport *PageViewport `json:"viewport,omitempty"`
}

PageSetDeviceMetricsOverride (deprecated) (experimental) Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and “device-width”/“device-height”-related CSS media query results).

(PageSetDeviceMetricsOverride) Call

1
func (m PageSetDeviceMetricsOverride) Call(c Client) error

Call sends the request.

(PageSetDeviceMetricsOverride) ProtoReq <- 0.74.0

1
func (m PageSetDeviceMetricsOverride) ProtoReq() string

ProtoReq name.

type PageSetDeviceOrientationOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageSetDeviceOrientationOverride struct {
	// Alpha Mock alpha
	Alpha float64 `json:"alpha"`

	// Beta Mock beta
	Beta float64 `json:"beta"`

	// Gamma Mock gamma
	Gamma float64 `json:"gamma"`
}

PageSetDeviceOrientationOverride (deprecated) (experimental) Overrides the Device Orientation.

(PageSetDeviceOrientationOverride) Call

1
func (m PageSetDeviceOrientationOverride) Call(c Client) error

Call sends the request.

(PageSetDeviceOrientationOverride) ProtoReq <- 0.74.0

1
func (m PageSetDeviceOrientationOverride) ProtoReq() string

ProtoReq name.

type PageSetDocumentContent

1
2
3
4
5
6
7
type PageSetDocumentContent struct {
	// FrameID Frame id to set HTML for.
	FrameID PageFrameID `json:"frameId"`

	// HTML content to set.
	HTML string `json:"html"`
}

PageSetDocumentContent Sets given markup as the document’s HTML.

(PageSetDocumentContent) Call

1
func (m PageSetDocumentContent) Call(c Client) error

Call sends the request.

(PageSetDocumentContent) ProtoReq <- 0.74.0

1
func (m PageSetDocumentContent) ProtoReq() string

ProtoReq name.

type PageSetDownloadBehavior

1
2
3
4
5
6
7
8
type PageSetDownloadBehavior struct {
	// Behavior Whether to allow all or deny all download requests, or use default Chrome behavior if
	// available (otherwise deny).
	Behavior PageSetDownloadBehaviorBehavior `json:"behavior"`

	// DownloadPath (optional) The default path to save downloaded files to. This is required if behavior is set to 'allow'
	DownloadPath string `json:"downloadPath,omitempty"`
}

PageSetDownloadBehavior (deprecated) (experimental) Set the behavior when downloading a file.

(PageSetDownloadBehavior) Call

1
func (m PageSetDownloadBehavior) Call(c Client) error

Call sends the request.

(PageSetDownloadBehavior) ProtoReq <- 0.74.0

1
func (m PageSetDownloadBehavior) ProtoReq() string

ProtoReq name.

type PageSetDownloadBehaviorBehavior

1
type PageSetDownloadBehaviorBehavior string

PageSetDownloadBehaviorBehavior enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// PageSetDownloadBehaviorBehaviorDeny enum const.
	PageSetDownloadBehaviorBehaviorDeny PageSetDownloadBehaviorBehavior = "deny"

	// PageSetDownloadBehaviorBehaviorAllow enum const.
	PageSetDownloadBehaviorBehaviorAllow PageSetDownloadBehaviorBehavior = "allow"

	// PageSetDownloadBehaviorBehaviorDefault enum const.
	PageSetDownloadBehaviorBehaviorDefault PageSetDownloadBehaviorBehavior = "default"
)

type PageSetFontFamilies

1
2
3
4
5
6
7
type PageSetFontFamilies struct {
	// FontFamilies Specifies font families to set. If a font family is not specified, it won't be changed.
	FontFamilies *PageFontFamilies `json:"fontFamilies"`

	// ForScripts (optional) Specifies font families to set for individual scripts.
	ForScripts []*PageScriptFontFamilies `json:"forScripts,omitempty"`
}

PageSetFontFamilies (experimental) Set generic font families.

(PageSetFontFamilies) Call

1
func (m PageSetFontFamilies) Call(c Client) error

Call sends the request.

(PageSetFontFamilies) ProtoReq <- 0.74.0

1
func (m PageSetFontFamilies) ProtoReq() string

ProtoReq name.

type PageSetFontSizes

1
2
3
4
type PageSetFontSizes struct {
	// FontSizes Specifies font sizes to set. If a font size is not specified, it won't be changed.
	FontSizes *PageFontSizes `json:"fontSizes"`
}

PageSetFontSizes (experimental) Set default font sizes.

(PageSetFontSizes) Call

1
func (m PageSetFontSizes) Call(c Client) error

Call sends the request.

(PageSetFontSizes) ProtoReq <- 0.74.0

1
func (m PageSetFontSizes) ProtoReq() string

ProtoReq name.

type PageSetGeolocationOverride

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PageSetGeolocationOverride struct {
	// Latitude (optional) Mock latitude
	Latitude *float64 `json:"latitude,omitempty"`

	// Longitude (optional) Mock longitude
	Longitude *float64 `json:"longitude,omitempty"`

	// Accuracy (optional) Mock accuracy
	Accuracy *float64 `json:"accuracy,omitempty"`
}

PageSetGeolocationOverride (deprecated) Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.

(PageSetGeolocationOverride) Call

1
func (m PageSetGeolocationOverride) Call(c Client) error

Call sends the request.

(PageSetGeolocationOverride) ProtoReq <- 0.74.0

1
func (m PageSetGeolocationOverride) ProtoReq() string

ProtoReq name.

type PageSetInterceptFileChooserDialog

1
2
3
4
type PageSetInterceptFileChooserDialog struct {
	// Enabled ...
	Enabled bool `json:"enabled"`
}

PageSetInterceptFileChooserDialog Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.

(PageSetInterceptFileChooserDialog) Call

1
func (m PageSetInterceptFileChooserDialog) Call(c Client) error

Call sends the request.

(PageSetInterceptFileChooserDialog) ProtoReq <- 0.74.0

1
func (m PageSetInterceptFileChooserDialog) ProtoReq() string

ProtoReq name.

type PageSetLifecycleEventsEnabled

1
2
3
4
type PageSetLifecycleEventsEnabled struct {
	// Enabled If true, starts emitting lifecycle events.
	Enabled bool `json:"enabled"`
}

PageSetLifecycleEventsEnabled Controls whether page will emit lifecycle events.

(PageSetLifecycleEventsEnabled) Call

1
func (m PageSetLifecycleEventsEnabled) Call(c Client) error

Call sends the request.

(PageSetLifecycleEventsEnabled) ProtoReq <- 0.74.0

1
func (m PageSetLifecycleEventsEnabled) ProtoReq() string

ProtoReq name.

type PageSetPrerenderingAllowed <- 0.115.0

1
2
3
4
type PageSetPrerenderingAllowed struct {
	// IsAllowed ...
	IsAllowed bool `json:"isAllowed"`
}

PageSetPrerenderingAllowed (experimental) Enable/disable prerendering manually.

This command is a short-term solution for https://crbug.com/1440085. See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA for more details.

TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.

(PageSetPrerenderingAllowed) Call <- 0.115.0

1
func (m PageSetPrerenderingAllowed) Call(c Client) error

Call sends the request.

(PageSetPrerenderingAllowed) ProtoReq <- 0.115.0

1
func (m PageSetPrerenderingAllowed) ProtoReq() string

ProtoReq name.

type PageSetRPHRegistrationMode <- 0.112.7

1
2
3
4
type PageSetRPHRegistrationMode struct {
	// Mode ...
	Mode PageAutoResponseMode `json:"mode"`
}

PageSetRPHRegistrationMode (experimental) Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation

(PageSetRPHRegistrationMode) Call <- 0.112.7

1
func (m PageSetRPHRegistrationMode) Call(c Client) error

Call sends the request.

(PageSetRPHRegistrationMode) ProtoReq <- 0.112.7

1
func (m PageSetRPHRegistrationMode) ProtoReq() string

ProtoReq name.

type PageSetSPCTransactionMode <- 0.102.0

1
2
3
4
type PageSetSPCTransactionMode struct {
	// Mode ...
	Mode PageAutoResponseMode `json:"mode"`
}

PageSetSPCTransactionMode (experimental) Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode

(PageSetSPCTransactionMode) Call <- 0.102.0

1
func (m PageSetSPCTransactionMode) Call(c Client) error

Call sends the request.

(PageSetSPCTransactionMode) ProtoReq <- 0.102.0

1
func (m PageSetSPCTransactionMode) ProtoReq() string

ProtoReq name.

type PageSetTouchEmulationEnabled

1
2
3
4
5
6
7
type PageSetTouchEmulationEnabled struct {
	// Enabled Whether the touch event emulation should be enabled.
	Enabled bool `json:"enabled"`

	// Configuration (optional) Touch/gesture events configuration. Default: current platform.
	Configuration PageSetTouchEmulationEnabledConfiguration `json:"configuration,omitempty"`
}

PageSetTouchEmulationEnabled (deprecated) (experimental) Toggles mouse event-based touch event emulation.

(PageSetTouchEmulationEnabled) Call

1
func (m PageSetTouchEmulationEnabled) Call(c Client) error

Call sends the request.

(PageSetTouchEmulationEnabled) ProtoReq <- 0.74.0

1
func (m PageSetTouchEmulationEnabled) ProtoReq() string

ProtoReq name.

type PageSetTouchEmulationEnabledConfiguration

1
type PageSetTouchEmulationEnabledConfiguration string

PageSetTouchEmulationEnabledConfiguration enum.

1
2
3
4
5
6
7
const (
	// PageSetTouchEmulationEnabledConfigurationMobile enum const.
	PageSetTouchEmulationEnabledConfigurationMobile PageSetTouchEmulationEnabledConfiguration = "mobile"

	// PageSetTouchEmulationEnabledConfigurationDesktop enum const.
	PageSetTouchEmulationEnabledConfigurationDesktop PageSetTouchEmulationEnabledConfiguration = "desktop"
)

type PageSetWebLifecycleState

1
2
3
4
type PageSetWebLifecycleState struct {
	// State Target lifecycle state
	State PageSetWebLifecycleStateState `json:"state"`
}

PageSetWebLifecycleState (experimental) Tries to update the web lifecycle state of the page. It will transition the page to the given state according to: https://github.com/WICG/web-lifecycle/

(PageSetWebLifecycleState) Call

1
func (m PageSetWebLifecycleState) Call(c Client) error

Call sends the request.

(PageSetWebLifecycleState) ProtoReq <- 0.74.0

1
func (m PageSetWebLifecycleState) ProtoReq() string

ProtoReq name.

type PageSetWebLifecycleStateState

1
type PageSetWebLifecycleStateState string

PageSetWebLifecycleStateState enum.

1
2
3
4
5
6
7
const (
	// PageSetWebLifecycleStateStateFrozen enum const.
	PageSetWebLifecycleStateStateFrozen PageSetWebLifecycleStateState = "frozen"

	// PageSetWebLifecycleStateStateActive enum const.
	PageSetWebLifecycleStateStateActive PageSetWebLifecycleStateState = "active"
)

type PageShareTarget <- 0.116.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type PageShareTarget struct {
	// Action ...
	Action string `json:"action"`

	// Method ...
	Method string `json:"method"`

	// Enctype ...
	Enctype string `json:"enctype"`

	// Title (optional) Embed the ShareTargetParams
	Title string `json:"title,omitempty"`

	// Text (optional) ...
	Text string `json:"text,omitempty"`

	// URL (optional) ...
	URL string `json:"url,omitempty"`

	// Files (optional) ...
	Files []*PageFileFilter `json:"files,omitempty"`
}

PageShareTarget (experimental) …

type PageShortcut <- 0.116.0

1
2
3
4
5
6
7
type PageShortcut struct {
	// Name ...
	Name string `json:"name"`

	// URL ...
	URL string `json:"url"`
}

PageShortcut (experimental) …

type PageStartScreencast

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PageStartScreencast struct {
	// Format (optional) Image compression format.
	Format PageStartScreencastFormat `json:"format,omitempty"`

	// Quality (optional) Compression quality from range [0..100].
	Quality *int `json:"quality,omitempty"`

	// MaxWidth (optional) Maximum screenshot width.
	MaxWidth *int `json:"maxWidth,omitempty"`

	// MaxHeight (optional) Maximum screenshot height.
	MaxHeight *int `json:"maxHeight,omitempty"`

	// EveryNthFrame (optional) Send every n-th frame.
	EveryNthFrame *int `json:"everyNthFrame,omitempty"`
}

PageStartScreencast (experimental) Starts sending each frame using the screencastFrame event.

(PageStartScreencast) Call

1
func (m PageStartScreencast) Call(c Client) error

Call sends the request.

(PageStartScreencast) ProtoReq <- 0.74.0

1
func (m PageStartScreencast) ProtoReq() string

ProtoReq name.

type PageStartScreencastFormat

1
type PageStartScreencastFormat string

PageStartScreencastFormat enum.

1
2
3
4
5
6
7
const (
	// PageStartScreencastFormatJpeg enum const.
	PageStartScreencastFormatJpeg PageStartScreencastFormat = "jpeg"

	// PageStartScreencastFormatPng enum const.
	PageStartScreencastFormatPng PageStartScreencastFormat = "png"
)

type PageStopLoading

1
type PageStopLoading struct{}

PageStopLoading Force the page stop all navigations and pending resource fetches.

(PageStopLoading) Call

1
func (m PageStopLoading) Call(c Client) error

Call sends the request.

(PageStopLoading) ProtoReq <- 0.74.0

1
func (m PageStopLoading) ProtoReq() string

ProtoReq name.

type PageStopScreencast

1
type PageStopScreencast struct{}

PageStopScreencast (experimental) Stops sending each frame in the screencastFrame.

(PageStopScreencast) Call

1
func (m PageStopScreencast) Call(c Client) error

Call sends the request.

(PageStopScreencast) ProtoReq <- 0.74.0

1
func (m PageStopScreencast) ProtoReq() string

ProtoReq name.

type PageTransitionType

1
type PageTransitionType string

PageTransitionType Transition type.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const (
	// PageTransitionTypeLink enum const.
	PageTransitionTypeLink PageTransitionType = "link"

	// PageTransitionTypeTyped enum const.
	PageTransitionTypeTyped PageTransitionType = "typed"

	// PageTransitionTypeAddressBar enum const.
	PageTransitionTypeAddressBar PageTransitionType = "address_bar"

	// PageTransitionTypeAutoBookmark enum const.
	PageTransitionTypeAutoBookmark PageTransitionType = "auto_bookmark"

	// PageTransitionTypeAutoSubframe enum const.
	PageTransitionTypeAutoSubframe PageTransitionType = "auto_subframe"

	// PageTransitionTypeManualSubframe enum const.
	PageTransitionTypeManualSubframe PageTransitionType = "manual_subframe"

	// PageTransitionTypeGenerated enum const.
	PageTransitionTypeGenerated PageTransitionType = "generated"

	// PageTransitionTypeAutoToplevel enum const.
	PageTransitionTypeAutoToplevel PageTransitionType = "auto_toplevel"

	// PageTransitionTypeFormSubmit enum const.
	PageTransitionTypeFormSubmit PageTransitionType = "form_submit"

	// PageTransitionTypeReload enum const.
	PageTransitionTypeReload PageTransitionType = "reload"

	// PageTransitionTypeKeyword enum const.
	PageTransitionTypeKeyword PageTransitionType = "keyword"

	// PageTransitionTypeKeywordGenerated enum const.
	PageTransitionTypeKeywordGenerated PageTransitionType = "keyword_generated"

	// PageTransitionTypeOther enum const.
	PageTransitionTypeOther PageTransitionType = "other"
)

type PageViewport

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PageViewport struct {
	// X offset in device independent pixels (dip).
	X float64 `json:"x"`

	// Y offset in device independent pixels (dip).
	Y float64 `json:"y"`

	// Width Rectangle width in device independent pixels (dip).
	Width float64 `json:"width"`

	// Height Rectangle height in device independent pixels (dip).
	Height float64 `json:"height"`

	// Scale Page scale factor.
	Scale float64 `json:"scale"`
}

PageViewport Viewport for capturing screenshot.

type PageVisualViewport

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type PageVisualViewport struct {
	// OffsetX Horizontal offset relative to the layout viewport (CSS pixels).
	OffsetX float64 `json:"offsetX"`

	// OffsetY Vertical offset relative to the layout viewport (CSS pixels).
	OffsetY float64 `json:"offsetY"`

	// PageX Horizontal offset relative to the document (CSS pixels).
	PageX float64 `json:"pageX"`

	// PageY Vertical offset relative to the document (CSS pixels).
	PageY float64 `json:"pageY"`

	// ClientWidth Width (CSS pixels), excludes scrollbar if present.
	ClientWidth float64 `json:"clientWidth"`

	// ClientHeight Height (CSS pixels), excludes scrollbar if present.
	ClientHeight float64 `json:"clientHeight"`

	// Scale relative to the ideal viewport (size at width=device-width).
	Scale float64 `json:"scale"`

	// Zoom (optional) Page zoom factor (CSS to device independent pixels ratio).
	Zoom *float64 `json:"zoom,omitempty"`
}

PageVisualViewport Visual viewport position, dimensions, and scale.

type PageWaitForDebugger

1
type PageWaitForDebugger struct{}

PageWaitForDebugger (experimental) Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.

(PageWaitForDebugger) Call

1
func (m PageWaitForDebugger) Call(c Client) error

Call sends the request.

(PageWaitForDebugger) ProtoReq <- 0.74.0

1
func (m PageWaitForDebugger) ProtoReq() string

ProtoReq name.

type PageWebAppManifest <- 0.116.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
type PageWebAppManifest struct {
	// BackgroundColor (optional) ...
	BackgroundColor string `json:"backgroundColor,omitempty"`

	// Description (optional) The extra description provided by the manifest.
	Description string `json:"description,omitempty"`

	// Dir (optional) ...
	Dir string `json:"dir,omitempty"`

	// Display (optional) ...
	Display string `json:"display,omitempty"`

	// DisplayOverrides (optional) The overrided display mode controlled by the user.
	DisplayOverrides []string `json:"displayOverrides,omitempty"`

	// FileHandlers (optional) The handlers to open files.
	FileHandlers []*PageFileHandler `json:"fileHandlers,omitempty"`

	// Icons (optional) ...
	Icons []*PageImageResource `json:"icons,omitempty"`

	// ID (optional) ...
	ID string `json:"id,omitempty"`

	// Lang (optional) ...
	Lang string `json:"lang,omitempty"`

	// LaunchHandler (optional) TODO(crbug.com/1231886): This field is non-standard and part of a Chrome
	// experiment. See:
	// https://github.com/WICG/web-app-launch/blob/main/launch_handler.md
	LaunchHandler *PageLaunchHandler `json:"launchHandler,omitempty"`

	// Name (optional) ...
	Name string `json:"name,omitempty"`

	// Orientation (optional) ...
	Orientation string `json:"orientation,omitempty"`

	// PreferRelatedApplications (optional) ...
	PreferRelatedApplications bool `json:"preferRelatedApplications,omitempty"`

	// ProtocolHandlers (optional) The handlers to open protocols.
	ProtocolHandlers []*PageProtocolHandler `json:"protocolHandlers,omitempty"`

	// RelatedApplications (optional) ...
	RelatedApplications []*PageRelatedApplication `json:"relatedApplications,omitempty"`

	// Scope (optional) ...
	Scope string `json:"scope,omitempty"`

	// ScopeExtensions (optional) Non-standard, see
	// https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
	ScopeExtensions []*PageScopeExtension `json:"scopeExtensions,omitempty"`

	// Screenshots (optional) The screenshots used by chromium.
	Screenshots []*PageScreenshot `json:"screenshots,omitempty"`

	// ShareTarget (optional) ...
	ShareTarget *PageShareTarget `json:"shareTarget,omitempty"`

	// ShortName (optional) ...
	ShortName string `json:"shortName,omitempty"`

	// Shortcuts (optional) ...
	Shortcuts []*PageShortcut `json:"shortcuts,omitempty"`

	// StartURL (optional) ...
	StartURL string `json:"startUrl,omitempty"`

	// ThemeColor (optional) ...
	ThemeColor string `json:"themeColor,omitempty"`
}

PageWebAppManifest (experimental) …

type PageWindowOpen

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PageWindowOpen struct {
	// URL The URL for the new window.
	URL string `json:"url"`

	// WindowName Window name.
	WindowName string `json:"windowName"`

	// WindowFeatures An array of enabled window features.
	WindowFeatures []string `json:"windowFeatures"`

	// UserGesture Whether or not it was triggered by user gesture.
	UserGesture bool `json:"userGesture"`
}

PageWindowOpen Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

(PageWindowOpen) ProtoEvent <- 0.72.0

1
func (evt PageWindowOpen) ProtoEvent() string

ProtoEvent name.

type PerformanceDisable

1
type PerformanceDisable struct{}

PerformanceDisable Disable collecting and reporting metrics.

(PerformanceDisable) Call

1
func (m PerformanceDisable) Call(c Client) error

Call sends the request.

(PerformanceDisable) ProtoReq <- 0.74.0

1
func (m PerformanceDisable) ProtoReq() string

ProtoReq name.

type PerformanceEnable

1
2
3
4
type PerformanceEnable struct {
	// TimeDomain (optional) Time domain to use for collecting and reporting duration metrics.
	TimeDomain PerformanceEnableTimeDomain `json:"timeDomain,omitempty"`
}

PerformanceEnable Enable collecting and reporting metrics.

(PerformanceEnable) Call

1
func (m PerformanceEnable) Call(c Client) error

Call sends the request.

(PerformanceEnable) ProtoReq <- 0.74.0

1
func (m PerformanceEnable) ProtoReq() string

ProtoReq name.

type PerformanceEnableTimeDomain

1
type PerformanceEnableTimeDomain string

PerformanceEnableTimeDomain enum.

1
2
3
4
5
6
7
const (
	// PerformanceEnableTimeDomainTimeTicks enum const.
	PerformanceEnableTimeDomainTimeTicks PerformanceEnableTimeDomain = "timeTicks"

	// PerformanceEnableTimeDomainThreadTicks enum const.
	PerformanceEnableTimeDomainThreadTicks PerformanceEnableTimeDomain = "threadTicks"
)

type PerformanceGetMetrics

1
type PerformanceGetMetrics struct{}

PerformanceGetMetrics Retrieve current values of run-time metrics.

(PerformanceGetMetrics) Call

1
func (m PerformanceGetMetrics) Call(c Client) (*PerformanceGetMetricsResult, error)

Call the request.

(PerformanceGetMetrics) ProtoReq <- 0.74.0

1
func (m PerformanceGetMetrics) ProtoReq() string

ProtoReq name.

type PerformanceGetMetricsResult

1
2
3
4
type PerformanceGetMetricsResult struct {
	// Metrics Current values for run-time metrics.
	Metrics []*PerformanceMetric `json:"metrics"`
}

PerformanceGetMetricsResult …

type PerformanceMetric

1
2
3
4
5
6
7
type PerformanceMetric struct {
	// Name Metric name.
	Name string `json:"name"`

	// Value Metric value.
	Value float64 `json:"value"`
}

PerformanceMetric Run-time execution metric.

type PerformanceMetrics

1
2
3
4
5
6
7
type PerformanceMetrics struct {
	// Metrics Current values of the metrics.
	Metrics []*PerformanceMetric `json:"metrics"`

	// Title Timestamp title.
	Title string `json:"title"`
}

PerformanceMetrics Current values of the metrics.

(PerformanceMetrics) ProtoEvent <- 0.72.0

1
func (evt PerformanceMetrics) ProtoEvent() string

ProtoEvent name.

type PerformanceSetTimeDomain

1
2
3
4
type PerformanceSetTimeDomain struct {
	// TimeDomain Time domain
	TimeDomain PerformanceSetTimeDomainTimeDomain `json:"timeDomain"`
}

PerformanceSetTimeDomain (deprecated) (experimental) Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.

(PerformanceSetTimeDomain) Call

1
func (m PerformanceSetTimeDomain) Call(c Client) error

Call sends the request.

(PerformanceSetTimeDomain) ProtoReq <- 0.74.0

1
func (m PerformanceSetTimeDomain) ProtoReq() string

ProtoReq name.

type PerformanceSetTimeDomainTimeDomain

1
type PerformanceSetTimeDomainTimeDomain string

PerformanceSetTimeDomainTimeDomain enum.

1
2
3
4
5
6
7
const (
	// PerformanceSetTimeDomainTimeDomainTimeTicks enum const.
	PerformanceSetTimeDomainTimeDomainTimeTicks PerformanceSetTimeDomainTimeDomain = "timeTicks"

	// PerformanceSetTimeDomainTimeDomainThreadTicks enum const.
	PerformanceSetTimeDomainTimeDomainThreadTicks PerformanceSetTimeDomainTimeDomain = "threadTicks"
)

type PerformanceTimelineEnable <- 0.90.0

1
2
3
4
5
6
7
8
type PerformanceTimelineEnable struct {
	// EventTypes The types of event to report, as specified in
	// https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype
	// The specified filter overrides any previous filters, passing empty
	// filter disables recording.
	// Note that not all types exposed to the web platform are currently supported.
	EventTypes []string `json:"eventTypes"`
}

PerformanceTimelineEnable Previously buffered events would be reported before method returns. See also: timelineEventAdded.

(PerformanceTimelineEnable) Call <- 0.90.0

1
func (m PerformanceTimelineEnable) Call(c Client) error

Call sends the request.

(PerformanceTimelineEnable) ProtoReq <- 0.90.0

1
func (m PerformanceTimelineEnable) ProtoReq() string

ProtoReq name.

type PerformanceTimelineLargestContentfulPaint <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type PerformanceTimelineLargestContentfulPaint struct {
	// RenderTime ...
	RenderTime TimeSinceEpoch `json:"renderTime"`

	// LoadTime ...
	LoadTime TimeSinceEpoch `json:"loadTime"`

	// Size The number of pixels being painted.
	Size float64 `json:"size"`

	// ElementID (optional) The id attribute of the element, if available.
	ElementID string `json:"elementId,omitempty"`

	// URL (optional) The URL of the image (may be trimmed).
	URL string `json:"url,omitempty"`

	// NodeID (optional) ...
	NodeID DOMBackendNodeID `json:"nodeId,omitempty"`
}

PerformanceTimelineLargestContentfulPaint See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl.

type PerformanceTimelineLayoutShift <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PerformanceTimelineLayoutShift struct {
	// Value Score increment produced by this event.
	Value float64 `json:"value"`

	// HadRecentInput ...
	HadRecentInput bool `json:"hadRecentInput"`

	// LastInputTime ...
	LastInputTime TimeSinceEpoch `json:"lastInputTime"`

	// Sources ...
	Sources []*PerformanceTimelineLayoutShiftAttribution `json:"sources"`
}

PerformanceTimelineLayoutShift See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl.

type PerformanceTimelineLayoutShiftAttribution <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PerformanceTimelineLayoutShiftAttribution struct {
	// PreviousRect ...
	PreviousRect *DOMRect `json:"previousRect"`

	// CurrentRect ...
	CurrentRect *DOMRect `json:"currentRect"`

	// NodeID (optional) ...
	NodeID DOMBackendNodeID `json:"nodeId,omitempty"`
}

PerformanceTimelineLayoutShiftAttribution …

type PerformanceTimelineTimelineEvent <- 0.90.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type PerformanceTimelineTimelineEvent struct {
	// FrameID Identifies the frame that this event is related to. Empty for non-frame targets.
	FrameID PageFrameID `json:"frameId"`

	// Type The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype
	// This determines which of the optional "details" fields is present.
	Type string `json:"type"`

	// Name may be empty depending on the type.
	Name string `json:"name"`

	// Time in seconds since Epoch, monotonically increasing within document lifetime.
	Time TimeSinceEpoch `json:"time"`

	// Duration (optional) Event duration, if applicable.
	Duration *float64 `json:"duration,omitempty"`

	// LcpDetails (optional) ...
	LcpDetails *PerformanceTimelineLargestContentfulPaint `json:"lcpDetails,omitempty"`

	// LayoutShiftDetails (optional) ...
	LayoutShiftDetails *PerformanceTimelineLayoutShift `json:"layoutShiftDetails,omitempty"`
}

PerformanceTimelineTimelineEvent …

type PerformanceTimelineTimelineEventAdded <- 0.90.0

1
2
3
4
type PerformanceTimelineTimelineEventAdded struct {
	// Event ...
	Event *PerformanceTimelineTimelineEvent `json:"event"`
}

PerformanceTimelineTimelineEventAdded Sent when a performance timeline event is added. See reportPerformanceTimeline method.

(PerformanceTimelineTimelineEventAdded) ProtoEvent <- 0.90.0

1
func (evt PerformanceTimelineTimelineEventAdded) ProtoEvent() string

ProtoEvent name.

type Point <- 0.66.0

1
2
3
4
type Point struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

Point from the origin (0, 0).

func NewPoint <- 0.112.0

1
func NewPoint(x, y float64) Point

NewPoint instance.

(Point) Add <- 0.112.0

1
func (p Point) Add(v Point) Point

Add v to p and returns a new Point.

(Point) Minus <- 0.112.0

1
func (p Point) Minus(v Point) Point

Minus v from p and returns a new Point.

(Point) Scale <- 0.112.0

1
func (p Point) Scale(s float64) Point

Scale p with s and returns a new Point.

type PreloadDisable <- 0.112.9

1
type PreloadDisable struct{}

PreloadDisable …

(PreloadDisable) Call <- 0.112.9

1
func (m PreloadDisable) Call(c Client) error

Call sends the request.

(PreloadDisable) ProtoReq <- 0.112.9

1
func (m PreloadDisable) ProtoReq() string

ProtoReq name.

type PreloadEnable <- 0.112.9

1
type PreloadEnable struct{}

PreloadEnable …

(PreloadEnable) Call <- 0.112.9

1
func (m PreloadEnable) Call(c Client) error

Call sends the request.

(PreloadEnable) ProtoReq <- 0.112.9

1
func (m PreloadEnable) ProtoReq() string

ProtoReq name.

type PreloadPrefetchStatus <- 0.115.0

1
type PreloadPrefetchStatus string

PreloadPrefetchStatus TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and filter out the ones that aren’t necessary to the developers.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
const (
	// PreloadPrefetchStatusPrefetchAllowed enum const.
	PreloadPrefetchStatusPrefetchAllowed PreloadPrefetchStatus = "PrefetchAllowed"

	// PreloadPrefetchStatusPrefetchFailedIneligibleRedirect enum const.
	PreloadPrefetchStatusPrefetchFailedIneligibleRedirect PreloadPrefetchStatus = "PrefetchFailedIneligibleRedirect"

	// PreloadPrefetchStatusPrefetchFailedInvalidRedirect enum const.
	PreloadPrefetchStatusPrefetchFailedInvalidRedirect PreloadPrefetchStatus = "PrefetchFailedInvalidRedirect"

	// PreloadPrefetchStatusPrefetchFailedMIMENotSupported enum const.
	PreloadPrefetchStatusPrefetchFailedMIMENotSupported PreloadPrefetchStatus = "PrefetchFailedMIMENotSupported"

	// PreloadPrefetchStatusPrefetchFailedNetError enum const.
	PreloadPrefetchStatusPrefetchFailedNetError PreloadPrefetchStatus = "PrefetchFailedNetError"

	// PreloadPrefetchStatusPrefetchFailedNon2XX enum const.
	PreloadPrefetchStatusPrefetchFailedNon2XX PreloadPrefetchStatus = "PrefetchFailedNon2XX"

	// PreloadPrefetchStatusPrefetchFailedPerPageLimitExceeded enum const.
	PreloadPrefetchStatusPrefetchFailedPerPageLimitExceeded PreloadPrefetchStatus = "PrefetchFailedPerPageLimitExceeded"

	// PreloadPrefetchStatusPrefetchEvictedAfterCandidateRemoved enum const.
	PreloadPrefetchStatusPrefetchEvictedAfterCandidateRemoved PreloadPrefetchStatus = "PrefetchEvictedAfterCandidateRemoved"

	// PreloadPrefetchStatusPrefetchEvictedForNewerPrefetch enum const.
	PreloadPrefetchStatusPrefetchEvictedForNewerPrefetch PreloadPrefetchStatus = "PrefetchEvictedForNewerPrefetch"

	// PreloadPrefetchStatusPrefetchHeldback enum const.
	PreloadPrefetchStatusPrefetchHeldback PreloadPrefetchStatus = "PrefetchHeldback"

	// PreloadPrefetchStatusPrefetchIneligibleRetryAfter enum const.
	PreloadPrefetchStatusPrefetchIneligibleRetryAfter PreloadPrefetchStatus = "PrefetchIneligibleRetryAfter"

	// PreloadPrefetchStatusPrefetchIsPrivacyDecoy enum const.
	PreloadPrefetchStatusPrefetchIsPrivacyDecoy PreloadPrefetchStatus = "PrefetchIsPrivacyDecoy"

	// PreloadPrefetchStatusPrefetchIsStale enum const.
	PreloadPrefetchStatusPrefetchIsStale PreloadPrefetchStatus = "PrefetchIsStale"

	// PreloadPrefetchStatusPrefetchNotEligibleBrowserContextOffTheRecord enum const.
	PreloadPrefetchStatusPrefetchNotEligibleBrowserContextOffTheRecord PreloadPrefetchStatus = "PrefetchNotEligibleBrowserContextOffTheRecord"

	// PreloadPrefetchStatusPrefetchNotEligibleDataSaverEnabled enum const.
	PreloadPrefetchStatusPrefetchNotEligibleDataSaverEnabled PreloadPrefetchStatus = "PrefetchNotEligibleDataSaverEnabled"

	// PreloadPrefetchStatusPrefetchNotEligibleExistingProxy enum const.
	PreloadPrefetchStatusPrefetchNotEligibleExistingProxy PreloadPrefetchStatus = "PrefetchNotEligibleExistingProxy"

	// PreloadPrefetchStatusPrefetchNotEligibleHostIsNonUnique enum const.
	PreloadPrefetchStatusPrefetchNotEligibleHostIsNonUnique PreloadPrefetchStatus = "PrefetchNotEligibleHostIsNonUnique"

	// PreloadPrefetchStatusPrefetchNotEligibleNonDefaultStoragePartition enum const.
	PreloadPrefetchStatusPrefetchNotEligibleNonDefaultStoragePartition PreloadPrefetchStatus = "PrefetchNotEligibleNonDefaultStoragePartition"

	// PreloadPrefetchStatusPrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy enum const.
	PreloadPrefetchStatusPrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy PreloadPrefetchStatus = "PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy"

	// PreloadPrefetchStatusPrefetchNotEligibleSchemeIsNotHTTPS enum const.
	PreloadPrefetchStatusPrefetchNotEligibleSchemeIsNotHTTPS PreloadPrefetchStatus = "PrefetchNotEligibleSchemeIsNotHttps"

	// PreloadPrefetchStatusPrefetchNotEligibleUserHasCookies enum const.
	PreloadPrefetchStatusPrefetchNotEligibleUserHasCookies PreloadPrefetchStatus = "PrefetchNotEligibleUserHasCookies"

	// PreloadPrefetchStatusPrefetchNotEligibleUserHasServiceWorker enum const.
	PreloadPrefetchStatusPrefetchNotEligibleUserHasServiceWorker PreloadPrefetchStatus = "PrefetchNotEligibleUserHasServiceWorker"

	// PreloadPrefetchStatusPrefetchNotEligibleBatterySaverEnabled enum const.
	PreloadPrefetchStatusPrefetchNotEligibleBatterySaverEnabled PreloadPrefetchStatus = "PrefetchNotEligibleBatterySaverEnabled"

	// PreloadPrefetchStatusPrefetchNotEligiblePreloadingDisabled enum const.
	PreloadPrefetchStatusPrefetchNotEligiblePreloadingDisabled PreloadPrefetchStatus = "PrefetchNotEligiblePreloadingDisabled"

	// PreloadPrefetchStatusPrefetchNotFinishedInTime enum const.
	PreloadPrefetchStatusPrefetchNotFinishedInTime PreloadPrefetchStatus = "PrefetchNotFinishedInTime"

	// PreloadPrefetchStatusPrefetchNotStarted enum const.
	PreloadPrefetchStatusPrefetchNotStarted PreloadPrefetchStatus = "PrefetchNotStarted"

	// PreloadPrefetchStatusPrefetchNotUsedCookiesChanged enum const.
	PreloadPrefetchStatusPrefetchNotUsedCookiesChanged PreloadPrefetchStatus = "PrefetchNotUsedCookiesChanged"

	// PreloadPrefetchStatusPrefetchProxyNotAvailable enum const.
	PreloadPrefetchStatusPrefetchProxyNotAvailable PreloadPrefetchStatus = "PrefetchProxyNotAvailable"

	// PreloadPrefetchStatusPrefetchResponseUsed enum const.
	PreloadPrefetchStatusPrefetchResponseUsed PreloadPrefetchStatus = "PrefetchResponseUsed"

	// PreloadPrefetchStatusPrefetchSuccessfulButNotUsed enum const.
	PreloadPrefetchStatusPrefetchSuccessfulButNotUsed PreloadPrefetchStatus = "PrefetchSuccessfulButNotUsed"

	// PreloadPrefetchStatusPrefetchNotUsedProbeFailed enum const.
	PreloadPrefetchStatusPrefetchNotUsedProbeFailed PreloadPrefetchStatus = "PrefetchNotUsedProbeFailed"
)

type PreloadPrefetchStatusUpdated <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type PreloadPrefetchStatusUpdated struct {
	// Key ...
	Key *PreloadPreloadingAttemptKey `json:"key"`

	// InitiatingFrameID The frame id of the frame initiating prefetch.
	InitiatingFrameID PageFrameID `json:"initiatingFrameId"`

	// PrefetchURL ...
	PrefetchURL string `json:"prefetchUrl"`

	// Status ...
	Status PreloadPreloadingStatus `json:"status"`

	// PrefetchStatus ...
	PrefetchStatus PreloadPrefetchStatus `json:"prefetchStatus"`

	// RequestID ...
	RequestID NetworkRequestID `json:"requestId"`
}

PreloadPrefetchStatusUpdated Fired when a prefetch attempt is updated.

(PreloadPrefetchStatusUpdated) ProtoEvent <- 0.112.9

1
func (evt PreloadPrefetchStatusUpdated) ProtoEvent() string

ProtoEvent name.

type PreloadPreloadEnabledStateUpdated <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type PreloadPreloadEnabledStateUpdated struct {
	// DisabledByPreference ...
	DisabledByPreference bool `json:"disabledByPreference"`

	// DisabledByDataSaver ...
	DisabledByDataSaver bool `json:"disabledByDataSaver"`

	// DisabledByBatterySaver ...
	DisabledByBatterySaver bool `json:"disabledByBatterySaver"`

	// DisabledByHoldbackPrefetchSpeculationRules ...
	DisabledByHoldbackPrefetchSpeculationRules bool `json:"disabledByHoldbackPrefetchSpeculationRules"`

	// DisabledByHoldbackPrerenderSpeculationRules ...
	DisabledByHoldbackPrerenderSpeculationRules bool `json:"disabledByHoldbackPrerenderSpeculationRules"`
}

PreloadPreloadEnabledStateUpdated Fired when a preload enabled state is updated.

(PreloadPreloadEnabledStateUpdated) ProtoEvent <- 0.115.0

1
func (evt PreloadPreloadEnabledStateUpdated) ProtoEvent() string

ProtoEvent name.

type PreloadPreloadingAttemptKey <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type PreloadPreloadingAttemptKey struct {
	// LoaderID ...
	LoaderID NetworkLoaderID `json:"loaderId"`

	// Action ...
	Action PreloadSpeculationAction `json:"action"`

	// URL ...
	URL string `json:"url"`

	// TargetHint (optional) ...
	TargetHint PreloadSpeculationTargetHint `json:"targetHint,omitempty"`
}

PreloadPreloadingAttemptKey A key that identifies a preloading attempt.

The url used is the url specified by the trigger (i.e. the initial URL), and not the final url that is navigated to. For example, prerendering allows same-origin main frame navigations during the attempt, but the attempt is still keyed with the initial URL.

type PreloadPreloadingAttemptSource <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PreloadPreloadingAttemptSource struct {
	// Key ...
	Key *PreloadPreloadingAttemptKey `json:"key"`

	// RuleSetIDs ...
	RuleSetIDs []PreloadRuleSetID `json:"ruleSetIds"`

	// NodeIDs ...
	NodeIDs []DOMBackendNodeID `json:"nodeIds"`
}

PreloadPreloadingAttemptSource Lists sources for a preloading attempt, specifically the ids of rule sets that had a speculation rule that triggered the attempt, and the BackendNodeIds of or elements that triggered the attempt (in the case of attempts triggered by a document rule). It is possible for multiple rule sets and links to trigger a single attempt.

type PreloadPreloadingAttemptSourcesUpdated <- 0.112.9

1
2
3
4
5
6
7
type PreloadPreloadingAttemptSourcesUpdated struct {
	// LoaderID ...
	LoaderID NetworkLoaderID `json:"loaderId"`

	// PreloadingAttemptSources ...
	PreloadingAttemptSources []*PreloadPreloadingAttemptSource `json:"preloadingAttemptSources"`
}

PreloadPreloadingAttemptSourcesUpdated Send a list of sources for all preloading attempts in a document.

(PreloadPreloadingAttemptSourcesUpdated) ProtoEvent <- 0.112.9

1
func (evt PreloadPreloadingAttemptSourcesUpdated) ProtoEvent() string

ProtoEvent name.

type PreloadPreloadingStatus <- 0.112.9

1
type PreloadPreloadingStatus string

PreloadPreloadingStatus Preloading status values, see also PreloadingTriggeringOutcome. This status is shared by prefetchStatusUpdated and prerenderStatusUpdated.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// PreloadPreloadingStatusPending enum const.
	PreloadPreloadingStatusPending PreloadPreloadingStatus = "Pending"

	// PreloadPreloadingStatusRunning enum const.
	PreloadPreloadingStatusRunning PreloadPreloadingStatus = "Running"

	// PreloadPreloadingStatusReady enum const.
	PreloadPreloadingStatusReady PreloadPreloadingStatus = "Ready"

	// PreloadPreloadingStatusSuccess enum const.
	PreloadPreloadingStatusSuccess PreloadPreloadingStatus = "Success"

	// PreloadPreloadingStatusFailure enum const.
	PreloadPreloadingStatusFailure PreloadPreloadingStatus = "Failure"

	// PreloadPreloadingStatusNotSupported enum const.
	PreloadPreloadingStatusNotSupported PreloadPreloadingStatus = "NotSupported"
)

type PreloadPrerenderFinalStatus <- 0.112.9

1
type PreloadPrerenderFinalStatus string

PreloadPrerenderFinalStatus List of FinalStatus reasons for Prerender2.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
const (
	// PreloadPrerenderFinalStatusActivated enum const.
	PreloadPrerenderFinalStatusActivated PreloadPrerenderFinalStatus = "Activated"

	// PreloadPrerenderFinalStatusDestroyed enum const.
	PreloadPrerenderFinalStatusDestroyed PreloadPrerenderFinalStatus = "Destroyed"

	// PreloadPrerenderFinalStatusLowEndDevice enum const.
	PreloadPrerenderFinalStatusLowEndDevice PreloadPrerenderFinalStatus = "LowEndDevice"

	// PreloadPrerenderFinalStatusInvalidSchemeRedirect enum const.
	PreloadPrerenderFinalStatusInvalidSchemeRedirect PreloadPrerenderFinalStatus = "InvalidSchemeRedirect"

	// PreloadPrerenderFinalStatusInvalidSchemeNavigation enum const.
	PreloadPrerenderFinalStatusInvalidSchemeNavigation PreloadPrerenderFinalStatus = "InvalidSchemeNavigation"

	// PreloadPrerenderFinalStatusNavigationRequestBlockedByCsp enum const.
	PreloadPrerenderFinalStatusNavigationRequestBlockedByCsp PreloadPrerenderFinalStatus = "NavigationRequestBlockedByCsp"

	// PreloadPrerenderFinalStatusMainFrameNavigation enum const.
	PreloadPrerenderFinalStatusMainFrameNavigation PreloadPrerenderFinalStatus = "MainFrameNavigation"

	// PreloadPrerenderFinalStatusMojoBinderPolicy enum const.
	PreloadPrerenderFinalStatusMojoBinderPolicy PreloadPrerenderFinalStatus = "MojoBinderPolicy"

	// PreloadPrerenderFinalStatusRendererProcessCrashed enum const.
	PreloadPrerenderFinalStatusRendererProcessCrashed PreloadPrerenderFinalStatus = "RendererProcessCrashed"

	// PreloadPrerenderFinalStatusRendererProcessKilled enum const.
	PreloadPrerenderFinalStatusRendererProcessKilled PreloadPrerenderFinalStatus = "RendererProcessKilled"

	// PreloadPrerenderFinalStatusDownload enum const.
	PreloadPrerenderFinalStatusDownload PreloadPrerenderFinalStatus = "Download"

	// PreloadPrerenderFinalStatusTriggerDestroyed enum const.
	PreloadPrerenderFinalStatusTriggerDestroyed PreloadPrerenderFinalStatus = "TriggerDestroyed"

	// PreloadPrerenderFinalStatusNavigationNotCommitted enum const.
	PreloadPrerenderFinalStatusNavigationNotCommitted PreloadPrerenderFinalStatus = "NavigationNotCommitted"

	// PreloadPrerenderFinalStatusNavigationBadHTTPStatus enum const.
	PreloadPrerenderFinalStatusNavigationBadHTTPStatus PreloadPrerenderFinalStatus = "NavigationBadHttpStatus"

	// PreloadPrerenderFinalStatusClientCertRequested enum const.
	PreloadPrerenderFinalStatusClientCertRequested PreloadPrerenderFinalStatus = "ClientCertRequested"

	// PreloadPrerenderFinalStatusNavigationRequestNetworkError enum const.
	PreloadPrerenderFinalStatusNavigationRequestNetworkError PreloadPrerenderFinalStatus = "NavigationRequestNetworkError"

	// PreloadPrerenderFinalStatusCancelAllHostsForTesting enum const.
	PreloadPrerenderFinalStatusCancelAllHostsForTesting PreloadPrerenderFinalStatus = "CancelAllHostsForTesting"

	// PreloadPrerenderFinalStatusDidFailLoad enum const.
	PreloadPrerenderFinalStatusDidFailLoad PreloadPrerenderFinalStatus = "DidFailLoad"

	// PreloadPrerenderFinalStatusStop enum const.
	PreloadPrerenderFinalStatusStop PreloadPrerenderFinalStatus = "Stop"

	// PreloadPrerenderFinalStatusSslCertificateError enum const.
	PreloadPrerenderFinalStatusSslCertificateError PreloadPrerenderFinalStatus = "SslCertificateError"

	// PreloadPrerenderFinalStatusLoginAuthRequested enum const.
	PreloadPrerenderFinalStatusLoginAuthRequested PreloadPrerenderFinalStatus = "LoginAuthRequested"

	// PreloadPrerenderFinalStatusUaChangeRequiresReload enum const.
	PreloadPrerenderFinalStatusUaChangeRequiresReload PreloadPrerenderFinalStatus = "UaChangeRequiresReload"

	// PreloadPrerenderFinalStatusBlockedByClient enum const.
	PreloadPrerenderFinalStatusBlockedByClient PreloadPrerenderFinalStatus = "BlockedByClient"

	// PreloadPrerenderFinalStatusAudioOutputDeviceRequested enum const.
	PreloadPrerenderFinalStatusAudioOutputDeviceRequested PreloadPrerenderFinalStatus = "AudioOutputDeviceRequested"

	// PreloadPrerenderFinalStatusMixedContent enum const.
	PreloadPrerenderFinalStatusMixedContent PreloadPrerenderFinalStatus = "MixedContent"

	// PreloadPrerenderFinalStatusTriggerBackgrounded enum const.
	PreloadPrerenderFinalStatusTriggerBackgrounded PreloadPrerenderFinalStatus = "TriggerBackgrounded"

	// PreloadPrerenderFinalStatusMemoryLimitExceeded enum const.
	PreloadPrerenderFinalStatusMemoryLimitExceeded PreloadPrerenderFinalStatus = "MemoryLimitExceeded"

	// PreloadPrerenderFinalStatusDataSaverEnabled enum const.
	PreloadPrerenderFinalStatusDataSaverEnabled PreloadPrerenderFinalStatus = "DataSaverEnabled"

	// PreloadPrerenderFinalStatusTriggerURLHasEffectiveURL enum const.
	PreloadPrerenderFinalStatusTriggerURLHasEffectiveURL PreloadPrerenderFinalStatus = "TriggerUrlHasEffectiveUrl"

	// PreloadPrerenderFinalStatusActivatedBeforeStarted enum const.
	PreloadPrerenderFinalStatusActivatedBeforeStarted PreloadPrerenderFinalStatus = "ActivatedBeforeStarted"

	// PreloadPrerenderFinalStatusInactivePageRestriction enum const.
	PreloadPrerenderFinalStatusInactivePageRestriction PreloadPrerenderFinalStatus = "InactivePageRestriction"

	// PreloadPrerenderFinalStatusStartFailed enum const.
	PreloadPrerenderFinalStatusStartFailed PreloadPrerenderFinalStatus = "StartFailed"

	// PreloadPrerenderFinalStatusTimeoutBackgrounded enum const.
	PreloadPrerenderFinalStatusTimeoutBackgrounded PreloadPrerenderFinalStatus = "TimeoutBackgrounded"

	// PreloadPrerenderFinalStatusCrossSiteRedirectInInitialNavigation enum const.
	PreloadPrerenderFinalStatusCrossSiteRedirectInInitialNavigation PreloadPrerenderFinalStatus = "CrossSiteRedirectInInitialNavigation"

	// PreloadPrerenderFinalStatusCrossSiteNavigationInInitialNavigation enum const.
	PreloadPrerenderFinalStatusCrossSiteNavigationInInitialNavigation PreloadPrerenderFinalStatus = "CrossSiteNavigationInInitialNavigation"

	// PreloadPrerenderFinalStatusSameSiteCrossOriginRedirectNotOptInInInitialNavigation enum const.
	PreloadPrerenderFinalStatusSameSiteCrossOriginRedirectNotOptInInInitialNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginRedirectNotOptInInInitialNavigation"

	// PreloadPrerenderFinalStatusSameSiteCrossOriginNavigationNotOptInInInitialNavigation enum const.
	PreloadPrerenderFinalStatusSameSiteCrossOriginNavigationNotOptInInInitialNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginNavigationNotOptInInInitialNavigation"

	// PreloadPrerenderFinalStatusActivationNavigationParameterMismatch enum const.
	PreloadPrerenderFinalStatusActivationNavigationParameterMismatch PreloadPrerenderFinalStatus = "ActivationNavigationParameterMismatch"

	// PreloadPrerenderFinalStatusActivatedInBackground enum const.
	PreloadPrerenderFinalStatusActivatedInBackground PreloadPrerenderFinalStatus = "ActivatedInBackground"

	// PreloadPrerenderFinalStatusEmbedderHostDisallowed enum const.
	PreloadPrerenderFinalStatusEmbedderHostDisallowed PreloadPrerenderFinalStatus = "EmbedderHostDisallowed"

	// PreloadPrerenderFinalStatusActivationNavigationDestroyedBeforeSuccess enum const.
	PreloadPrerenderFinalStatusActivationNavigationDestroyedBeforeSuccess PreloadPrerenderFinalStatus = "ActivationNavigationDestroyedBeforeSuccess"

	// PreloadPrerenderFinalStatusTabClosedByUserGesture enum const.
	PreloadPrerenderFinalStatusTabClosedByUserGesture PreloadPrerenderFinalStatus = "TabClosedByUserGesture"

	// PreloadPrerenderFinalStatusTabClosedWithoutUserGesture enum const.
	PreloadPrerenderFinalStatusTabClosedWithoutUserGesture PreloadPrerenderFinalStatus = "TabClosedWithoutUserGesture"

	// PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessCrashed enum const.
	PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessCrashed PreloadPrerenderFinalStatus = "PrimaryMainFrameRendererProcessCrashed"

	// PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessKilled enum const.
	PreloadPrerenderFinalStatusPrimaryMainFrameRendererProcessKilled PreloadPrerenderFinalStatus = "PrimaryMainFrameRendererProcessKilled"

	// PreloadPrerenderFinalStatusActivationFramePolicyNotCompatible enum const.
	PreloadPrerenderFinalStatusActivationFramePolicyNotCompatible PreloadPrerenderFinalStatus = "ActivationFramePolicyNotCompatible"

	// PreloadPrerenderFinalStatusPreloadingDisabled enum const.
	PreloadPrerenderFinalStatusPreloadingDisabled PreloadPrerenderFinalStatus = "PreloadingDisabled"

	// PreloadPrerenderFinalStatusBatterySaverEnabled enum const.
	PreloadPrerenderFinalStatusBatterySaverEnabled PreloadPrerenderFinalStatus = "BatterySaverEnabled"

	// PreloadPrerenderFinalStatusActivatedDuringMainFrameNavigation enum const.
	PreloadPrerenderFinalStatusActivatedDuringMainFrameNavigation PreloadPrerenderFinalStatus = "ActivatedDuringMainFrameNavigation"

	// PreloadPrerenderFinalStatusPreloadingUnsupportedByWebContents enum const.
	PreloadPrerenderFinalStatusPreloadingUnsupportedByWebContents PreloadPrerenderFinalStatus = "PreloadingUnsupportedByWebContents"

	// PreloadPrerenderFinalStatusCrossSiteRedirectInMainFrameNavigation enum const.
	PreloadPrerenderFinalStatusCrossSiteRedirectInMainFrameNavigation PreloadPrerenderFinalStatus = "CrossSiteRedirectInMainFrameNavigation"

	// PreloadPrerenderFinalStatusCrossSiteNavigationInMainFrameNavigation enum const.
	PreloadPrerenderFinalStatusCrossSiteNavigationInMainFrameNavigation PreloadPrerenderFinalStatus = "CrossSiteNavigationInMainFrameNavigation"

	// PreloadPrerenderFinalStatusSameSiteCrossOriginRedirectNotOptInInMainFrameNavigation enum const.
	PreloadPrerenderFinalStatusSameSiteCrossOriginRedirectNotOptInInMainFrameNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation"

	// PreloadPrerenderFinalStatusSameSiteCrossOriginNavigationNotOptInInMainFrameNavigation enum const.
	PreloadPrerenderFinalStatusSameSiteCrossOriginNavigationNotOptInInMainFrameNavigation PreloadPrerenderFinalStatus = "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation"

	// PreloadPrerenderFinalStatusMemoryPressureOnTrigger enum const.
	PreloadPrerenderFinalStatusMemoryPressureOnTrigger PreloadPrerenderFinalStatus = "MemoryPressureOnTrigger"

	// PreloadPrerenderFinalStatusMemoryPressureAfterTriggered enum const.
	PreloadPrerenderFinalStatusMemoryPressureAfterTriggered PreloadPrerenderFinalStatus = "MemoryPressureAfterTriggered"

	// PreloadPrerenderFinalStatusPrerenderingDisabledByDevTools enum const.
	PreloadPrerenderFinalStatusPrerenderingDisabledByDevTools PreloadPrerenderFinalStatus = "PrerenderingDisabledByDevTools"

	// PreloadPrerenderFinalStatusSpeculationRuleRemoved enum const.
	PreloadPrerenderFinalStatusSpeculationRuleRemoved PreloadPrerenderFinalStatus = "SpeculationRuleRemoved"

	// PreloadPrerenderFinalStatusActivatedWithAuxiliaryBrowsingContexts enum const.
	PreloadPrerenderFinalStatusActivatedWithAuxiliaryBrowsingContexts PreloadPrerenderFinalStatus = "ActivatedWithAuxiliaryBrowsingContexts"

	// PreloadPrerenderFinalStatusMaxNumOfRunningEagerPrerendersExceeded enum const.
	PreloadPrerenderFinalStatusMaxNumOfRunningEagerPrerendersExceeded PreloadPrerenderFinalStatus = "MaxNumOfRunningEagerPrerendersExceeded"

	// PreloadPrerenderFinalStatusMaxNumOfRunningNonEagerPrerendersExceeded enum const.
	PreloadPrerenderFinalStatusMaxNumOfRunningNonEagerPrerendersExceeded PreloadPrerenderFinalStatus = "MaxNumOfRunningNonEagerPrerendersExceeded"

	// PreloadPrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded enum const.
	PreloadPrerenderFinalStatusMaxNumOfRunningEmbedderPrerendersExceeded PreloadPrerenderFinalStatus = "MaxNumOfRunningEmbedderPrerendersExceeded"

	// PreloadPrerenderFinalStatusPrerenderingURLHasEffectiveURL enum const.
	PreloadPrerenderFinalStatusPrerenderingURLHasEffectiveURL PreloadPrerenderFinalStatus = "PrerenderingUrlHasEffectiveUrl"

	// PreloadPrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL enum const.
	PreloadPrerenderFinalStatusRedirectedPrerenderingURLHasEffectiveURL PreloadPrerenderFinalStatus = "RedirectedPrerenderingUrlHasEffectiveUrl"

	// PreloadPrerenderFinalStatusActivationURLHasEffectiveURL enum const.
	PreloadPrerenderFinalStatusActivationURLHasEffectiveURL PreloadPrerenderFinalStatus = "ActivationUrlHasEffectiveUrl"

	// PreloadPrerenderFinalStatusJavaScriptInterfaceAdded enum const.
	PreloadPrerenderFinalStatusJavaScriptInterfaceAdded PreloadPrerenderFinalStatus = "JavaScriptInterfaceAdded"

	// PreloadPrerenderFinalStatusJavaScriptInterfaceRemoved enum const.
	PreloadPrerenderFinalStatusJavaScriptInterfaceRemoved PreloadPrerenderFinalStatus = "JavaScriptInterfaceRemoved"

	// PreloadPrerenderFinalStatusAllPrerenderingCanceled enum const.
	PreloadPrerenderFinalStatusAllPrerenderingCanceled PreloadPrerenderFinalStatus = "AllPrerenderingCanceled"
)

type PreloadPrerenderMismatchedHeaders <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type PreloadPrerenderMismatchedHeaders struct {
	// HeaderName ...
	HeaderName string `json:"headerName"`

	// InitialValue (optional) ...
	InitialValue string `json:"initialValue,omitempty"`

	// ActivationValue (optional) ...
	ActivationValue string `json:"activationValue,omitempty"`
}

PreloadPrerenderMismatchedHeaders Information of headers to be displayed when the header mismatch occurred.

type PreloadPrerenderStatusUpdated <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type PreloadPrerenderStatusUpdated struct {
	// Key ...
	Key *PreloadPreloadingAttemptKey `json:"key"`

	// Status ...
	Status PreloadPreloadingStatus `json:"status"`

	// PrerenderStatus (optional) ...
	PrerenderStatus PreloadPrerenderFinalStatus `json:"prerenderStatus,omitempty"`

	// DisallowedMojoInterface (optional) This is used to give users more information about the name of Mojo interface
	// that is incompatible with prerender and has caused the cancellation of the attempt.
	DisallowedMojoInterface string `json:"disallowedMojoInterface,omitempty"`

	// MismatchedHeaders (optional) ...
	MismatchedHeaders []*PreloadPrerenderMismatchedHeaders `json:"mismatchedHeaders,omitempty"`
}

PreloadPrerenderStatusUpdated Fired when a prerender attempt is updated.

(PreloadPrerenderStatusUpdated) ProtoEvent <- 0.112.9

1
func (evt PreloadPrerenderStatusUpdated) ProtoEvent() string

ProtoEvent name.

type PreloadRuleSet <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
type PreloadRuleSet struct {
	// ID ...
	ID PreloadRuleSetID `json:"id"`

	// LoaderID Identifies a document which the rule set is associated with.
	LoaderID NetworkLoaderID `json:"loaderId"`

	// SourceText Source text of JSON representing the rule set. If it comes from
	// `<script>` tag, it is the textContent of the node. Note that it is
	// a JSON for valid case.
	//
	// See also:
	// - https://wicg.github.io/nav-speculation/speculation-rules.html
	// - https://github.com/WICG/nav-speculation/blob/main/triggers.md
	SourceText string `json:"sourceText"`

	// BackendNodeID (optional) A speculation rule set is either added through an inline
	// `<script>` tag or through an external resource via the
	// 'Speculation-Rules' HTTP header. For the first case, we include
	// the BackendNodeId of the relevant `<script>` tag. For the second
	// case, we include the external URL where the rule set was loaded
	// from, and also RequestId if Network domain is enabled.
	//
	// See also:
	// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script
	// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header
	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`

	// URL (optional) ...
	URL string `json:"url,omitempty"`

	// RequestID (optional) ...
	RequestID NetworkRequestID `json:"requestId,omitempty"`

	// ErrorType (optional) Error information
	// `errorMessage` is null iff `errorType` is null.
	ErrorType PreloadRuleSetErrorType `json:"errorType,omitempty"`

	// ErrorMessage (deprecated) (optional) TODO(https://crbug.com/1425354): Replace this property with structured error.
	ErrorMessage string `json:"errorMessage,omitempty"`
}

PreloadRuleSet Corresponds to SpeculationRuleSet.

type PreloadRuleSetErrorType <- 0.112.9

1
type PreloadRuleSetErrorType string

PreloadRuleSetErrorType …

1
2
3
4
5
6
7
const (
	// PreloadRuleSetErrorTypeSourceIsNotJSONObject enum const.
	PreloadRuleSetErrorTypeSourceIsNotJSONObject PreloadRuleSetErrorType = "SourceIsNotJsonObject"

	// PreloadRuleSetErrorTypeInvalidRulesSkipped enum const.
	PreloadRuleSetErrorTypeInvalidRulesSkipped PreloadRuleSetErrorType = "InvalidRulesSkipped"
)

type PreloadRuleSetID <- 0.112.9

1
type PreloadRuleSetID string

PreloadRuleSetID Unique id.

type PreloadRuleSetRemoved <- 0.112.9

1
2
3
4
type PreloadRuleSetRemoved struct {
	// ID ...
	ID PreloadRuleSetID `json:"id"`
}

PreloadRuleSetRemoved …

(PreloadRuleSetRemoved) ProtoEvent <- 0.112.9

1
func (evt PreloadRuleSetRemoved) ProtoEvent() string

ProtoEvent name.

type PreloadRuleSetUpdated <- 0.112.9

1
2
3
4
type PreloadRuleSetUpdated struct {
	// RuleSet ...
	RuleSet *PreloadRuleSet `json:"ruleSet"`
}

PreloadRuleSetUpdated Upsert. Currently, it is only emitted when a rule set added.

(PreloadRuleSetUpdated) ProtoEvent <- 0.112.9

1
func (evt PreloadRuleSetUpdated) ProtoEvent() string

ProtoEvent name.

type PreloadSpeculationAction <- 0.112.9

1
type PreloadSpeculationAction string

PreloadSpeculationAction The type of preloading attempted. It corresponds to mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it isn’t being used by clients).

1
2
3
4
5
6
7
const (
	// PreloadSpeculationActionPrefetch enum const.
	PreloadSpeculationActionPrefetch PreloadSpeculationAction = "Prefetch"

	// PreloadSpeculationActionPrerender enum const.
	PreloadSpeculationActionPrerender PreloadSpeculationAction = "Prerender"
)

type PreloadSpeculationTargetHint <- 0.112.9

1
type PreloadSpeculationTargetHint string

PreloadSpeculationTargetHint Corresponds to mojom::SpeculationTargetHint. See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints

1
2
3
4
5
6
7
const (
	// PreloadSpeculationTargetHintBlank enum const.
	PreloadSpeculationTargetHintBlank PreloadSpeculationTargetHint = "Blank"

	// PreloadSpeculationTargetHintSelf enum const.
	PreloadSpeculationTargetHintSelf PreloadSpeculationTargetHint = "Self"
)

type ProfilerConsoleProfileFinished

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type ProfilerConsoleProfileFinished struct {
	// ID ...
	ID string `json:"id"`

	// Location of console.profileEnd().
	Location *DebuggerLocation `json:"location"`

	// Profile ...
	Profile *ProfilerProfile `json:"profile"`

	// Title (optional) Profile title passed as an argument to console.profile().
	Title string `json:"title,omitempty"`
}

ProfilerConsoleProfileFinished …

(ProfilerConsoleProfileFinished) ProtoEvent <- 0.72.0

1
func (evt ProfilerConsoleProfileFinished) ProtoEvent() string

ProtoEvent name.

type ProfilerConsoleProfileStarted

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ProfilerConsoleProfileStarted struct {
	// ID ...
	ID string `json:"id"`

	// Location of console.profile().
	Location *DebuggerLocation `json:"location"`

	// Title (optional) Profile title passed as an argument to console.profile().
	Title string `json:"title,omitempty"`
}

ProfilerConsoleProfileStarted Sent when new profile recording is started using console.profile() call.

(ProfilerConsoleProfileStarted) ProtoEvent <- 0.72.0

1
func (evt ProfilerConsoleProfileStarted) ProtoEvent() string

ProtoEvent name.

type ProfilerCoverageRange

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ProfilerCoverageRange struct {
	// StartOffset JavaScript script source offset for the range start.
	StartOffset int `json:"startOffset"`

	// EndOffset JavaScript script source offset for the range end.
	EndOffset int `json:"endOffset"`

	// Count Collected execution count of the source range.
	Count int `json:"count"`
}

ProfilerCoverageRange Coverage data for a source range.

type ProfilerDisable

1
type ProfilerDisable struct{}

ProfilerDisable …

(ProfilerDisable) Call

1
func (m ProfilerDisable) Call(c Client) error

Call sends the request.

(ProfilerDisable) ProtoReq <- 0.74.0

1
func (m ProfilerDisable) ProtoReq() string

ProtoReq name.

type ProfilerEnable

1
type ProfilerEnable struct{}

ProfilerEnable …

(ProfilerEnable) Call

1
func (m ProfilerEnable) Call(c Client) error

Call sends the request.

(ProfilerEnable) ProtoReq <- 0.74.0

1
func (m ProfilerEnable) ProtoReq() string

ProtoReq name.

type ProfilerFunctionCoverage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ProfilerFunctionCoverage struct {
	// FunctionName JavaScript function name.
	FunctionName string `json:"functionName"`

	// Ranges Source ranges inside the function with coverage data.
	Ranges []*ProfilerCoverageRange `json:"ranges"`

	// IsBlockCoverage Whether coverage data for this function has block granularity.
	IsBlockCoverage bool `json:"isBlockCoverage"`
}

ProfilerFunctionCoverage Coverage data for a JavaScript function.

type ProfilerGetBestEffortCoverage

1
type ProfilerGetBestEffortCoverage struct{}

ProfilerGetBestEffortCoverage Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

(ProfilerGetBestEffortCoverage) Call

1
func (m ProfilerGetBestEffortCoverage) Call(c Client) (*ProfilerGetBestEffortCoverageResult, error)

Call the request.

(ProfilerGetBestEffortCoverage) ProtoReq <- 0.74.0

1
func (m ProfilerGetBestEffortCoverage) ProtoReq() string

ProtoReq name.

type ProfilerGetBestEffortCoverageResult

1
2
3
4
type ProfilerGetBestEffortCoverageResult struct {
	// Result Coverage data for the current isolate.
	Result []*ProfilerScriptCoverage `json:"result"`
}

ProfilerGetBestEffortCoverageResult …

type ProfilerPositionTickInfo

1
2
3
4
5
6
7
type ProfilerPositionTickInfo struct {
	// Line Source line number (1-based).
	Line int `json:"line"`

	// Ticks Number of samples attributed to the source line.
	Ticks int `json:"ticks"`
}

ProfilerPositionTickInfo Specifies a number of samples attributed to a certain source position.

type ProfilerPreciseCoverageDeltaUpdate

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ProfilerPreciseCoverageDeltaUpdate struct {
	// Timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
	Timestamp float64 `json:"timestamp"`

	// Occasion Identifier for distinguishing coverage events.
	Occasion string `json:"occasion"`

	// Result Coverage data for the current isolate.
	Result []*ProfilerScriptCoverage `json:"result"`
}

ProfilerPreciseCoverageDeltaUpdate (experimental) Reports coverage delta since the last poll (either from an event like this, or from takePreciseCoverage for the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time.

(ProfilerPreciseCoverageDeltaUpdate) ProtoEvent <- 0.72.0

1
func (evt ProfilerPreciseCoverageDeltaUpdate) ProtoEvent() string

ProtoEvent name.

type ProfilerProfile

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type ProfilerProfile struct {
	// Nodes The list of profile nodes. First item is the root node.
	Nodes []*ProfilerProfileNode `json:"nodes"`

	// StartTime Profiling start timestamp in microseconds.
	StartTime float64 `json:"startTime"`

	// EndTime Profiling end timestamp in microseconds.
	EndTime float64 `json:"endTime"`

	// Samples (optional) Ids of samples top nodes.
	Samples []int `json:"samples,omitempty"`

	// TimeDeltas (optional) Time intervals between adjacent samples in microseconds. The first delta is relative to the
	// profile startTime.
	TimeDeltas []int `json:"timeDeltas,omitempty"`
}

ProfilerProfile Profile.

type ProfilerProfileNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type ProfilerProfileNode struct {
	// ID Unique id of the node.
	ID int `json:"id"`

	// CallFrame Function location.
	CallFrame *RuntimeCallFrame `json:"callFrame"`

	// HitCount (optional) Number of samples where this node was on top of the call stack.
	HitCount *int `json:"hitCount,omitempty"`

	// Children (optional) Child node ids.
	Children []int `json:"children,omitempty"`

	// DeoptReason (optional) The reason of being not optimized. The function may be deoptimized or marked as don't
	// optimize.
	DeoptReason string `json:"deoptReason,omitempty"`

	// PositionTicks (optional) An array of source position ticks.
	PositionTicks []*ProfilerPositionTickInfo `json:"positionTicks,omitempty"`
}

ProfilerProfileNode Profile node. Holds callsite information, execution statistics and child nodes.

type ProfilerScriptCoverage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ProfilerScriptCoverage struct {
	// ScriptID JavaScript script id.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// URL JavaScript script name or url.
	URL string `json:"url"`

	// Functions contained in the script that has coverage data.
	Functions []*ProfilerFunctionCoverage `json:"functions"`
}

ProfilerScriptCoverage Coverage data for a JavaScript script.

type ProfilerSetSamplingInterval

1
2
3
4
type ProfilerSetSamplingInterval struct {
	// Interval New sampling interval in microseconds.
	Interval int `json:"interval"`
}

ProfilerSetSamplingInterval Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

(ProfilerSetSamplingInterval) Call

1
func (m ProfilerSetSamplingInterval) Call(c Client) error

Call sends the request.

(ProfilerSetSamplingInterval) ProtoReq <- 0.74.0

1
func (m ProfilerSetSamplingInterval) ProtoReq() string

ProtoReq name.

type ProfilerStart

1
type ProfilerStart struct{}

ProfilerStart …

(ProfilerStart) Call

1
func (m ProfilerStart) Call(c Client) error

Call sends the request.

(ProfilerStart) ProtoReq <- 0.74.0

1
func (m ProfilerStart) ProtoReq() string

ProtoReq name.

type ProfilerStartPreciseCoverage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ProfilerStartPreciseCoverage struct {
	// CallCount (optional) Collect accurate call counts beyond simple 'covered' or 'not covered'.
	CallCount bool `json:"callCount,omitempty"`

	// Detailed (optional) Collect block-based coverage.
	Detailed bool `json:"detailed,omitempty"`

	// AllowTriggeredUpdates (optional) Allow the backend to send updates on its own initiative
	AllowTriggeredUpdates bool `json:"allowTriggeredUpdates,omitempty"`
}

ProfilerStartPreciseCoverage Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.

(ProfilerStartPreciseCoverage) Call

1
func (m ProfilerStartPreciseCoverage) Call(c Client) (*ProfilerStartPreciseCoverageResult, error)

Call the request.

(ProfilerStartPreciseCoverage) ProtoReq <- 0.74.0

1
func (m ProfilerStartPreciseCoverage) ProtoReq() string

ProtoReq name.

type ProfilerStartPreciseCoverageResult

1
2
3
4
type ProfilerStartPreciseCoverageResult struct {
	// Timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
	Timestamp float64 `json:"timestamp"`
}

ProfilerStartPreciseCoverageResult …

type ProfilerStop

1
type ProfilerStop struct{}

ProfilerStop …

(ProfilerStop) Call

1
func (m ProfilerStop) Call(c Client) (*ProfilerStopResult, error)

Call the request.

(ProfilerStop) ProtoReq <- 0.74.0

1
func (m ProfilerStop) ProtoReq() string

ProtoReq name.

type ProfilerStopPreciseCoverage

1
type ProfilerStopPreciseCoverage struct{}

ProfilerStopPreciseCoverage Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.

(ProfilerStopPreciseCoverage) Call

1
func (m ProfilerStopPreciseCoverage) Call(c Client) error

Call sends the request.

(ProfilerStopPreciseCoverage) ProtoReq <- 0.74.0

1
func (m ProfilerStopPreciseCoverage) ProtoReq() string

ProtoReq name.

type ProfilerStopResult

1
2
3
4
type ProfilerStopResult struct {
	// Profile Recorded profile.
	Profile *ProfilerProfile `json:"profile"`
}

ProfilerStopResult …

type ProfilerTakePreciseCoverage

1
type ProfilerTakePreciseCoverage struct{}

ProfilerTakePreciseCoverage Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.

(ProfilerTakePreciseCoverage) Call

1
func (m ProfilerTakePreciseCoverage) Call(c Client) (*ProfilerTakePreciseCoverageResult, error)

Call the request.

(ProfilerTakePreciseCoverage) ProtoReq <- 0.74.0

1
func (m ProfilerTakePreciseCoverage) ProtoReq() string

ProtoReq name.

type ProfilerTakePreciseCoverageResult

1
2
3
4
5
6
7
type ProfilerTakePreciseCoverageResult struct {
	// Result Coverage data for the current isolate.
	Result []*ProfilerScriptCoverage `json:"result"`

	// Timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
	Timestamp float64 `json:"timestamp"`
}

ProfilerTakePreciseCoverageResult …

type Request <- 0.72.0

1
2
3
4
type Request interface {
	// ProtoReq returns the cdp.Request.Method
	ProtoReq() string
}

Request represents a cdp.Request.Method.

type RuntimeAddBinding

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
type RuntimeAddBinding struct {
	// Name ...
	Name string `json:"name"`

	// ExecutionContextID (deprecated) (experimental) (optional) If specified, the binding would only be exposed to the specified
	// execution context. If omitted and `executionContextName` is not set,
	// the binding is exposed to all execution contexts of the target.
	// This parameter is mutually exclusive with `executionContextName`.
	// Deprecated in favor of `executionContextName` due to an unclear use case
	// and bugs in implementation (crbug.com/1169639). `executionContextId` will be
	// removed in the future.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`

	// ExecutionContextName (optional) If specified, the binding is exposed to the executionContext with
	// matching name, even for contexts created after the binding is added.
	// See also `ExecutionContext.name` and `worldName` parameter to
	// `Page.addScriptToEvaluateOnNewDocument`.
	// This parameter is mutually exclusive with `executionContextId`.
	ExecutionContextName string `json:"executionContextName,omitempty"`
}

RuntimeAddBinding If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.

(RuntimeAddBinding) Call

1
func (m RuntimeAddBinding) Call(c Client) error

Call sends the request.

(RuntimeAddBinding) ProtoReq <- 0.74.0

1
func (m RuntimeAddBinding) ProtoReq() string

ProtoReq name.

type RuntimeAwaitPromise

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type RuntimeAwaitPromise struct {
	// PromiseObjectID Identifier of the promise.
	PromiseObjectID RuntimeRemoteObjectID `json:"promiseObjectId"`

	// ReturnByValue (optional) Whether the result is expected to be a JSON object that should be sent by value.
	ReturnByValue bool `json:"returnByValue,omitempty"`

	// GeneratePreview (optional) Whether preview should be generated for the result.
	GeneratePreview bool `json:"generatePreview,omitempty"`
}

RuntimeAwaitPromise Add handler to promise with given promise object id.

(RuntimeAwaitPromise) Call

1
func (m RuntimeAwaitPromise) Call(c Client) (*RuntimeAwaitPromiseResult, error)

Call the request.

(RuntimeAwaitPromise) ProtoReq <- 0.74.0

1
func (m RuntimeAwaitPromise) ProtoReq() string

ProtoReq name.

type RuntimeAwaitPromiseResult

1
2
3
4
5
6
7
type RuntimeAwaitPromiseResult struct {
	// Result Promise result. Will contain rejected value if promise was rejected.
	Result *RuntimeRemoteObject `json:"result"`

	// ExceptionDetails (optional) Exception details if stack strace is available.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeAwaitPromiseResult …

type RuntimeBindingCalled

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type RuntimeBindingCalled struct {
	// Name ...
	Name string `json:"name"`

	// Payload ...
	Payload string `json:"payload"`

	// ExecutionContextID Identifier of the context where the call was made.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`
}

RuntimeBindingCalled (experimental) Notification is issued every time when binding is called.

(RuntimeBindingCalled) ProtoEvent <- 0.72.0

1
func (evt RuntimeBindingCalled) ProtoEvent() string

ProtoEvent name.

type RuntimeCallArgument

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type RuntimeCallArgument struct {
	// Value (optional) Primitive value or serializable javascript object.
	Value gson.JSON `json:"value,omitempty"`

	// UnserializableValue (optional) Primitive value which can not be JSON-stringified.
	UnserializableValue RuntimeUnserializableValue `json:"unserializableValue,omitempty"`

	// ObjectID (optional) Remote object handle.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`
}

RuntimeCallArgument Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.

type RuntimeCallFrame

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type RuntimeCallFrame struct {
	// FunctionName JavaScript function name.
	FunctionName string `json:"functionName"`

	// ScriptID JavaScript script id.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// URL JavaScript script name or url.
	URL string `json:"url"`

	// LineNumber JavaScript script line number (0-based).
	LineNumber int `json:"lineNumber"`

	// ColumnNumber JavaScript script column number (0-based).
	ColumnNumber int `json:"columnNumber"`
}

RuntimeCallFrame Stack entry for runtime errors and assertions.

type RuntimeCallFunctionOn

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
type RuntimeCallFunctionOn struct {
	// FunctionDeclaration Declaration of the function to call.
	FunctionDeclaration string `json:"functionDeclaration"`

	// ObjectID (optional) Identifier of the object to call function on. Either objectId or executionContextId should
	// be specified.
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// Arguments (optional) Call arguments. All call arguments must belong to the same JavaScript world as the target
	// object.
	Arguments []*RuntimeCallArgument `json:"arguments,omitempty"`

	// Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause
	// execution. Overrides `setPauseOnException` state.
	Silent bool `json:"silent,omitempty"`

	// ReturnByValue (optional) Whether the result is expected to be a JSON object which should be sent by value.
	// Can be overridden by `serializationOptions`.
	ReturnByValue bool `json:"returnByValue,omitempty"`

	// GeneratePreview (experimental) (optional) Whether preview should be generated for the result.
	GeneratePreview bool `json:"generatePreview,omitempty"`

	// UserGesture (optional) Whether execution should be treated as initiated by user in the UI.
	UserGesture bool `json:"userGesture,omitempty"`

	// AwaitPromise (optional) Whether execution should `await` for resulting value and return once awaited promise is
	// resolved.
	AwaitPromise bool `json:"awaitPromise,omitempty"`

	// ExecutionContextID (optional) Specifies execution context which global object will be used to call function on. Either
	// executionContextId or objectId should be specified.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`

	// ObjectGroup (optional) Symbolic group name that can be used to release multiple objects. If objectGroup is not
	// specified and objectId is, objectGroup will be inherited from object.
	ObjectGroup string `json:"objectGroup,omitempty"`

	// ThrowOnSideEffect (experimental) (optional) Whether to throw an exception if side effect cannot be ruled out during evaluation.
	ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"`

	// UniqueContextID (experimental) (optional) An alternative way to specify the execution context to call function on.
	// Compared to contextId that may be reused across processes, this is guaranteed to be
	// system-unique, so it can be used to prevent accidental function call
	// in context different than intended (e.g. as a result of navigation across process
	// boundaries).
	// This is mutually exclusive with `executionContextId`.
	UniqueContextID string `json:"uniqueContextId,omitempty"`

	// SerializationOptions (experimental) (optional) Specifies the result serialization. If provided, overrides
	// `generatePreview` and `returnByValue`.
	SerializationOptions *RuntimeSerializationOptions `json:"serializationOptions,omitempty"`
}

RuntimeCallFunctionOn Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

(RuntimeCallFunctionOn) Call

1
func (m RuntimeCallFunctionOn) Call(c Client) (*RuntimeCallFunctionOnResult, error)

Call the request.

(RuntimeCallFunctionOn) ProtoReq <- 0.74.0

1
func (m RuntimeCallFunctionOn) ProtoReq() string

ProtoReq name.

type RuntimeCallFunctionOnResult

1
2
3
4
5
6
7
type RuntimeCallFunctionOnResult struct {
	// Result Call result.
	Result *RuntimeRemoteObject `json:"result"`

	// ExceptionDetails (optional) Exception details.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeCallFunctionOnResult …

type RuntimeCompileScript

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type RuntimeCompileScript struct {
	// Expression to compile.
	Expression string `json:"expression"`

	// SourceURL Source url to be set for the script.
	SourceURL string `json:"sourceURL"`

	// PersistScript Specifies whether the compiled script should be persisted.
	PersistScript bool `json:"persistScript"`

	// ExecutionContextID (optional) Specifies in which execution context to perform script run. If the parameter is omitted the
	// evaluation will be performed in the context of the inspected page.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`
}

RuntimeCompileScript Compiles expression.

(RuntimeCompileScript) Call

1
func (m RuntimeCompileScript) Call(c Client) (*RuntimeCompileScriptResult, error)

Call the request.

(RuntimeCompileScript) ProtoReq <- 0.74.0

1
func (m RuntimeCompileScript) ProtoReq() string

ProtoReq name.

type RuntimeCompileScriptResult

1
2
3
4
5
6
7
type RuntimeCompileScriptResult struct {
	// ScriptID (optional) Id of the script.
	ScriptID RuntimeScriptID `json:"scriptId,omitempty"`

	// ExceptionDetails (optional) Exception details.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeCompileScriptResult …

type RuntimeConsoleAPICalled

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type RuntimeConsoleAPICalled struct {
	// Type of the call.
	Type RuntimeConsoleAPICalledType `json:"type"`

	// Args Call arguments.
	Args []*RuntimeRemoteObject `json:"args"`

	// ExecutionContextID Identifier of the context where the call was made.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`

	// Timestamp Call timestamp.
	Timestamp RuntimeTimestamp `json:"timestamp"`

	// StackTrace (optional) Stack trace captured when the call was made. The async stack chain is automatically reported for
	// the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call
	// chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field.
	StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"`

	// Context (experimental) (optional) Console context descriptor for calls on non-default console context (not console.*):
	// 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call
	// on named context.
	Context string `json:"context,omitempty"`
}

RuntimeConsoleAPICalled Issued when console API was called.

(RuntimeConsoleAPICalled) ProtoEvent <- 0.72.0

1
func (evt RuntimeConsoleAPICalled) ProtoEvent() string

ProtoEvent name.

type RuntimeConsoleAPICalledType

1
type RuntimeConsoleAPICalledType string

RuntimeConsoleAPICalledType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const (
	// RuntimeConsoleAPICalledTypeLog enum const.
	RuntimeConsoleAPICalledTypeLog RuntimeConsoleAPICalledType = "log"

	// RuntimeConsoleAPICalledTypeDebug enum const.
	RuntimeConsoleAPICalledTypeDebug RuntimeConsoleAPICalledType = "debug"

	// RuntimeConsoleAPICalledTypeInfo enum const.
	RuntimeConsoleAPICalledTypeInfo RuntimeConsoleAPICalledType = "info"

	// RuntimeConsoleAPICalledTypeError enum const.
	RuntimeConsoleAPICalledTypeError RuntimeConsoleAPICalledType = "error"

	// RuntimeConsoleAPICalledTypeWarning enum const.
	RuntimeConsoleAPICalledTypeWarning RuntimeConsoleAPICalledType = "warning"

	// RuntimeConsoleAPICalledTypeDir enum const.
	RuntimeConsoleAPICalledTypeDir RuntimeConsoleAPICalledType = "dir"

	// RuntimeConsoleAPICalledTypeDirxml enum const.
	RuntimeConsoleAPICalledTypeDirxml RuntimeConsoleAPICalledType = "dirxml"

	// RuntimeConsoleAPICalledTypeTable enum const.
	RuntimeConsoleAPICalledTypeTable RuntimeConsoleAPICalledType = "table"

	// RuntimeConsoleAPICalledTypeTrace enum const.
	RuntimeConsoleAPICalledTypeTrace RuntimeConsoleAPICalledType = "trace"

	// RuntimeConsoleAPICalledTypeClear enum const.
	RuntimeConsoleAPICalledTypeClear RuntimeConsoleAPICalledType = "clear"

	// RuntimeConsoleAPICalledTypeStartGroup enum const.
	RuntimeConsoleAPICalledTypeStartGroup RuntimeConsoleAPICalledType = "startGroup"

	// RuntimeConsoleAPICalledTypeStartGroupCollapsed enum const.
	RuntimeConsoleAPICalledTypeStartGroupCollapsed RuntimeConsoleAPICalledType = "startGroupCollapsed"

	// RuntimeConsoleAPICalledTypeEndGroup enum const.
	RuntimeConsoleAPICalledTypeEndGroup RuntimeConsoleAPICalledType = "endGroup"

	// RuntimeConsoleAPICalledTypeAssert enum const.
	RuntimeConsoleAPICalledTypeAssert RuntimeConsoleAPICalledType = "assert"

	// RuntimeConsoleAPICalledTypeProfile enum const.
	RuntimeConsoleAPICalledTypeProfile RuntimeConsoleAPICalledType = "profile"

	// RuntimeConsoleAPICalledTypeProfileEnd enum const.
	RuntimeConsoleAPICalledTypeProfileEnd RuntimeConsoleAPICalledType = "profileEnd"

	// RuntimeConsoleAPICalledTypeCount enum const.
	RuntimeConsoleAPICalledTypeCount RuntimeConsoleAPICalledType = "count"

	// RuntimeConsoleAPICalledTypeTimeEnd enum const.
	RuntimeConsoleAPICalledTypeTimeEnd RuntimeConsoleAPICalledType = "timeEnd"
)

type RuntimeCustomPreview

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type RuntimeCustomPreview struct {
	// Header The JSON-stringified result of formatter.header(object, config) call.
	// It contains json ML array that represents RemoteObject.
	Header string `json:"header"`

	// BodyGetterID (optional) If formatter returns true as a result of formatter.hasBody call then bodyGetterId will
	// contain RemoteObjectId for the function that returns result of formatter.body(object, config) call.
	// The result value is json ML array.
	BodyGetterID RuntimeRemoteObjectID `json:"bodyGetterId,omitempty"`
}

RuntimeCustomPreview (experimental) …

type RuntimeDeepSerializedValue <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type RuntimeDeepSerializedValue struct {
	// Type ...
	Type RuntimeDeepSerializedValueType `json:"type"`

	// Value (optional) ...
	Value gson.JSON `json:"value,omitempty"`

	// ObjectID (optional) ...
	ObjectID string `json:"objectId,omitempty"`

	// WeakLocalObjectReference (optional) Set if value reference met more then once during serialization. In such
	// case, value is provided only to one of the serialized values. Unique
	// per value in the scope of one CDP call.
	WeakLocalObjectReference *int `json:"weakLocalObjectReference,omitempty"`
}

RuntimeDeepSerializedValue Represents deep serialized value.

type RuntimeDeepSerializedValueType <- 0.115.0

1
type RuntimeDeepSerializedValueType string

RuntimeDeepSerializedValueType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
const (
	// RuntimeDeepSerializedValueTypeUndefined enum const.
	RuntimeDeepSerializedValueTypeUndefined RuntimeDeepSerializedValueType = "undefined"

	// RuntimeDeepSerializedValueTypeNull enum const.
	RuntimeDeepSerializedValueTypeNull RuntimeDeepSerializedValueType = "null"

	// RuntimeDeepSerializedValueTypeString enum const.
	RuntimeDeepSerializedValueTypeString RuntimeDeepSerializedValueType = "string"

	// RuntimeDeepSerializedValueTypeNumber enum const.
	RuntimeDeepSerializedValueTypeNumber RuntimeDeepSerializedValueType = "number"

	// RuntimeDeepSerializedValueTypeBoolean enum const.
	RuntimeDeepSerializedValueTypeBoolean RuntimeDeepSerializedValueType = "boolean"

	// RuntimeDeepSerializedValueTypeBigint enum const.
	RuntimeDeepSerializedValueTypeBigint RuntimeDeepSerializedValueType = "bigint"

	// RuntimeDeepSerializedValueTypeRegexp enum const.
	RuntimeDeepSerializedValueTypeRegexp RuntimeDeepSerializedValueType = "regexp"

	// RuntimeDeepSerializedValueTypeDate enum const.
	RuntimeDeepSerializedValueTypeDate RuntimeDeepSerializedValueType = "date"

	// RuntimeDeepSerializedValueTypeSymbol enum const.
	RuntimeDeepSerializedValueTypeSymbol RuntimeDeepSerializedValueType = "symbol"

	// RuntimeDeepSerializedValueTypeArray enum const.
	RuntimeDeepSerializedValueTypeArray RuntimeDeepSerializedValueType = "array"

	// RuntimeDeepSerializedValueTypeObject enum const.
	RuntimeDeepSerializedValueTypeObject RuntimeDeepSerializedValueType = "object"

	// RuntimeDeepSerializedValueTypeFunction enum const.
	RuntimeDeepSerializedValueTypeFunction RuntimeDeepSerializedValueType = "function"

	// RuntimeDeepSerializedValueTypeMap enum const.
	RuntimeDeepSerializedValueTypeMap RuntimeDeepSerializedValueType = "map"

	// RuntimeDeepSerializedValueTypeSet enum const.
	RuntimeDeepSerializedValueTypeSet RuntimeDeepSerializedValueType = "set"

	// RuntimeDeepSerializedValueTypeWeakmap enum const.
	RuntimeDeepSerializedValueTypeWeakmap RuntimeDeepSerializedValueType = "weakmap"

	// RuntimeDeepSerializedValueTypeWeakset enum const.
	RuntimeDeepSerializedValueTypeWeakset RuntimeDeepSerializedValueType = "weakset"

	// RuntimeDeepSerializedValueTypeError enum const.
	RuntimeDeepSerializedValueTypeError RuntimeDeepSerializedValueType = "error"

	// RuntimeDeepSerializedValueTypeProxy enum const.
	RuntimeDeepSerializedValueTypeProxy RuntimeDeepSerializedValueType = "proxy"

	// RuntimeDeepSerializedValueTypePromise enum const.
	RuntimeDeepSerializedValueTypePromise RuntimeDeepSerializedValueType = "promise"

	// RuntimeDeepSerializedValueTypeTypedarray enum const.
	RuntimeDeepSerializedValueTypeTypedarray RuntimeDeepSerializedValueType = "typedarray"

	// RuntimeDeepSerializedValueTypeArraybuffer enum const.
	RuntimeDeepSerializedValueTypeArraybuffer RuntimeDeepSerializedValueType = "arraybuffer"

	// RuntimeDeepSerializedValueTypeNode enum const.
	RuntimeDeepSerializedValueTypeNode RuntimeDeepSerializedValueType = "node"

	// RuntimeDeepSerializedValueTypeWindow enum const.
	RuntimeDeepSerializedValueTypeWindow RuntimeDeepSerializedValueType = "window"

	// RuntimeDeepSerializedValueTypeGenerator enum const.
	RuntimeDeepSerializedValueTypeGenerator RuntimeDeepSerializedValueType = "generator"
)

type RuntimeDisable

1
type RuntimeDisable struct{}

RuntimeDisable Disables reporting of execution contexts creation.

(RuntimeDisable) Call

1
func (m RuntimeDisable) Call(c Client) error

Call sends the request.

(RuntimeDisable) ProtoReq <- 0.74.0

1
func (m RuntimeDisable) ProtoReq() string

ProtoReq name.

type RuntimeDiscardConsoleEntries

1
type RuntimeDiscardConsoleEntries struct{}

RuntimeDiscardConsoleEntries Discards collected exceptions and console API calls.

(RuntimeDiscardConsoleEntries) Call

1
func (m RuntimeDiscardConsoleEntries) Call(c Client) error

Call sends the request.

(RuntimeDiscardConsoleEntries) ProtoReq <- 0.74.0

1
func (m RuntimeDiscardConsoleEntries) ProtoReq() string

ProtoReq name.

type RuntimeEnable

1
type RuntimeEnable struct{}

RuntimeEnable Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context.

(RuntimeEnable) Call

1
func (m RuntimeEnable) Call(c Client) error

Call sends the request.

(RuntimeEnable) ProtoReq <- 0.74.0

1
func (m RuntimeEnable) ProtoReq() string

ProtoReq name.

type RuntimeEntryPreview

1
2
3
4
5
6
7
type RuntimeEntryPreview struct {
	// Key (optional) Preview of the key. Specified for map-like collection entries.
	Key *RuntimeObjectPreview `json:"key,omitempty"`

	// Value Preview of the value.
	Value *RuntimeObjectPreview `json:"value"`
}

RuntimeEntryPreview (experimental) …

type RuntimeEvaluate

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
type RuntimeEvaluate struct {
	// Expression to evaluate.
	Expression string `json:"expression"`

	// ObjectGroup (optional) Symbolic group name that can be used to release multiple objects.
	ObjectGroup string `json:"objectGroup,omitempty"`

	// IncludeCommandLineAPI (optional) Determines whether Command Line API should be available during the evaluation.
	IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"`

	// Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause
	// execution. Overrides `setPauseOnException` state.
	Silent bool `json:"silent,omitempty"`

	// ContextID (optional) Specifies in which execution context to perform evaluation. If the parameter is omitted the
	// evaluation will be performed in the context of the inspected page.
	// This is mutually exclusive with `uniqueContextId`, which offers an
	// alternative way to identify the execution context that is more reliable
	// in a multi-process environment.
	ContextID RuntimeExecutionContextID `json:"contextId,omitempty"`

	// ReturnByValue (optional) Whether the result is expected to be a JSON object that should be sent by value.
	ReturnByValue bool `json:"returnByValue,omitempty"`

	// GeneratePreview (experimental) (optional) Whether preview should be generated for the result.
	GeneratePreview bool `json:"generatePreview,omitempty"`

	// UserGesture (optional) Whether execution should be treated as initiated by user in the UI.
	UserGesture bool `json:"userGesture,omitempty"`

	// AwaitPromise (optional) Whether execution should `await` for resulting value and return once awaited promise is
	// resolved.
	AwaitPromise bool `json:"awaitPromise,omitempty"`

	// ThrowOnSideEffect (experimental) (optional) Whether to throw an exception if side effect cannot be ruled out during evaluation.
	// This implies `disableBreaks` below.
	ThrowOnSideEffect bool `json:"throwOnSideEffect,omitempty"`

	// Timeout (experimental) (optional) Terminate execution after timing out (number of milliseconds).
	Timeout RuntimeTimeDelta `json:"timeout,omitempty"`

	// DisableBreaks (experimental) (optional) Disable breakpoints during execution.
	DisableBreaks bool `json:"disableBreaks,omitempty"`

	// ReplMode (experimental) (optional) Setting this flag to true enables `let` re-declaration and top-level `await`.
	// Note that `let` variables can only be re-declared if they originate from
	// `replMode` themselves.
	ReplMode bool `json:"replMode,omitempty"`

	// AllowUnsafeEvalBlockedByCSP (experimental) (optional) The Content Security Policy (CSP) for the target might block 'unsafe-eval'
	// which includes eval(), Function(), setTimeout() and setInterval()
	// when called with non-callable arguments. This flag bypasses CSP for this
	// evaluation and allows unsafe-eval. Defaults to true.
	AllowUnsafeEvalBlockedByCSP bool `json:"allowUnsafeEvalBlockedByCSP,omitempty"`

	// UniqueContextID (experimental) (optional) An alternative way to specify the execution context to evaluate in.
	// Compared to contextId that may be reused across processes, this is guaranteed to be
	// system-unique, so it can be used to prevent accidental evaluation of the expression
	// in context different than intended (e.g. as a result of navigation across process
	// boundaries).
	// This is mutually exclusive with `contextId`.
	UniqueContextID string `json:"uniqueContextId,omitempty"`

	// SerializationOptions (experimental) (optional) Specifies the result serialization. If provided, overrides
	// `generatePreview` and `returnByValue`.
	SerializationOptions *RuntimeSerializationOptions `json:"serializationOptions,omitempty"`
}

RuntimeEvaluate Evaluates expression on global object.

(RuntimeEvaluate) Call

1
func (m RuntimeEvaluate) Call(c Client) (*RuntimeEvaluateResult, error)

Call the request.

(RuntimeEvaluate) ProtoReq <- 0.74.0

1
func (m RuntimeEvaluate) ProtoReq() string

ProtoReq name.

type RuntimeEvaluateResult

1
2
3
4
5
6
7
type RuntimeEvaluateResult struct {
	// Result Evaluation result.
	Result *RuntimeRemoteObject `json:"result"`

	// ExceptionDetails (optional) Exception details.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeEvaluateResult …

type RuntimeExceptionDetails

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
type RuntimeExceptionDetails struct {
	// ExceptionID Exception id.
	ExceptionID int `json:"exceptionId"`

	// Text Exception text, which should be used together with exception object when available.
	Text string `json:"text"`

	// LineNumber Line number of the exception location (0-based).
	LineNumber int `json:"lineNumber"`

	// ColumnNumber Column number of the exception location (0-based).
	ColumnNumber int `json:"columnNumber"`

	// ScriptID (optional) Script ID of the exception location.
	ScriptID RuntimeScriptID `json:"scriptId,omitempty"`

	// URL (optional) URL of the exception location, to be used when the script was not reported.
	URL string `json:"url,omitempty"`

	// StackTrace (optional) JavaScript stack trace if available.
	StackTrace *RuntimeStackTrace `json:"stackTrace,omitempty"`

	// Exception (optional) Exception object if available.
	Exception *RuntimeRemoteObject `json:"exception,omitempty"`

	// ExecutionContextID (optional) Identifier of the context where exception happened.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`

	// ExceptionMetaData (experimental) (optional) Dictionary with entries of meta data that the client associated
	// with this exception, such as information about associated network
	// requests, etc.
	ExceptionMetaData map[string]gson.JSON `json:"exceptionMetaData,omitempty"`
}

RuntimeExceptionDetails Detailed information about exception (or error) that was thrown during script compilation or execution.

type RuntimeExceptionRevoked

1
2
3
4
5
6
7
type RuntimeExceptionRevoked struct {
	// Reason describing why exception was revoked.
	Reason string `json:"reason"`

	// ExceptionID The id of revoked exception, as reported in `exceptionThrown`.
	ExceptionID int `json:"exceptionId"`
}

RuntimeExceptionRevoked Issued when unhandled exception was revoked.

(RuntimeExceptionRevoked) ProtoEvent <- 0.72.0

1
func (evt RuntimeExceptionRevoked) ProtoEvent() string

ProtoEvent name.

type RuntimeExceptionThrown

1
2
3
4
5
6
7
type RuntimeExceptionThrown struct {
	// Timestamp of the exception.
	Timestamp RuntimeTimestamp `json:"timestamp"`

	// ExceptionDetails ...
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails"`
}

RuntimeExceptionThrown Issued when exception was thrown and unhandled.

(RuntimeExceptionThrown) ProtoEvent <- 0.72.0

1
func (evt RuntimeExceptionThrown) ProtoEvent() string

ProtoEvent name.

type RuntimeExecutionContextCreated

1
2
3
4
type RuntimeExecutionContextCreated struct {
	// Context A newly created execution context.
	Context *RuntimeExecutionContextDescription `json:"context"`
}

RuntimeExecutionContextCreated Issued when new execution context is created.

(RuntimeExecutionContextCreated) ProtoEvent <- 0.72.0

1
func (evt RuntimeExecutionContextCreated) ProtoEvent() string

ProtoEvent name.

type RuntimeExecutionContextDescription

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type RuntimeExecutionContextDescription struct {
	// ID Unique id of the execution context. It can be used to specify in which execution context
	// script evaluation should be performed.
	ID RuntimeExecutionContextID `json:"id"`

	// Origin Execution context origin.
	Origin string `json:"origin"`

	// Name Human readable name describing given context.
	Name string `json:"name"`

	// UniqueID (experimental) A system-unique execution context identifier. Unlike the id, this is unique across
	// multiple processes, so can be reliably used to identify specific context while backend
	// performs a cross-process navigation.
	UniqueID string `json:"uniqueId"`

	// AuxData (optional) Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
	AuxData map[string]gson.JSON `json:"auxData,omitempty"`
}

RuntimeExecutionContextDescription Description of an isolated world.

type RuntimeExecutionContextDestroyed

1
2
3
4
5
6
7
type RuntimeExecutionContextDestroyed struct {
	// ExecutionContextID (deprecated) Id of the destroyed context
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`

	// ExecutionContextUniqueID (experimental) Unique Id of the destroyed context
	ExecutionContextUniqueID string `json:"executionContextUniqueId"`
}

RuntimeExecutionContextDestroyed Issued when execution context is destroyed.

(RuntimeExecutionContextDestroyed) ProtoEvent <- 0.72.0

1
func (evt RuntimeExecutionContextDestroyed) ProtoEvent() string

ProtoEvent name.

type RuntimeExecutionContextID

1
type RuntimeExecutionContextID int

RuntimeExecutionContextID Id of an execution context.

type RuntimeExecutionContextsCleared

1
type RuntimeExecutionContextsCleared struct{}

RuntimeExecutionContextsCleared Issued when all executionContexts were cleared in browser.

(RuntimeExecutionContextsCleared) ProtoEvent <- 0.72.0

1
func (evt RuntimeExecutionContextsCleared) ProtoEvent() string

ProtoEvent name.

type RuntimeGetExceptionDetails <- 0.102.0

1
2
3
4
type RuntimeGetExceptionDetails struct {
	// ErrorObjectID The error object for which to resolve the exception details.
	ErrorObjectID RuntimeRemoteObjectID `json:"errorObjectId"`
}

RuntimeGetExceptionDetails (experimental) This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown.

(RuntimeGetExceptionDetails) Call <- 0.102.0

1
func (m RuntimeGetExceptionDetails) Call(c Client) (*RuntimeGetExceptionDetailsResult, error)

Call the request.

(RuntimeGetExceptionDetails) ProtoReq <- 0.102.0

1
func (m RuntimeGetExceptionDetails) ProtoReq() string

ProtoReq name.

type RuntimeGetExceptionDetailsResult <- 0.102.0

1
2
3
4
type RuntimeGetExceptionDetailsResult struct {
	// ExceptionDetails (optional) ...
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeGetExceptionDetailsResult (experimental) …

type RuntimeGetHeapUsage

1
type RuntimeGetHeapUsage struct{}

RuntimeGetHeapUsage (experimental) Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

(RuntimeGetHeapUsage) Call

1
func (m RuntimeGetHeapUsage) Call(c Client) (*RuntimeGetHeapUsageResult, error)

Call the request.

(RuntimeGetHeapUsage) ProtoReq <- 0.74.0

1
func (m RuntimeGetHeapUsage) ProtoReq() string

ProtoReq name.

type RuntimeGetHeapUsageResult

1
2
3
4
5
6
7
type RuntimeGetHeapUsageResult struct {
	// UsedSize Used heap size in bytes.
	UsedSize float64 `json:"usedSize"`

	// TotalSize Allocated heap size in bytes.
	TotalSize float64 `json:"totalSize"`
}

RuntimeGetHeapUsageResult (experimental) …

type RuntimeGetIsolateID

1
type RuntimeGetIsolateID struct{}

RuntimeGetIsolateID (experimental) Returns the isolate id.

(RuntimeGetIsolateID) Call

1
func (m RuntimeGetIsolateID) Call(c Client) (*RuntimeGetIsolateIDResult, error)

Call the request.

(RuntimeGetIsolateID) ProtoReq <- 0.74.0

1
func (m RuntimeGetIsolateID) ProtoReq() string

ProtoReq name.

type RuntimeGetIsolateIDResult

1
2
3
4
type RuntimeGetIsolateIDResult struct {
	// ID The isolate id.
	ID string `json:"id"`
}

RuntimeGetIsolateIDResult (experimental) …

type RuntimeGetProperties

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
type RuntimeGetProperties struct {
	// ObjectID Identifier of the object to return properties for.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`

	// OwnProperties (optional) If true, returns properties belonging only to the element itself, not to its prototype
	// chain.
	OwnProperties bool `json:"ownProperties,omitempty"`

	// AccessorPropertiesOnly (experimental) (optional) If true, returns accessor properties (with getter/setter) only; internal properties are not
	// returned either.
	AccessorPropertiesOnly bool `json:"accessorPropertiesOnly,omitempty"`

	// GeneratePreview (experimental) (optional) Whether preview should be generated for the results.
	GeneratePreview bool `json:"generatePreview,omitempty"`

	// NonIndexedPropertiesOnly (experimental) (optional) If true, returns non-indexed properties only.
	NonIndexedPropertiesOnly bool `json:"nonIndexedPropertiesOnly,omitempty"`
}

RuntimeGetProperties Returns properties of a given object. Object group of the result is inherited from the target object.

(RuntimeGetProperties) Call

1
func (m RuntimeGetProperties) Call(c Client) (*RuntimeGetPropertiesResult, error)

Call the request.

(RuntimeGetProperties) ProtoReq <- 0.74.0

1
func (m RuntimeGetProperties) ProtoReq() string

ProtoReq name.

type RuntimeGetPropertiesResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type RuntimeGetPropertiesResult struct {
	// Result Object properties.
	Result []*RuntimePropertyDescriptor `json:"result"`

	// InternalProperties (optional) Internal object properties (only of the element itself).
	InternalProperties []*RuntimeInternalPropertyDescriptor `json:"internalProperties,omitempty"`

	// PrivateProperties (experimental) (optional) Object private properties.
	PrivateProperties []*RuntimePrivatePropertyDescriptor `json:"privateProperties,omitempty"`

	// ExceptionDetails (optional) Exception details.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeGetPropertiesResult …

type RuntimeGlobalLexicalScopeNames

1
2
3
4
type RuntimeGlobalLexicalScopeNames struct {
	// ExecutionContextID (optional) Specifies in which execution context to lookup global scope variables.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`
}

RuntimeGlobalLexicalScopeNames Returns all let, const and class variables from global scope.

(RuntimeGlobalLexicalScopeNames) Call

1
func (m RuntimeGlobalLexicalScopeNames) Call(c Client) (*RuntimeGlobalLexicalScopeNamesResult, error)

Call the request.

(RuntimeGlobalLexicalScopeNames) ProtoReq <- 0.74.0

1
func (m RuntimeGlobalLexicalScopeNames) ProtoReq() string

ProtoReq name.

type RuntimeGlobalLexicalScopeNamesResult

1
2
3
4
type RuntimeGlobalLexicalScopeNamesResult struct {
	// Names ...
	Names []string `json:"names"`
}

RuntimeGlobalLexicalScopeNamesResult …

type RuntimeInspectRequested

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type RuntimeInspectRequested struct {
	// Object ...
	Object *RuntimeRemoteObject `json:"object"`

	// Hints ...
	Hints map[string]gson.JSON `json:"hints"`

	// ExecutionContextID (experimental) (optional) Identifier of the context where the call was made.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`
}

RuntimeInspectRequested Issued when object should be inspected (for example, as a result of inspect() command line API call).

(RuntimeInspectRequested) ProtoEvent <- 0.72.0

1
func (evt RuntimeInspectRequested) ProtoEvent() string

ProtoEvent name.

type RuntimeInternalPropertyDescriptor

1
2
3
4
5
6
7
type RuntimeInternalPropertyDescriptor struct {
	// Name Conventional property name.
	Name string `json:"name"`

	// Value (optional) The value associated with the property.
	Value *RuntimeRemoteObject `json:"value,omitempty"`
}

RuntimeInternalPropertyDescriptor Object internal property descriptor. This property isn’t normally visible in JavaScript code.

type RuntimeObjectPreview

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type RuntimeObjectPreview struct {
	// Type Object type.
	Type RuntimeObjectPreviewType `json:"type"`

	// Subtype (optional) Object subtype hint. Specified for `object` type values only.
	Subtype RuntimeObjectPreviewSubtype `json:"subtype,omitempty"`

	// Description (optional) String representation of the object.
	Description string `json:"description,omitempty"`

	// Overflow True iff some of the properties or entries of the original object did not fit.
	Overflow bool `json:"overflow"`

	// Properties List of the properties.
	Properties []*RuntimePropertyPreview `json:"properties"`

	// Entries (optional) List of the entries. Specified for `map` and `set` subtype values only.
	Entries []*RuntimeEntryPreview `json:"entries,omitempty"`
}

RuntimeObjectPreview (experimental) Object containing abbreviated remote object value.

type RuntimeObjectPreviewSubtype

1
type RuntimeObjectPreviewSubtype string

RuntimeObjectPreviewSubtype enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const (
	// RuntimeObjectPreviewSubtypeArray enum const.
	RuntimeObjectPreviewSubtypeArray RuntimeObjectPreviewSubtype = "array"

	// RuntimeObjectPreviewSubtypeNull enum const.
	RuntimeObjectPreviewSubtypeNull RuntimeObjectPreviewSubtype = "null"

	// RuntimeObjectPreviewSubtypeNode enum const.
	RuntimeObjectPreviewSubtypeNode RuntimeObjectPreviewSubtype = "node"

	// RuntimeObjectPreviewSubtypeRegexp enum const.
	RuntimeObjectPreviewSubtypeRegexp RuntimeObjectPreviewSubtype = "regexp"

	// RuntimeObjectPreviewSubtypeDate enum const.
	RuntimeObjectPreviewSubtypeDate RuntimeObjectPreviewSubtype = "date"

	// RuntimeObjectPreviewSubtypeMap enum const.
	RuntimeObjectPreviewSubtypeMap RuntimeObjectPreviewSubtype = "map"

	// RuntimeObjectPreviewSubtypeSet enum const.
	RuntimeObjectPreviewSubtypeSet RuntimeObjectPreviewSubtype = "set"

	// RuntimeObjectPreviewSubtypeWeakmap enum const.
	RuntimeObjectPreviewSubtypeWeakmap RuntimeObjectPreviewSubtype = "weakmap"

	// RuntimeObjectPreviewSubtypeWeakset enum const.
	RuntimeObjectPreviewSubtypeWeakset RuntimeObjectPreviewSubtype = "weakset"

	// RuntimeObjectPreviewSubtypeIterator enum const.
	RuntimeObjectPreviewSubtypeIterator RuntimeObjectPreviewSubtype = "iterator"

	// RuntimeObjectPreviewSubtypeGenerator enum const.
	RuntimeObjectPreviewSubtypeGenerator RuntimeObjectPreviewSubtype = "generator"

	// RuntimeObjectPreviewSubtypeError enum const.
	RuntimeObjectPreviewSubtypeError RuntimeObjectPreviewSubtype = "error"

	// RuntimeObjectPreviewSubtypeProxy enum const.
	RuntimeObjectPreviewSubtypeProxy RuntimeObjectPreviewSubtype = "proxy"

	// RuntimeObjectPreviewSubtypePromise enum const.
	RuntimeObjectPreviewSubtypePromise RuntimeObjectPreviewSubtype = "promise"

	// RuntimeObjectPreviewSubtypeTypedarray enum const.
	RuntimeObjectPreviewSubtypeTypedarray RuntimeObjectPreviewSubtype = "typedarray"

	// RuntimeObjectPreviewSubtypeArraybuffer enum const.
	RuntimeObjectPreviewSubtypeArraybuffer RuntimeObjectPreviewSubtype = "arraybuffer"

	// RuntimeObjectPreviewSubtypeDataview enum const.
	RuntimeObjectPreviewSubtypeDataview RuntimeObjectPreviewSubtype = "dataview"

	// RuntimeObjectPreviewSubtypeWebassemblymemory enum const.
	RuntimeObjectPreviewSubtypeWebassemblymemory RuntimeObjectPreviewSubtype = "webassemblymemory"

	// RuntimeObjectPreviewSubtypeWasmvalue enum const.
	RuntimeObjectPreviewSubtypeWasmvalue RuntimeObjectPreviewSubtype = "wasmvalue"
)

type RuntimeObjectPreviewType

1
type RuntimeObjectPreviewType string

RuntimeObjectPreviewType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const (
	// RuntimeObjectPreviewTypeObject enum const.
	RuntimeObjectPreviewTypeObject RuntimeObjectPreviewType = "object"

	// RuntimeObjectPreviewTypeFunction enum const.
	RuntimeObjectPreviewTypeFunction RuntimeObjectPreviewType = "function"

	// RuntimeObjectPreviewTypeUndefined enum const.
	RuntimeObjectPreviewTypeUndefined RuntimeObjectPreviewType = "undefined"

	// RuntimeObjectPreviewTypeString enum const.
	RuntimeObjectPreviewTypeString RuntimeObjectPreviewType = "string"

	// RuntimeObjectPreviewTypeNumber enum const.
	RuntimeObjectPreviewTypeNumber RuntimeObjectPreviewType = "number"

	// RuntimeObjectPreviewTypeBoolean enum const.
	RuntimeObjectPreviewTypeBoolean RuntimeObjectPreviewType = "boolean"

	// RuntimeObjectPreviewTypeSymbol enum const.
	RuntimeObjectPreviewTypeSymbol RuntimeObjectPreviewType = "symbol"

	// RuntimeObjectPreviewTypeBigint enum const.
	RuntimeObjectPreviewTypeBigint RuntimeObjectPreviewType = "bigint"
)

type RuntimePrivatePropertyDescriptor

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type RuntimePrivatePropertyDescriptor struct {
	// Name Private property name.
	Name string `json:"name"`

	// Value (optional) The value associated with the private property.
	Value *RuntimeRemoteObject `json:"value,omitempty"`

	// Get (optional) A function which serves as a getter for the private property,
	// or `undefined` if there is no getter (accessor descriptors only).
	Get *RuntimeRemoteObject `json:"get,omitempty"`

	// Set (optional) A function which serves as a setter for the private property,
	// or `undefined` if there is no setter (accessor descriptors only).
	Set *RuntimeRemoteObject `json:"set,omitempty"`
}

RuntimePrivatePropertyDescriptor (experimental) Object private field descriptor.

type RuntimePropertyDescriptor

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
type RuntimePropertyDescriptor struct {
	// Name Property name or symbol description.
	Name string `json:"name"`

	// Value (optional) The value associated with the property.
	Value *RuntimeRemoteObject `json:"value,omitempty"`

	// Writable (optional) True if the value associated with the property may be changed (data descriptors only).
	Writable bool `json:"writable,omitempty"`

	// Get (optional) A function which serves as a getter for the property, or `undefined` if there is no getter
	// (accessor descriptors only).
	Get *RuntimeRemoteObject `json:"get,omitempty"`

	// Set (optional) A function which serves as a setter for the property, or `undefined` if there is no setter
	// (accessor descriptors only).
	Set *RuntimeRemoteObject `json:"set,omitempty"`

	// Configurable True if the type of this property descriptor may be changed and if the property may be
	// deleted from the corresponding object.
	Configurable bool `json:"configurable"`

	// Enumerable True if this property shows up during enumeration of the properties on the corresponding
	// object.
	Enumerable bool `json:"enumerable"`

	// WasThrown (optional) True if the result was thrown during the evaluation.
	WasThrown bool `json:"wasThrown,omitempty"`

	// IsOwn (optional) True if the property is owned for the object.
	IsOwn bool `json:"isOwn,omitempty"`

	// Symbol (optional) Property symbol object, if the property is of the `symbol` type.
	Symbol *RuntimeRemoteObject `json:"symbol,omitempty"`
}

RuntimePropertyDescriptor Object property descriptor.

type RuntimePropertyPreview

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type RuntimePropertyPreview struct {
	// Name Property name.
	Name string `json:"name"`

	// Type Object type. Accessor means that the property itself is an accessor property.
	Type RuntimePropertyPreviewType `json:"type"`

	// Value (optional) User-friendly property value string.
	Value string `json:"value,omitempty"`

	// ValuePreview (optional) Nested value preview.
	ValuePreview *RuntimeObjectPreview `json:"valuePreview,omitempty"`

	// Subtype (optional) Object subtype hint. Specified for `object` type values only.
	Subtype RuntimePropertyPreviewSubtype `json:"subtype,omitempty"`
}

RuntimePropertyPreview (experimental) …

type RuntimePropertyPreviewSubtype

1
type RuntimePropertyPreviewSubtype string

RuntimePropertyPreviewSubtype enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const (
	// RuntimePropertyPreviewSubtypeArray enum const.
	RuntimePropertyPreviewSubtypeArray RuntimePropertyPreviewSubtype = "array"

	// RuntimePropertyPreviewSubtypeNull enum const.
	RuntimePropertyPreviewSubtypeNull RuntimePropertyPreviewSubtype = "null"

	// RuntimePropertyPreviewSubtypeNode enum const.
	RuntimePropertyPreviewSubtypeNode RuntimePropertyPreviewSubtype = "node"

	// RuntimePropertyPreviewSubtypeRegexp enum const.
	RuntimePropertyPreviewSubtypeRegexp RuntimePropertyPreviewSubtype = "regexp"

	// RuntimePropertyPreviewSubtypeDate enum const.
	RuntimePropertyPreviewSubtypeDate RuntimePropertyPreviewSubtype = "date"

	// RuntimePropertyPreviewSubtypeMap enum const.
	RuntimePropertyPreviewSubtypeMap RuntimePropertyPreviewSubtype = "map"

	// RuntimePropertyPreviewSubtypeSet enum const.
	RuntimePropertyPreviewSubtypeSet RuntimePropertyPreviewSubtype = "set"

	// RuntimePropertyPreviewSubtypeWeakmap enum const.
	RuntimePropertyPreviewSubtypeWeakmap RuntimePropertyPreviewSubtype = "weakmap"

	// RuntimePropertyPreviewSubtypeWeakset enum const.
	RuntimePropertyPreviewSubtypeWeakset RuntimePropertyPreviewSubtype = "weakset"

	// RuntimePropertyPreviewSubtypeIterator enum const.
	RuntimePropertyPreviewSubtypeIterator RuntimePropertyPreviewSubtype = "iterator"

	// RuntimePropertyPreviewSubtypeGenerator enum const.
	RuntimePropertyPreviewSubtypeGenerator RuntimePropertyPreviewSubtype = "generator"

	// RuntimePropertyPreviewSubtypeError enum const.
	RuntimePropertyPreviewSubtypeError RuntimePropertyPreviewSubtype = "error"

	// RuntimePropertyPreviewSubtypeProxy enum const.
	RuntimePropertyPreviewSubtypeProxy RuntimePropertyPreviewSubtype = "proxy"

	// RuntimePropertyPreviewSubtypePromise enum const.
	RuntimePropertyPreviewSubtypePromise RuntimePropertyPreviewSubtype = "promise"

	// RuntimePropertyPreviewSubtypeTypedarray enum const.
	RuntimePropertyPreviewSubtypeTypedarray RuntimePropertyPreviewSubtype = "typedarray"

	// RuntimePropertyPreviewSubtypeArraybuffer enum const.
	RuntimePropertyPreviewSubtypeArraybuffer RuntimePropertyPreviewSubtype = "arraybuffer"

	// RuntimePropertyPreviewSubtypeDataview enum const.
	RuntimePropertyPreviewSubtypeDataview RuntimePropertyPreviewSubtype = "dataview"

	// RuntimePropertyPreviewSubtypeWebassemblymemory enum const.
	RuntimePropertyPreviewSubtypeWebassemblymemory RuntimePropertyPreviewSubtype = "webassemblymemory"

	// RuntimePropertyPreviewSubtypeWasmvalue enum const.
	RuntimePropertyPreviewSubtypeWasmvalue RuntimePropertyPreviewSubtype = "wasmvalue"
)

type RuntimePropertyPreviewType

1
type RuntimePropertyPreviewType string

RuntimePropertyPreviewType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const (
	// RuntimePropertyPreviewTypeObject enum const.
	RuntimePropertyPreviewTypeObject RuntimePropertyPreviewType = "object"

	// RuntimePropertyPreviewTypeFunction enum const.
	RuntimePropertyPreviewTypeFunction RuntimePropertyPreviewType = "function"

	// RuntimePropertyPreviewTypeUndefined enum const.
	RuntimePropertyPreviewTypeUndefined RuntimePropertyPreviewType = "undefined"

	// RuntimePropertyPreviewTypeString enum const.
	RuntimePropertyPreviewTypeString RuntimePropertyPreviewType = "string"

	// RuntimePropertyPreviewTypeNumber enum const.
	RuntimePropertyPreviewTypeNumber RuntimePropertyPreviewType = "number"

	// RuntimePropertyPreviewTypeBoolean enum const.
	RuntimePropertyPreviewTypeBoolean RuntimePropertyPreviewType = "boolean"

	// RuntimePropertyPreviewTypeSymbol enum const.
	RuntimePropertyPreviewTypeSymbol RuntimePropertyPreviewType = "symbol"

	// RuntimePropertyPreviewTypeAccessor enum const.
	RuntimePropertyPreviewTypeAccessor RuntimePropertyPreviewType = "accessor"

	// RuntimePropertyPreviewTypeBigint enum const.
	RuntimePropertyPreviewTypeBigint RuntimePropertyPreviewType = "bigint"
)

type RuntimeQueryObjects

1
2
3
4
5
6
7
type RuntimeQueryObjects struct {
	// PrototypeObjectID Identifier of the prototype to return objects for.
	PrototypeObjectID RuntimeRemoteObjectID `json:"prototypeObjectId"`

	// ObjectGroup (optional) Symbolic group name that can be used to release the results.
	ObjectGroup string `json:"objectGroup,omitempty"`
}

RuntimeQueryObjects …

(RuntimeQueryObjects) Call

1
func (m RuntimeQueryObjects) Call(c Client) (*RuntimeQueryObjectsResult, error)

Call the request.

(RuntimeQueryObjects) ProtoReq <- 0.74.0

1
func (m RuntimeQueryObjects) ProtoReq() string

ProtoReq name.

type RuntimeQueryObjectsResult

1
2
3
4
type RuntimeQueryObjectsResult struct {
	// Objects Array with objects.
	Objects *RuntimeRemoteObject `json:"objects"`
}

RuntimeQueryObjectsResult …

type RuntimeReleaseObject

1
2
3
4
type RuntimeReleaseObject struct {
	// ObjectID Identifier of the object to release.
	ObjectID RuntimeRemoteObjectID `json:"objectId"`
}

RuntimeReleaseObject Releases remote object with given id.

(RuntimeReleaseObject) Call

1
func (m RuntimeReleaseObject) Call(c Client) error

Call sends the request.

(RuntimeReleaseObject) ProtoReq <- 0.74.0

1
func (m RuntimeReleaseObject) ProtoReq() string

ProtoReq name.

type RuntimeReleaseObjectGroup

1
2
3
4
type RuntimeReleaseObjectGroup struct {
	// ObjectGroup Symbolic object group name.
	ObjectGroup string `json:"objectGroup"`
}

RuntimeReleaseObjectGroup Releases all remote objects that belong to a given group.

(RuntimeReleaseObjectGroup) Call

1
func (m RuntimeReleaseObjectGroup) Call(c Client) error

Call sends the request.

(RuntimeReleaseObjectGroup) ProtoReq <- 0.74.0

1
func (m RuntimeReleaseObjectGroup) ProtoReq() string

ProtoReq name.

type RuntimeRemoteObject

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
type RuntimeRemoteObject struct {
	// Type Object type.
	Type RuntimeRemoteObjectType `json:"type"`

	// Subtype (optional) Object subtype hint. Specified for `object` type values only.
	// NOTE: If you change anything here, make sure to also update
	// `subtype` in `ObjectPreview` and `PropertyPreview` below.
	Subtype RuntimeRemoteObjectSubtype `json:"subtype,omitempty"`

	// ClassName (optional) Object class (constructor) name. Specified for `object` type values only.
	ClassName string `json:"className,omitempty"`

	// Value (optional) Remote object value in case of primitive values or JSON values (if it was requested).
	Value gson.JSON `json:"value,omitempty"`

	// UnserializableValue (optional) Primitive value which can not be JSON-stringified does not have `value`, but gets this
	// property.
	UnserializableValue RuntimeUnserializableValue `json:"unserializableValue,omitempty"`

	// Description (optional) String representation of the object.
	Description string `json:"description,omitempty"`

	// DeepSerializedValue (experimental) (optional) Deep serialized value.
	DeepSerializedValue *RuntimeDeepSerializedValue `json:"deepSerializedValue,omitempty"`

	// ObjectID (optional) Unique object identifier (for non-primitive values).
	ObjectID RuntimeRemoteObjectID `json:"objectId,omitempty"`

	// Preview (experimental) (optional) Preview containing abbreviated property values. Specified for `object` type values only.
	Preview *RuntimeObjectPreview `json:"preview,omitempty"`

	// CustomPreview (experimental) (optional) ...
	CustomPreview *RuntimeCustomPreview `json:"customPreview,omitempty"`
}

RuntimeRemoteObject Mirror object referencing original JavaScript object.

type RuntimeRemoteObjectID

1
type RuntimeRemoteObjectID string

RuntimeRemoteObjectID Unique object identifier.

type RuntimeRemoteObjectSubtype

1
type RuntimeRemoteObjectSubtype string

RuntimeRemoteObjectSubtype enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const (
	// RuntimeRemoteObjectSubtypeArray enum const.
	RuntimeRemoteObjectSubtypeArray RuntimeRemoteObjectSubtype = "array"

	// RuntimeRemoteObjectSubtypeNull enum const.
	RuntimeRemoteObjectSubtypeNull RuntimeRemoteObjectSubtype = "null"

	// RuntimeRemoteObjectSubtypeNode enum const.
	RuntimeRemoteObjectSubtypeNode RuntimeRemoteObjectSubtype = "node"

	// RuntimeRemoteObjectSubtypeRegexp enum const.
	RuntimeRemoteObjectSubtypeRegexp RuntimeRemoteObjectSubtype = "regexp"

	// RuntimeRemoteObjectSubtypeDate enum const.
	RuntimeRemoteObjectSubtypeDate RuntimeRemoteObjectSubtype = "date"

	// RuntimeRemoteObjectSubtypeMap enum const.
	RuntimeRemoteObjectSubtypeMap RuntimeRemoteObjectSubtype = "map"

	// RuntimeRemoteObjectSubtypeSet enum const.
	RuntimeRemoteObjectSubtypeSet RuntimeRemoteObjectSubtype = "set"

	// RuntimeRemoteObjectSubtypeWeakmap enum const.
	RuntimeRemoteObjectSubtypeWeakmap RuntimeRemoteObjectSubtype = "weakmap"

	// RuntimeRemoteObjectSubtypeWeakset enum const.
	RuntimeRemoteObjectSubtypeWeakset RuntimeRemoteObjectSubtype = "weakset"

	// RuntimeRemoteObjectSubtypeIterator enum const.
	RuntimeRemoteObjectSubtypeIterator RuntimeRemoteObjectSubtype = "iterator"

	// RuntimeRemoteObjectSubtypeGenerator enum const.
	RuntimeRemoteObjectSubtypeGenerator RuntimeRemoteObjectSubtype = "generator"

	// RuntimeRemoteObjectSubtypeError enum const.
	RuntimeRemoteObjectSubtypeError RuntimeRemoteObjectSubtype = "error"

	// RuntimeRemoteObjectSubtypeProxy enum const.
	RuntimeRemoteObjectSubtypeProxy RuntimeRemoteObjectSubtype = "proxy"

	// RuntimeRemoteObjectSubtypePromise enum const.
	RuntimeRemoteObjectSubtypePromise RuntimeRemoteObjectSubtype = "promise"

	// RuntimeRemoteObjectSubtypeTypedarray enum const.
	RuntimeRemoteObjectSubtypeTypedarray RuntimeRemoteObjectSubtype = "typedarray"

	// RuntimeRemoteObjectSubtypeArraybuffer enum const.
	RuntimeRemoteObjectSubtypeArraybuffer RuntimeRemoteObjectSubtype = "arraybuffer"

	// RuntimeRemoteObjectSubtypeDataview enum const.
	RuntimeRemoteObjectSubtypeDataview RuntimeRemoteObjectSubtype = "dataview"

	// RuntimeRemoteObjectSubtypeWebassemblymemory enum const.
	RuntimeRemoteObjectSubtypeWebassemblymemory RuntimeRemoteObjectSubtype = "webassemblymemory"

	// RuntimeRemoteObjectSubtypeWasmvalue enum const.
	RuntimeRemoteObjectSubtypeWasmvalue RuntimeRemoteObjectSubtype = "wasmvalue"
)

type RuntimeRemoteObjectType

1
type RuntimeRemoteObjectType string

RuntimeRemoteObjectType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const (
	// RuntimeRemoteObjectTypeObject enum const.
	RuntimeRemoteObjectTypeObject RuntimeRemoteObjectType = "object"

	// RuntimeRemoteObjectTypeFunction enum const.
	RuntimeRemoteObjectTypeFunction RuntimeRemoteObjectType = "function"

	// RuntimeRemoteObjectTypeUndefined enum const.
	RuntimeRemoteObjectTypeUndefined RuntimeRemoteObjectType = "undefined"

	// RuntimeRemoteObjectTypeString enum const.
	RuntimeRemoteObjectTypeString RuntimeRemoteObjectType = "string"

	// RuntimeRemoteObjectTypeNumber enum const.
	RuntimeRemoteObjectTypeNumber RuntimeRemoteObjectType = "number"

	// RuntimeRemoteObjectTypeBoolean enum const.
	RuntimeRemoteObjectTypeBoolean RuntimeRemoteObjectType = "boolean"

	// RuntimeRemoteObjectTypeSymbol enum const.
	RuntimeRemoteObjectTypeSymbol RuntimeRemoteObjectType = "symbol"

	// RuntimeRemoteObjectTypeBigint enum const.
	RuntimeRemoteObjectTypeBigint RuntimeRemoteObjectType = "bigint"
)

type RuntimeRemoveBinding

1
2
3
4
type RuntimeRemoveBinding struct {
	// Name ...
	Name string `json:"name"`
}

RuntimeRemoveBinding This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.

(RuntimeRemoveBinding) Call

1
func (m RuntimeRemoveBinding) Call(c Client) error

Call sends the request.

(RuntimeRemoveBinding) ProtoReq <- 0.74.0

1
func (m RuntimeRemoveBinding) ProtoReq() string

ProtoReq name.

type RuntimeRunIfWaitingForDebugger

1
type RuntimeRunIfWaitingForDebugger struct{}

RuntimeRunIfWaitingForDebugger Tells inspected instance to run if it was waiting for debugger to attach.

(RuntimeRunIfWaitingForDebugger) Call

1
func (m RuntimeRunIfWaitingForDebugger) Call(c Client) error

Call sends the request.

(RuntimeRunIfWaitingForDebugger) ProtoReq <- 0.74.0

1
func (m RuntimeRunIfWaitingForDebugger) ProtoReq() string

ProtoReq name.

type RuntimeRunScript

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
type RuntimeRunScript struct {
	// ScriptID Id of the script to run.
	ScriptID RuntimeScriptID `json:"scriptId"`

	// ExecutionContextID (optional) Specifies in which execution context to perform script run. If the parameter is omitted the
	// evaluation will be performed in the context of the inspected page.
	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId,omitempty"`

	// ObjectGroup (optional) Symbolic group name that can be used to release multiple objects.
	ObjectGroup string `json:"objectGroup,omitempty"`

	// Silent (optional) In silent mode exceptions thrown during evaluation are not reported and do not pause
	// execution. Overrides `setPauseOnException` state.
	Silent bool `json:"silent,omitempty"`

	// IncludeCommandLineAPI (optional) Determines whether Command Line API should be available during the evaluation.
	IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"`

	// ReturnByValue (optional) Whether the result is expected to be a JSON object which should be sent by value.
	ReturnByValue bool `json:"returnByValue,omitempty"`

	// GeneratePreview (optional) Whether preview should be generated for the result.
	GeneratePreview bool `json:"generatePreview,omitempty"`

	// AwaitPromise (optional) Whether execution should `await` for resulting value and return once awaited promise is
	// resolved.
	AwaitPromise bool `json:"awaitPromise,omitempty"`
}

RuntimeRunScript Runs script with given id in a given context.

(RuntimeRunScript) Call

1
func (m RuntimeRunScript) Call(c Client) (*RuntimeRunScriptResult, error)

Call the request.

(RuntimeRunScript) ProtoReq <- 0.74.0

1
func (m RuntimeRunScript) ProtoReq() string

ProtoReq name.

type RuntimeRunScriptResult

1
2
3
4
5
6
7
type RuntimeRunScriptResult struct {
	// Result Run result.
	Result *RuntimeRemoteObject `json:"result"`

	// ExceptionDetails (optional) Exception details.
	ExceptionDetails *RuntimeExceptionDetails `json:"exceptionDetails,omitempty"`
}

RuntimeRunScriptResult …

type RuntimeScriptID

1
type RuntimeScriptID string

RuntimeScriptID Unique script identifier.

type RuntimeSerializationOptions <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type RuntimeSerializationOptions struct {
	// Serialization ...
	Serialization RuntimeSerializationOptionsSerialization `json:"serialization"`

	// MaxDepth (optional) Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode.
	MaxDepth *int `json:"maxDepth,omitempty"`

	// AdditionalParameters (optional) Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM
	// serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`.
	// Values can be only of type string or integer.
	AdditionalParameters map[string]gson.JSON `json:"additionalParameters,omitempty"`
}

RuntimeSerializationOptions Represents options for serialization. Overrides generatePreview and returnByValue.

type RuntimeSerializationOptionsSerialization <- 0.115.0

1
type RuntimeSerializationOptionsSerialization string

RuntimeSerializationOptionsSerialization enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// RuntimeSerializationOptionsSerializationDeep enum const.
	RuntimeSerializationOptionsSerializationDeep RuntimeSerializationOptionsSerialization = "deep"

	// RuntimeSerializationOptionsSerializationJSON enum const.
	RuntimeSerializationOptionsSerializationJSON RuntimeSerializationOptionsSerialization = "json"

	// RuntimeSerializationOptionsSerializationIDOnly enum const.
	RuntimeSerializationOptionsSerializationIDOnly RuntimeSerializationOptionsSerialization = "idOnly"
)

type RuntimeSetAsyncCallStackDepth

1
2
3
4
5
type RuntimeSetAsyncCallStackDepth struct {
	// MaxDepth Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
	// call stacks (default).
	MaxDepth int `json:"maxDepth"`
}

RuntimeSetAsyncCallStackDepth Enables or disables async call stacks tracking.

(RuntimeSetAsyncCallStackDepth) Call

1
func (m RuntimeSetAsyncCallStackDepth) Call(c Client) error

Call sends the request.

(RuntimeSetAsyncCallStackDepth) ProtoReq <- 0.74.0

1
func (m RuntimeSetAsyncCallStackDepth) ProtoReq() string

ProtoReq name.

type RuntimeSetCustomObjectFormatterEnabled

1
2
3
4
type RuntimeSetCustomObjectFormatterEnabled struct {
	// Enabled ...
	Enabled bool `json:"enabled"`
}

RuntimeSetCustomObjectFormatterEnabled (experimental) …

(RuntimeSetCustomObjectFormatterEnabled) Call

1
func (m RuntimeSetCustomObjectFormatterEnabled) Call(c Client) error

Call sends the request.

(RuntimeSetCustomObjectFormatterEnabled) ProtoReq <- 0.74.0

1
func (m RuntimeSetCustomObjectFormatterEnabled) ProtoReq() string

ProtoReq name.

type RuntimeSetMaxCallStackSizeToCapture

1
2
3
4
type RuntimeSetMaxCallStackSizeToCapture struct {
	// Size ...
	Size int `json:"size"`
}

RuntimeSetMaxCallStackSizeToCapture (experimental) …

(RuntimeSetMaxCallStackSizeToCapture) Call

1
func (m RuntimeSetMaxCallStackSizeToCapture) Call(c Client) error

Call sends the request.

(RuntimeSetMaxCallStackSizeToCapture) ProtoReq <- 0.74.0

1
func (m RuntimeSetMaxCallStackSizeToCapture) ProtoReq() string

ProtoReq name.

type RuntimeStackTrace

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type RuntimeStackTrace struct {
	// Description (optional) String label of this stack trace. For async traces this may be a name of the function that
	// initiated the async call.
	Description string `json:"description,omitempty"`

	// CallFrames JavaScript function name.
	CallFrames []*RuntimeCallFrame `json:"callFrames"`

	// Parent (optional) Asynchronous JavaScript stack trace that preceded this stack, if available.
	Parent *RuntimeStackTrace `json:"parent,omitempty"`

	// ParentID (experimental) (optional) Asynchronous JavaScript stack trace that preceded this stack, if available.
	ParentID *RuntimeStackTraceID `json:"parentId,omitempty"`
}

RuntimeStackTrace Call frames for assertions or error messages.

type RuntimeStackTraceID

1
2
3
4
5
6
7
type RuntimeStackTraceID struct {
	// ID ...
	ID string `json:"id"`

	// DebuggerID (optional) ...
	DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId,omitempty"`
}

RuntimeStackTraceID (experimental) If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages.

type RuntimeTerminateExecution

1
type RuntimeTerminateExecution struct{}

RuntimeTerminateExecution (experimental) Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.

(RuntimeTerminateExecution) Call

1
func (m RuntimeTerminateExecution) Call(c Client) error

Call sends the request.

(RuntimeTerminateExecution) ProtoReq <- 0.74.0

1
func (m RuntimeTerminateExecution) ProtoReq() string

ProtoReq name.

type RuntimeTimeDelta

1
type RuntimeTimeDelta float64

RuntimeTimeDelta Number of milliseconds.

type RuntimeTimestamp

1
type RuntimeTimestamp float64

RuntimeTimestamp Number of milliseconds since epoch.

type RuntimeUniqueDebuggerID

1
type RuntimeUniqueDebuggerID string

RuntimeUniqueDebuggerID (experimental) Unique identifier of current debugger.

type RuntimeUnserializableValue

1
type RuntimeUnserializableValue string

RuntimeUnserializableValue Primitive value which cannot be JSON-stringified. Includes values -0, NaN, Infinity, -Infinity, and bigint literals.

type SchemaDomain

1
2
3
4
5
6
7
type SchemaDomain struct {
	// Name Domain name.
	Name string `json:"name"`

	// Version Domain version.
	Version string `json:"version"`
}

SchemaDomain Description of the protocol domain.

type SchemaGetDomains

1
type SchemaGetDomains struct{}

SchemaGetDomains Returns supported domains.

(SchemaGetDomains) Call

1
func (m SchemaGetDomains) Call(c Client) (*SchemaGetDomainsResult, error)

Call the request.

(SchemaGetDomains) ProtoReq <- 0.74.0

1
func (m SchemaGetDomains) ProtoReq() string

ProtoReq name.

type SchemaGetDomainsResult

1
2
3
4
type SchemaGetDomainsResult struct {
	// Domains List of supported domains.
	Domains []*SchemaDomain `json:"domains"`
}

SchemaGetDomainsResult …

type SecurityCertificateError

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type SecurityCertificateError struct {
	// EventID The ID of the event.
	EventID int `json:"eventId"`

	// ErrorType The type of the error.
	ErrorType string `json:"errorType"`

	// RequestURL The url that was requested.
	RequestURL string `json:"requestURL"`
}

SecurityCertificateError (deprecated) There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the handleCertificateError command. Note: this event does not fire if the certificate error has been allowed internally. Only one client per target should override certificate errors at the same time.

(SecurityCertificateError) ProtoEvent <- 0.72.0

1
func (evt SecurityCertificateError) ProtoEvent() string

ProtoEvent name.

type SecurityCertificateErrorAction

1
type SecurityCertificateErrorAction string

SecurityCertificateErrorAction The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request.

1
2
3
4
5
6
7
const (
	// SecurityCertificateErrorActionContinue enum const.
	SecurityCertificateErrorActionContinue SecurityCertificateErrorAction = "continue"

	// SecurityCertificateErrorActionCancel enum const.
	SecurityCertificateErrorActionCancel SecurityCertificateErrorAction = "cancel"
)

type SecurityCertificateID

1
type SecurityCertificateID int

SecurityCertificateID An internal certificate ID value.

type SecurityCertificateSecurityState

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
type SecurityCertificateSecurityState struct {
	// Protocol name (e.g. "TLS 1.2" or "QUIC").
	Protocol string `json:"protocol"`

	// KeyExchange Key Exchange used by the connection, or the empty string if not applicable.
	KeyExchange string `json:"keyExchange"`

	// KeyExchangeGroup (optional) (EC)DH group used by the connection, if applicable.
	KeyExchangeGroup string `json:"keyExchangeGroup,omitempty"`

	// Cipher name.
	Cipher string `json:"cipher"`

	// Mac (optional) TLS MAC. Note that AEAD ciphers do not have separate MACs.
	Mac string `json:"mac,omitempty"`

	// Certificate Page certificate.
	Certificate []string `json:"certificate"`

	// SubjectName Certificate subject name.
	SubjectName string `json:"subjectName"`

	// Issuer Name of the issuing CA.
	Issuer string `json:"issuer"`

	// ValidFrom Certificate valid from date.
	ValidFrom TimeSinceEpoch `json:"validFrom"`

	// ValidTo Certificate valid to (expiration) date
	ValidTo TimeSinceEpoch `json:"validTo"`

	// CertificateNetworkError (optional) The highest priority network error code, if the certificate has an error.
	CertificateNetworkError string `json:"certificateNetworkError,omitempty"`

	// CertificateHasWeakSignature True if the certificate uses a weak signature algorithm.
	CertificateHasWeakSignature bool `json:"certificateHasWeakSignature"`

	// CertificateHasSha1Signature True if the certificate has a SHA1 signature in the chain.
	CertificateHasSha1Signature bool `json:"certificateHasSha1Signature"`

	// ModernSSL True if modern SSL
	ModernSSL bool `json:"modernSSL"`

	// ObsoleteSslProtocol True if the connection is using an obsolete SSL protocol.
	ObsoleteSslProtocol bool `json:"obsoleteSslProtocol"`

	// ObsoleteSslKeyExchange True if the connection is using an obsolete SSL key exchange.
	ObsoleteSslKeyExchange bool `json:"obsoleteSslKeyExchange"`

	// ObsoleteSslCipher True if the connection is using an obsolete SSL cipher.
	ObsoleteSslCipher bool `json:"obsoleteSslCipher"`

	// ObsoleteSslSignature True if the connection is using an obsolete SSL signature.
	ObsoleteSslSignature bool `json:"obsoleteSslSignature"`
}

SecurityCertificateSecurityState (experimental) Details about the security state of the page certificate.

type SecurityDisable

1
type SecurityDisable struct{}

SecurityDisable Disables tracking security state changes.

(SecurityDisable) Call

1
func (m SecurityDisable) Call(c Client) error

Call sends the request.

(SecurityDisable) ProtoReq <- 0.74.0

1
func (m SecurityDisable) ProtoReq() string

ProtoReq name.

type SecurityEnable

1
type SecurityEnable struct{}

SecurityEnable Enables tracking security state changes.

(SecurityEnable) Call

1
func (m SecurityEnable) Call(c Client) error

Call sends the request.

(SecurityEnable) ProtoReq <- 0.74.0

1
func (m SecurityEnable) ProtoReq() string

ProtoReq name.

type SecurityHandleCertificateError

1
2
3
4
5
6
7
type SecurityHandleCertificateError struct {
	// EventID The ID of the event.
	EventID int `json:"eventId"`

	// Action The action to take on the certificate error.
	Action SecurityCertificateErrorAction `json:"action"`
}

SecurityHandleCertificateError (deprecated) Handles a certificate error that fired a certificateError event.

(SecurityHandleCertificateError) Call

1
func (m SecurityHandleCertificateError) Call(c Client) error

Call sends the request.

(SecurityHandleCertificateError) ProtoReq <- 0.74.0

1
func (m SecurityHandleCertificateError) ProtoReq() string

ProtoReq name.

type SecurityInsecureContentStatus

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type SecurityInsecureContentStatus struct {
	// RanMixedContent Always false.
	RanMixedContent bool `json:"ranMixedContent"`

	// DisplayedMixedContent Always false.
	DisplayedMixedContent bool `json:"displayedMixedContent"`

	// ContainedMixedForm Always false.
	ContainedMixedForm bool `json:"containedMixedForm"`

	// RanContentWithCertErrors Always false.
	RanContentWithCertErrors bool `json:"ranContentWithCertErrors"`

	// DisplayedContentWithCertErrors Always false.
	DisplayedContentWithCertErrors bool `json:"displayedContentWithCertErrors"`

	// RanInsecureContentStyle Always set to unknown.
	RanInsecureContentStyle SecuritySecurityState `json:"ranInsecureContentStyle"`

	// DisplayedInsecureContentStyle Always set to unknown.
	DisplayedInsecureContentStyle SecuritySecurityState `json:"displayedInsecureContentStyle"`
}

SecurityInsecureContentStatus (deprecated) Information about insecure content on the page.

type SecurityMixedContentType

1
type SecurityMixedContentType string

SecurityMixedContentType A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// SecurityMixedContentTypeBlockable enum const.
	SecurityMixedContentTypeBlockable SecurityMixedContentType = "blockable"

	// SecurityMixedContentTypeOptionallyBlockable enum const.
	SecurityMixedContentTypeOptionallyBlockable SecurityMixedContentType = "optionally-blockable"

	// SecurityMixedContentTypeNone enum const.
	SecurityMixedContentTypeNone SecurityMixedContentType = "none"
)

type SecuritySafetyTipInfo

1
2
3
4
5
6
7
type SecuritySafetyTipInfo struct {
	// SafetyTipStatus Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.
	SafetyTipStatus SecuritySafetyTipStatus `json:"safetyTipStatus"`

	// SafeURL (optional) The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches.
	SafeURL string `json:"safeUrl,omitempty"`
}

SecuritySafetyTipInfo (experimental) …

type SecuritySafetyTipStatus

1
type SecuritySafetyTipStatus string

SecuritySafetyTipStatus (experimental) …

1
2
3
4
5
6
7
const (
	// SecuritySafetyTipStatusBadReputation enum const.
	SecuritySafetyTipStatusBadReputation SecuritySafetyTipStatus = "badReputation"

	// SecuritySafetyTipStatusLookalike enum const.
	SecuritySafetyTipStatusLookalike SecuritySafetyTipStatus = "lookalike"
)

type SecuritySecurityState

1
type SecuritySecurityState string

SecuritySecurityState The security level of a page or resource.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// SecuritySecurityStateUnknown enum const.
	SecuritySecurityStateUnknown SecuritySecurityState = "unknown"

	// SecuritySecurityStateNeutral enum const.
	SecuritySecurityStateNeutral SecuritySecurityState = "neutral"

	// SecuritySecurityStateInsecure enum const.
	SecuritySecurityStateInsecure SecuritySecurityState = "insecure"

	// SecuritySecurityStateSecure enum const.
	SecuritySecurityStateSecure SecuritySecurityState = "secure"

	// SecuritySecurityStateInfo enum const.
	SecuritySecurityStateInfo SecuritySecurityState = "info"

	// SecuritySecurityStateInsecureBroken enum const.
	SecuritySecurityStateInsecureBroken SecuritySecurityState = "insecure-broken"
)

type SecuritySecurityStateChanged

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type SecuritySecurityStateChanged struct {
	// SecurityState Security state.
	SecurityState SecuritySecurityState `json:"securityState"`

	// SchemeIsCryptographic (deprecated) True if the page was loaded over cryptographic transport such as HTTPS.
	SchemeIsCryptographic bool `json:"schemeIsCryptographic"`

	// Explanations (deprecated) Previously a list of explanations for the security state. Now always
	// empty.
	Explanations []*SecuritySecurityStateExplanation `json:"explanations"`

	// InsecureContentStatus (deprecated) Information about insecure content on the page.
	InsecureContentStatus *SecurityInsecureContentStatus `json:"insecureContentStatus"`

	// Summary (deprecated) (optional) Overrides user-visible description of the state. Always omitted.
	Summary string `json:"summary,omitempty"`
}

SecuritySecurityStateChanged (deprecated) The security state of the page changed. No longer being sent.

(SecuritySecurityStateChanged) ProtoEvent <- 0.72.0

1
func (evt SecuritySecurityStateChanged) ProtoEvent() string

ProtoEvent name.

type SecuritySecurityStateExplanation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type SecuritySecurityStateExplanation struct {
	// SecurityState Security state representing the severity of the factor being explained.
	SecurityState SecuritySecurityState `json:"securityState"`

	// Title describing the type of factor.
	Title string `json:"title"`

	// Summary Short phrase describing the type of factor.
	Summary string `json:"summary"`

	// Description Full text explanation of the factor.
	Description string `json:"description"`

	// MixedContentType The type of mixed content described by the explanation.
	MixedContentType SecurityMixedContentType `json:"mixedContentType"`

	// Certificate Page certificate.
	Certificate []string `json:"certificate"`

	// Recommendations (optional) Recommendations to fix any issues.
	Recommendations []string `json:"recommendations,omitempty"`
}

SecuritySecurityStateExplanation An explanation of an factor contributing to the security state.

type SecuritySetIgnoreCertificateErrors

1
2
3
4
type SecuritySetIgnoreCertificateErrors struct {
	// Ignore If true, all certificate errors will be ignored.
	Ignore bool `json:"ignore"`
}

SecuritySetIgnoreCertificateErrors Enable/disable whether all certificate errors should be ignored.

(SecuritySetIgnoreCertificateErrors) Call

1
func (m SecuritySetIgnoreCertificateErrors) Call(c Client) error

Call sends the request.

(SecuritySetIgnoreCertificateErrors) ProtoReq <- 0.74.0

1
func (m SecuritySetIgnoreCertificateErrors) ProtoReq() string

ProtoReq name.

type SecuritySetOverrideCertificateErrors

1
2
3
4
type SecuritySetOverrideCertificateErrors struct {
	// Override If true, certificate errors will be overridden.
	Override bool `json:"override"`
}

SecuritySetOverrideCertificateErrors (deprecated) Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with handleCertificateError commands.

(SecuritySetOverrideCertificateErrors) Call

1
func (m SecuritySetOverrideCertificateErrors) Call(c Client) error

Call sends the request.

(SecuritySetOverrideCertificateErrors) ProtoReq <- 0.74.0

1
func (m SecuritySetOverrideCertificateErrors) ProtoReq() string

ProtoReq name.

type SecurityVisibleSecurityState

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type SecurityVisibleSecurityState struct {
	// SecurityState The security level of the page.
	SecurityState SecuritySecurityState `json:"securityState"`

	// CertificateSecurityState (optional) Security state details about the page certificate.
	CertificateSecurityState *SecurityCertificateSecurityState `json:"certificateSecurityState,omitempty"`

	// SafetyTipInfo (optional) The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.
	SafetyTipInfo *SecuritySafetyTipInfo `json:"safetyTipInfo,omitempty"`

	// SecurityStateIssueIDs Array of security state issues ids.
	SecurityStateIssueIDs []string `json:"securityStateIssueIds"`
}

SecurityVisibleSecurityState (experimental) Security state information about the page.

type SecurityVisibleSecurityStateChanged

1
2
3
4
type SecurityVisibleSecurityStateChanged struct {
	// VisibleSecurityState Security state information about the page.
	VisibleSecurityState *SecurityVisibleSecurityState `json:"visibleSecurityState"`
}

SecurityVisibleSecurityStateChanged (experimental) The security state of the page changed.

(SecurityVisibleSecurityStateChanged) ProtoEvent <- 0.72.0

1
func (evt SecurityVisibleSecurityStateChanged) ProtoEvent() string

ProtoEvent name.

type ServiceWorkerDeliverPushMessage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ServiceWorkerDeliverPushMessage struct {
	// Origin ...
	Origin string `json:"origin"`

	// RegistrationID ...
	RegistrationID ServiceWorkerRegistrationID `json:"registrationId"`

	// Data ...
	Data string `json:"data"`
}

ServiceWorkerDeliverPushMessage …

(ServiceWorkerDeliverPushMessage) Call

1
func (m ServiceWorkerDeliverPushMessage) Call(c Client) error

Call sends the request.

(ServiceWorkerDeliverPushMessage) ProtoReq <- 0.74.0

1
func (m ServiceWorkerDeliverPushMessage) ProtoReq() string

ProtoReq name.

type ServiceWorkerDisable

1
type ServiceWorkerDisable struct{}

ServiceWorkerDisable …

(ServiceWorkerDisable) Call

1
func (m ServiceWorkerDisable) Call(c Client) error

Call sends the request.

(ServiceWorkerDisable) ProtoReq <- 0.74.0

1
func (m ServiceWorkerDisable) ProtoReq() string

ProtoReq name.

type ServiceWorkerDispatchPeriodicSyncEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ServiceWorkerDispatchPeriodicSyncEvent struct {
	// Origin ...
	Origin string `json:"origin"`

	// RegistrationID ...
	RegistrationID ServiceWorkerRegistrationID `json:"registrationId"`

	// Tag ...
	Tag string `json:"tag"`
}

ServiceWorkerDispatchPeriodicSyncEvent …

(ServiceWorkerDispatchPeriodicSyncEvent) Call

1
func (m ServiceWorkerDispatchPeriodicSyncEvent) Call(c Client) error

Call sends the request.

(ServiceWorkerDispatchPeriodicSyncEvent) ProtoReq <- 0.74.0

1
func (m ServiceWorkerDispatchPeriodicSyncEvent) ProtoReq() string

ProtoReq name.

type ServiceWorkerDispatchSyncEvent

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type ServiceWorkerDispatchSyncEvent struct {
	// Origin ...
	Origin string `json:"origin"`

	// RegistrationID ...
	RegistrationID ServiceWorkerRegistrationID `json:"registrationId"`

	// Tag ...
	Tag string `json:"tag"`

	// LastChance ...
	LastChance bool `json:"lastChance"`
}

ServiceWorkerDispatchSyncEvent …

(ServiceWorkerDispatchSyncEvent) Call

1
func (m ServiceWorkerDispatchSyncEvent) Call(c Client) error

Call sends the request.

(ServiceWorkerDispatchSyncEvent) ProtoReq <- 0.74.0

1
func (m ServiceWorkerDispatchSyncEvent) ProtoReq() string

ProtoReq name.

type ServiceWorkerEnable

1
type ServiceWorkerEnable struct{}

ServiceWorkerEnable …

(ServiceWorkerEnable) Call

1
func (m ServiceWorkerEnable) Call(c Client) error

Call sends the request.

(ServiceWorkerEnable) ProtoReq <- 0.74.0

1
func (m ServiceWorkerEnable) ProtoReq() string

ProtoReq name.

type ServiceWorkerInspectWorker

1
2
3
4
type ServiceWorkerInspectWorker struct {
	// VersionID ...
	VersionID string `json:"versionId"`
}

ServiceWorkerInspectWorker …

(ServiceWorkerInspectWorker) Call

1
func (m ServiceWorkerInspectWorker) Call(c Client) error

Call sends the request.

(ServiceWorkerInspectWorker) ProtoReq <- 0.74.0

1
func (m ServiceWorkerInspectWorker) ProtoReq() string

ProtoReq name.

type ServiceWorkerRegistrationID

1
type ServiceWorkerRegistrationID string

ServiceWorkerRegistrationID …

type ServiceWorkerServiceWorkerErrorMessage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type ServiceWorkerServiceWorkerErrorMessage struct {
	// ErrorMessage ...
	ErrorMessage string `json:"errorMessage"`

	// RegistrationID ...
	RegistrationID ServiceWorkerRegistrationID `json:"registrationId"`

	// VersionID ...
	VersionID string `json:"versionId"`

	// SourceURL ...
	SourceURL string `json:"sourceURL"`

	// LineNumber ...
	LineNumber int `json:"lineNumber"`

	// ColumnNumber ...
	ColumnNumber int `json:"columnNumber"`
}

ServiceWorkerServiceWorkerErrorMessage ServiceWorker error message.

type ServiceWorkerServiceWorkerRegistration

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type ServiceWorkerServiceWorkerRegistration struct {
	// RegistrationID ...
	RegistrationID ServiceWorkerRegistrationID `json:"registrationId"`

	// ScopeURL ...
	ScopeURL string `json:"scopeURL"`

	// IsDeleted ...
	IsDeleted bool `json:"isDeleted"`
}

ServiceWorkerServiceWorkerRegistration ServiceWorker registration.

type ServiceWorkerServiceWorkerVersion

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
type ServiceWorkerServiceWorkerVersion struct {
	// VersionID ...
	VersionID string `json:"versionId"`

	// RegistrationID ...
	RegistrationID ServiceWorkerRegistrationID `json:"registrationId"`

	// ScriptURL ...
	ScriptURL string `json:"scriptURL"`

	// RunningStatus ...
	RunningStatus ServiceWorkerServiceWorkerVersionRunningStatus `json:"runningStatus"`

	// Status ...
	Status ServiceWorkerServiceWorkerVersionStatus `json:"status"`

	// ScriptLastModified (optional) The Last-Modified header value of the main script.
	ScriptLastModified *float64 `json:"scriptLastModified,omitempty"`

	// ScriptResponseTime (optional) The time at which the response headers of the main script were received from the server.
	// For cached script it is the last time the cache entry was validated.
	ScriptResponseTime *float64 `json:"scriptResponseTime,omitempty"`

	// ControlledClients (optional) ...
	ControlledClients []TargetTargetID `json:"controlledClients,omitempty"`

	// TargetID (optional) ...
	TargetID TargetTargetID `json:"targetId,omitempty"`

	// RouterRules (optional) ...
	RouterRules string `json:"routerRules,omitempty"`
}

ServiceWorkerServiceWorkerVersion ServiceWorker version.

type ServiceWorkerServiceWorkerVersionRunningStatus

1
type ServiceWorkerServiceWorkerVersionRunningStatus string

ServiceWorkerServiceWorkerVersionRunningStatus …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// ServiceWorkerServiceWorkerVersionRunningStatusStopped enum const.
	ServiceWorkerServiceWorkerVersionRunningStatusStopped ServiceWorkerServiceWorkerVersionRunningStatus = "stopped"

	// ServiceWorkerServiceWorkerVersionRunningStatusStarting enum const.
	ServiceWorkerServiceWorkerVersionRunningStatusStarting ServiceWorkerServiceWorkerVersionRunningStatus = "starting"

	// ServiceWorkerServiceWorkerVersionRunningStatusRunning enum const.
	ServiceWorkerServiceWorkerVersionRunningStatusRunning ServiceWorkerServiceWorkerVersionRunningStatus = "running"

	// ServiceWorkerServiceWorkerVersionRunningStatusStopping enum const.
	ServiceWorkerServiceWorkerVersionRunningStatusStopping ServiceWorkerServiceWorkerVersionRunningStatus = "stopping"
)

type ServiceWorkerServiceWorkerVersionStatus

1
type ServiceWorkerServiceWorkerVersionStatus string

ServiceWorkerServiceWorkerVersionStatus …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// ServiceWorkerServiceWorkerVersionStatusNew enum const.
	ServiceWorkerServiceWorkerVersionStatusNew ServiceWorkerServiceWorkerVersionStatus = "new"

	// ServiceWorkerServiceWorkerVersionStatusInstalling enum const.
	ServiceWorkerServiceWorkerVersionStatusInstalling ServiceWorkerServiceWorkerVersionStatus = "installing"

	// ServiceWorkerServiceWorkerVersionStatusInstalled enum const.
	ServiceWorkerServiceWorkerVersionStatusInstalled ServiceWorkerServiceWorkerVersionStatus = "installed"

	// ServiceWorkerServiceWorkerVersionStatusActivating enum const.
	ServiceWorkerServiceWorkerVersionStatusActivating ServiceWorkerServiceWorkerVersionStatus = "activating"

	// ServiceWorkerServiceWorkerVersionStatusActivated enum const.
	ServiceWorkerServiceWorkerVersionStatusActivated ServiceWorkerServiceWorkerVersionStatus = "activated"

	// ServiceWorkerServiceWorkerVersionStatusRedundant enum const.
	ServiceWorkerServiceWorkerVersionStatusRedundant ServiceWorkerServiceWorkerVersionStatus = "redundant"
)

type ServiceWorkerSetForceUpdateOnPageLoad

1
2
3
4
type ServiceWorkerSetForceUpdateOnPageLoad struct {
	// ForceUpdateOnPageLoad ...
	ForceUpdateOnPageLoad bool `json:"forceUpdateOnPageLoad"`
}

ServiceWorkerSetForceUpdateOnPageLoad …

(ServiceWorkerSetForceUpdateOnPageLoad) Call

1
func (m ServiceWorkerSetForceUpdateOnPageLoad) Call(c Client) error

Call sends the request.

(ServiceWorkerSetForceUpdateOnPageLoad) ProtoReq <- 0.74.0

1
func (m ServiceWorkerSetForceUpdateOnPageLoad) ProtoReq() string

ProtoReq name.

type ServiceWorkerSkipWaiting

1
2
3
4
type ServiceWorkerSkipWaiting struct {
	// ScopeURL ...
	ScopeURL string `json:"scopeURL"`
}

ServiceWorkerSkipWaiting …

(ServiceWorkerSkipWaiting) Call

1
func (m ServiceWorkerSkipWaiting) Call(c Client) error

Call sends the request.

(ServiceWorkerSkipWaiting) ProtoReq <- 0.74.0

1
func (m ServiceWorkerSkipWaiting) ProtoReq() string

ProtoReq name.

type ServiceWorkerStartWorker

1
2
3
4
type ServiceWorkerStartWorker struct {
	// ScopeURL ...
	ScopeURL string `json:"scopeURL"`
}

ServiceWorkerStartWorker …

(ServiceWorkerStartWorker) Call

1
func (m ServiceWorkerStartWorker) Call(c Client) error

Call sends the request.

(ServiceWorkerStartWorker) ProtoReq <- 0.74.0

1
func (m ServiceWorkerStartWorker) ProtoReq() string

ProtoReq name.

type ServiceWorkerStopAllWorkers

1
type ServiceWorkerStopAllWorkers struct{}

ServiceWorkerStopAllWorkers …

(ServiceWorkerStopAllWorkers) Call

1
func (m ServiceWorkerStopAllWorkers) Call(c Client) error

Call sends the request.

(ServiceWorkerStopAllWorkers) ProtoReq <- 0.74.0

1
func (m ServiceWorkerStopAllWorkers) ProtoReq() string

ProtoReq name.

type ServiceWorkerStopWorker

1
2
3
4
type ServiceWorkerStopWorker struct {
	// VersionID ...
	VersionID string `json:"versionId"`
}

ServiceWorkerStopWorker …

(ServiceWorkerStopWorker) Call

1
func (m ServiceWorkerStopWorker) Call(c Client) error

Call sends the request.

(ServiceWorkerStopWorker) ProtoReq <- 0.74.0

1
func (m ServiceWorkerStopWorker) ProtoReq() string

ProtoReq name.

type ServiceWorkerUnregister

1
2
3
4
type ServiceWorkerUnregister struct {
	// ScopeURL ...
	ScopeURL string `json:"scopeURL"`
}

ServiceWorkerUnregister …

(ServiceWorkerUnregister) Call

1
func (m ServiceWorkerUnregister) Call(c Client) error

Call sends the request.

(ServiceWorkerUnregister) ProtoReq <- 0.74.0

1
func (m ServiceWorkerUnregister) ProtoReq() string

ProtoReq name.

type ServiceWorkerUpdateRegistration

1
2
3
4
type ServiceWorkerUpdateRegistration struct {
	// ScopeURL ...
	ScopeURL string `json:"scopeURL"`
}

ServiceWorkerUpdateRegistration …

(ServiceWorkerUpdateRegistration) Call

1
func (m ServiceWorkerUpdateRegistration) Call(c Client) error

Call sends the request.

(ServiceWorkerUpdateRegistration) ProtoReq <- 0.74.0

1
func (m ServiceWorkerUpdateRegistration) ProtoReq() string

ProtoReq name.

type ServiceWorkerWorkerErrorReported

1
2
3
4
type ServiceWorkerWorkerErrorReported struct {
	// ErrorMessage ...
	ErrorMessage *ServiceWorkerServiceWorkerErrorMessage `json:"errorMessage"`
}

ServiceWorkerWorkerErrorReported …

(ServiceWorkerWorkerErrorReported) ProtoEvent <- 0.72.0

1
func (evt ServiceWorkerWorkerErrorReported) ProtoEvent() string

ProtoEvent name.

type ServiceWorkerWorkerRegistrationUpdated

1
2
3
4
type ServiceWorkerWorkerRegistrationUpdated struct {
	// Registrations ...
	Registrations []*ServiceWorkerServiceWorkerRegistration `json:"registrations"`
}

ServiceWorkerWorkerRegistrationUpdated …

(ServiceWorkerWorkerRegistrationUpdated) ProtoEvent <- 0.72.0

1
func (evt ServiceWorkerWorkerRegistrationUpdated) ProtoEvent() string

ProtoEvent name.

type ServiceWorkerWorkerVersionUpdated

1
2
3
4
type ServiceWorkerWorkerVersionUpdated struct {
	// Versions ...
	Versions []*ServiceWorkerServiceWorkerVersion `json:"versions"`
}

ServiceWorkerWorkerVersionUpdated …

(ServiceWorkerWorkerVersionUpdated) ProtoEvent <- 0.72.0

1
func (evt ServiceWorkerWorkerVersionUpdated) ProtoEvent() string

ProtoEvent name.

type Sessionable <- 0.72.0

1
2
3
type Sessionable interface {
	GetSessionID() TargetSessionID
}

Sessionable type has a proto.TargetSessionID for its methods.

type Shape <- 0.88.11

1
type Shape []DOMQuad

Shape is a list of DOMQuad.

(Shape) Box <- 0.88.11

1
func (qs Shape) Box() (box *DOMRect)

Box returns the smallest leveled rectangle that can cover the whole shape.

type StorageAttributionReportingAggregatableDedupKey <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingAggregatableDedupKey struct {
	// DedupKey (optional) ...
	DedupKey StorageUnsignedInt64AsBase10 `json:"dedupKey,omitempty"`

	// Filters ...
	Filters *StorageAttributionReportingFilterPair `json:"filters"`
}

StorageAttributionReportingAggregatableDedupKey (experimental) …

type StorageAttributionReportingAggregatableResult <- 0.115.0

1
type StorageAttributionReportingAggregatableResult string

StorageAttributionReportingAggregatableResult (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const (
	// StorageAttributionReportingAggregatableResultSuccess enum const.
	StorageAttributionReportingAggregatableResultSuccess StorageAttributionReportingAggregatableResult = "success"

	// StorageAttributionReportingAggregatableResultInternalError enum const.
	StorageAttributionReportingAggregatableResultInternalError StorageAttributionReportingAggregatableResult = "internalError"

	// StorageAttributionReportingAggregatableResultNoCapacityForAttributionDestination enum const.
	StorageAttributionReportingAggregatableResultNoCapacityForAttributionDestination StorageAttributionReportingAggregatableResult = "noCapacityForAttributionDestination"

	// StorageAttributionReportingAggregatableResultNoMatchingSources enum const.
	StorageAttributionReportingAggregatableResultNoMatchingSources StorageAttributionReportingAggregatableResult = "noMatchingSources"

	// StorageAttributionReportingAggregatableResultExcessiveAttributions enum const.
	StorageAttributionReportingAggregatableResultExcessiveAttributions StorageAttributionReportingAggregatableResult = "excessiveAttributions"

	// StorageAttributionReportingAggregatableResultExcessiveReportingOrigins enum const.
	StorageAttributionReportingAggregatableResultExcessiveReportingOrigins StorageAttributionReportingAggregatableResult = "excessiveReportingOrigins"

	// StorageAttributionReportingAggregatableResultNoHistograms enum const.
	StorageAttributionReportingAggregatableResultNoHistograms StorageAttributionReportingAggregatableResult = "noHistograms"

	// StorageAttributionReportingAggregatableResultInsufficientBudget enum const.
	StorageAttributionReportingAggregatableResultInsufficientBudget StorageAttributionReportingAggregatableResult = "insufficientBudget"

	// StorageAttributionReportingAggregatableResultNoMatchingSourceFilterData enum const.
	StorageAttributionReportingAggregatableResultNoMatchingSourceFilterData StorageAttributionReportingAggregatableResult = "noMatchingSourceFilterData"

	// StorageAttributionReportingAggregatableResultNotRegistered enum const.
	StorageAttributionReportingAggregatableResultNotRegistered StorageAttributionReportingAggregatableResult = "notRegistered"

	// StorageAttributionReportingAggregatableResultProhibitedByBrowserPolicy enum const.
	StorageAttributionReportingAggregatableResultProhibitedByBrowserPolicy StorageAttributionReportingAggregatableResult = "prohibitedByBrowserPolicy"

	// StorageAttributionReportingAggregatableResultDeduplicated enum const.
	StorageAttributionReportingAggregatableResultDeduplicated StorageAttributionReportingAggregatableResult = "deduplicated"

	// StorageAttributionReportingAggregatableResultReportWindowPassed enum const.
	StorageAttributionReportingAggregatableResultReportWindowPassed StorageAttributionReportingAggregatableResult = "reportWindowPassed"

	// StorageAttributionReportingAggregatableResultExcessiveReports enum const.
	StorageAttributionReportingAggregatableResultExcessiveReports StorageAttributionReportingAggregatableResult = "excessiveReports"
)

type StorageAttributionReportingAggregatableTriggerData <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type StorageAttributionReportingAggregatableTriggerData struct {
	// KeyPiece ...
	KeyPiece StorageUnsignedInt128AsBase16 `json:"keyPiece"`

	// SourceKeys ...
	SourceKeys []string `json:"sourceKeys"`

	// Filters ...
	Filters *StorageAttributionReportingFilterPair `json:"filters"`
}

StorageAttributionReportingAggregatableTriggerData (experimental) …

type StorageAttributionReportingAggregatableValueDictEntry <- 0.115.0

1
2
3
4
5
6
7
8
type StorageAttributionReportingAggregatableValueDictEntry struct {
	// Key ...
	Key string `json:"key"`

	// Value number instead of integer because not all uint32 can be represented by
	// int
	Value float64 `json:"value"`
}

StorageAttributionReportingAggregatableValueDictEntry (experimental) …

type StorageAttributionReportingAggregatableValueEntry <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingAggregatableValueEntry struct {
	// Values ...
	Values []*StorageAttributionReportingAggregatableValueDictEntry `json:"values"`

	// Filters ...
	Filters *StorageAttributionReportingFilterPair `json:"filters"`
}

StorageAttributionReportingAggregatableValueEntry (experimental) …

type StorageAttributionReportingAggregationKeysEntry <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingAggregationKeysEntry struct {
	// Key ...
	Key string `json:"key"`

	// Value ...
	Value StorageUnsignedInt128AsBase16 `json:"value"`
}

StorageAttributionReportingAggregationKeysEntry (experimental) …

type StorageAttributionReportingEventLevelResult <- 0.115.0

1
type StorageAttributionReportingEventLevelResult string

StorageAttributionReportingEventLevelResult (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const (
	// StorageAttributionReportingEventLevelResultSuccess enum const.
	StorageAttributionReportingEventLevelResultSuccess StorageAttributionReportingEventLevelResult = "success"

	// StorageAttributionReportingEventLevelResultSuccessDroppedLowerPriority enum const.
	StorageAttributionReportingEventLevelResultSuccessDroppedLowerPriority StorageAttributionReportingEventLevelResult = "successDroppedLowerPriority"

	// StorageAttributionReportingEventLevelResultInternalError enum const.
	StorageAttributionReportingEventLevelResultInternalError StorageAttributionReportingEventLevelResult = "internalError"

	// StorageAttributionReportingEventLevelResultNoCapacityForAttributionDestination enum const.
	StorageAttributionReportingEventLevelResultNoCapacityForAttributionDestination StorageAttributionReportingEventLevelResult = "noCapacityForAttributionDestination"

	// StorageAttributionReportingEventLevelResultNoMatchingSources enum const.
	StorageAttributionReportingEventLevelResultNoMatchingSources StorageAttributionReportingEventLevelResult = "noMatchingSources"

	// StorageAttributionReportingEventLevelResultDeduplicated enum const.
	StorageAttributionReportingEventLevelResultDeduplicated StorageAttributionReportingEventLevelResult = "deduplicated"

	// StorageAttributionReportingEventLevelResultExcessiveAttributions enum const.
	StorageAttributionReportingEventLevelResultExcessiveAttributions StorageAttributionReportingEventLevelResult = "excessiveAttributions"

	// StorageAttributionReportingEventLevelResultPriorityTooLow enum const.
	StorageAttributionReportingEventLevelResultPriorityTooLow StorageAttributionReportingEventLevelResult = "priorityTooLow"

	// StorageAttributionReportingEventLevelResultNeverAttributedSource enum const.
	StorageAttributionReportingEventLevelResultNeverAttributedSource StorageAttributionReportingEventLevelResult = "neverAttributedSource"

	// StorageAttributionReportingEventLevelResultExcessiveReportingOrigins enum const.
	StorageAttributionReportingEventLevelResultExcessiveReportingOrigins StorageAttributionReportingEventLevelResult = "excessiveReportingOrigins"

	// StorageAttributionReportingEventLevelResultNoMatchingSourceFilterData enum const.
	StorageAttributionReportingEventLevelResultNoMatchingSourceFilterData StorageAttributionReportingEventLevelResult = "noMatchingSourceFilterData"

	// StorageAttributionReportingEventLevelResultProhibitedByBrowserPolicy enum const.
	StorageAttributionReportingEventLevelResultProhibitedByBrowserPolicy StorageAttributionReportingEventLevelResult = "prohibitedByBrowserPolicy"

	// StorageAttributionReportingEventLevelResultNoMatchingConfigurations enum const.
	StorageAttributionReportingEventLevelResultNoMatchingConfigurations StorageAttributionReportingEventLevelResult = "noMatchingConfigurations"

	// StorageAttributionReportingEventLevelResultExcessiveReports enum const.
	StorageAttributionReportingEventLevelResultExcessiveReports StorageAttributionReportingEventLevelResult = "excessiveReports"

	// StorageAttributionReportingEventLevelResultFalselyAttributedSource enum const.
	StorageAttributionReportingEventLevelResultFalselyAttributedSource StorageAttributionReportingEventLevelResult = "falselyAttributedSource"

	// StorageAttributionReportingEventLevelResultReportWindowPassed enum const.
	StorageAttributionReportingEventLevelResultReportWindowPassed StorageAttributionReportingEventLevelResult = "reportWindowPassed"

	// StorageAttributionReportingEventLevelResultNotRegistered enum const.
	StorageAttributionReportingEventLevelResultNotRegistered StorageAttributionReportingEventLevelResult = "notRegistered"

	// StorageAttributionReportingEventLevelResultReportWindowNotStarted enum const.
	StorageAttributionReportingEventLevelResultReportWindowNotStarted StorageAttributionReportingEventLevelResult = "reportWindowNotStarted"

	// StorageAttributionReportingEventLevelResultNoMatchingTriggerData enum const.
	StorageAttributionReportingEventLevelResultNoMatchingTriggerData StorageAttributionReportingEventLevelResult = "noMatchingTriggerData"
)

type StorageAttributionReportingEventReportWindows <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingEventReportWindows struct {
	// Start duration in seconds
	Start int `json:"start"`

	// Ends duration in seconds
	Ends []int `json:"ends"`
}

StorageAttributionReportingEventReportWindows (experimental) …

type StorageAttributionReportingEventTriggerData <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type StorageAttributionReportingEventTriggerData struct {
	// Data ...
	Data StorageUnsignedInt64AsBase10 `json:"data"`

	// Priority ...
	Priority StorageSignedInt64AsBase10 `json:"priority"`

	// DedupKey (optional) ...
	DedupKey StorageUnsignedInt64AsBase10 `json:"dedupKey,omitempty"`

	// Filters ...
	Filters *StorageAttributionReportingFilterPair `json:"filters"`
}

StorageAttributionReportingEventTriggerData (experimental) …

type StorageAttributionReportingFilterConfig <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingFilterConfig struct {
	// FilterValues ...
	FilterValues []*StorageAttributionReportingFilterDataEntry `json:"filterValues"`

	// LookbackWindow (optional) duration in seconds
	LookbackWindow *int `json:"lookbackWindow,omitempty"`
}

StorageAttributionReportingFilterConfig (experimental) …

type StorageAttributionReportingFilterDataEntry <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingFilterDataEntry struct {
	// Key ...
	Key string `json:"key"`

	// Values ...
	Values []string `json:"values"`
}

StorageAttributionReportingFilterDataEntry (experimental) …

type StorageAttributionReportingFilterPair <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingFilterPair struct {
	// Filters ...
	Filters []*StorageAttributionReportingFilterConfig `json:"filters"`

	// NotFilters ...
	NotFilters []*StorageAttributionReportingFilterConfig `json:"notFilters"`
}

StorageAttributionReportingFilterPair (experimental) …

type StorageAttributionReportingSourceRegistered <- 0.115.0

1
2
3
4
5
6
7
type StorageAttributionReportingSourceRegistered struct {
	// Registration ...
	Registration *StorageAttributionReportingSourceRegistration `json:"registration"`

	// Result ...
	Result StorageAttributionReportingSourceRegistrationResult `json:"result"`
}

StorageAttributionReportingSourceRegistered (experimental) …

(StorageAttributionReportingSourceRegistered) ProtoEvent <- 0.115.0

1
func (evt StorageAttributionReportingSourceRegistered) ProtoEvent() string

ProtoEvent name.

type StorageAttributionReportingSourceRegistration <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
type StorageAttributionReportingSourceRegistration struct {
	// Time ...
	Time TimeSinceEpoch `json:"time"`

	// Expiry duration in seconds
	Expiry int `json:"expiry"`

	// TriggerSpecs ...
	TriggerSpecs []*StorageAttributionReportingTriggerSpec `json:"triggerSpecs"`

	// AggregatableReportWindow duration in seconds
	AggregatableReportWindow int `json:"aggregatableReportWindow"`

	// Type ...
	Type StorageAttributionReportingSourceType `json:"type"`

	// SourceOrigin ...
	SourceOrigin string `json:"sourceOrigin"`

	// ReportingOrigin ...
	ReportingOrigin string `json:"reportingOrigin"`

	// DestinationSites ...
	DestinationSites []string `json:"destinationSites"`

	// EventID ...
	EventID StorageUnsignedInt64AsBase10 `json:"eventId"`

	// Priority ...
	Priority StorageSignedInt64AsBase10 `json:"priority"`

	// FilterData ...
	FilterData []*StorageAttributionReportingFilterDataEntry `json:"filterData"`

	// AggregationKeys ...
	AggregationKeys []*StorageAttributionReportingAggregationKeysEntry `json:"aggregationKeys"`

	// DebugKey (optional) ...
	DebugKey StorageUnsignedInt64AsBase10 `json:"debugKey,omitempty"`

	// TriggerDataMatching ...
	TriggerDataMatching StorageAttributionReportingTriggerDataMatching `json:"triggerDataMatching"`
}

StorageAttributionReportingSourceRegistration (experimental) …

type StorageAttributionReportingSourceRegistrationResult <- 0.115.0

1
type StorageAttributionReportingSourceRegistrationResult string

StorageAttributionReportingSourceRegistrationResult (experimental) …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const (
	// StorageAttributionReportingSourceRegistrationResultSuccess enum const.
	StorageAttributionReportingSourceRegistrationResultSuccess StorageAttributionReportingSourceRegistrationResult = "success"

	// StorageAttributionReportingSourceRegistrationResultInternalError enum const.
	StorageAttributionReportingSourceRegistrationResultInternalError StorageAttributionReportingSourceRegistrationResult = "internalError"

	// StorageAttributionReportingSourceRegistrationResultInsufficientSourceCapacity enum const.
	StorageAttributionReportingSourceRegistrationResultInsufficientSourceCapacity StorageAttributionReportingSourceRegistrationResult = "insufficientSourceCapacity"

	// StorageAttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity enum const.
	StorageAttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity StorageAttributionReportingSourceRegistrationResult = "insufficientUniqueDestinationCapacity"

	// StorageAttributionReportingSourceRegistrationResultExcessiveReportingOrigins enum const.
	StorageAttributionReportingSourceRegistrationResultExcessiveReportingOrigins StorageAttributionReportingSourceRegistrationResult = "excessiveReportingOrigins"

	// StorageAttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy enum const.
	StorageAttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy StorageAttributionReportingSourceRegistrationResult = "prohibitedByBrowserPolicy"

	// StorageAttributionReportingSourceRegistrationResultSuccessNoised enum const.
	StorageAttributionReportingSourceRegistrationResultSuccessNoised StorageAttributionReportingSourceRegistrationResult = "successNoised"

	// StorageAttributionReportingSourceRegistrationResultDestinationReportingLimitReached enum const.
	StorageAttributionReportingSourceRegistrationResultDestinationReportingLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationReportingLimitReached"

	// StorageAttributionReportingSourceRegistrationResultDestinationGlobalLimitReached enum const.
	StorageAttributionReportingSourceRegistrationResultDestinationGlobalLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationGlobalLimitReached"

	// StorageAttributionReportingSourceRegistrationResultDestinationBothLimitsReached enum const.
	StorageAttributionReportingSourceRegistrationResultDestinationBothLimitsReached StorageAttributionReportingSourceRegistrationResult = "destinationBothLimitsReached"

	// StorageAttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached enum const.
	StorageAttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached StorageAttributionReportingSourceRegistrationResult = "reportingOriginsPerSiteLimitReached"

	// StorageAttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity enum const.
	StorageAttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity StorageAttributionReportingSourceRegistrationResult = "exceedsMaxChannelCapacity"

	// StorageAttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality enum const.
	StorageAttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality StorageAttributionReportingSourceRegistrationResult = "exceedsMaxTriggerStateCardinality"

	// StorageAttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached enum const.
	StorageAttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationPerDayReportingLimitReached"
)

type StorageAttributionReportingSourceRegistrationTimeConfig <- 0.115.0

1
type StorageAttributionReportingSourceRegistrationTimeConfig string

StorageAttributionReportingSourceRegistrationTimeConfig (experimental) …

1
2
3
4
5
6
7
const (
	// StorageAttributionReportingSourceRegistrationTimeConfigInclude enum const.
	StorageAttributionReportingSourceRegistrationTimeConfigInclude StorageAttributionReportingSourceRegistrationTimeConfig = "include"

	// StorageAttributionReportingSourceRegistrationTimeConfigExclude enum const.
	StorageAttributionReportingSourceRegistrationTimeConfigExclude StorageAttributionReportingSourceRegistrationTimeConfig = "exclude"
)

type StorageAttributionReportingSourceType <- 0.115.0

1
type StorageAttributionReportingSourceType string

StorageAttributionReportingSourceType (experimental) …

1
2
3
4
5
6
7
const (
	// StorageAttributionReportingSourceTypeNavigation enum const.
	StorageAttributionReportingSourceTypeNavigation StorageAttributionReportingSourceType = "navigation"

	// StorageAttributionReportingSourceTypeEvent enum const.
	StorageAttributionReportingSourceTypeEvent StorageAttributionReportingSourceType = "event"
)

type StorageAttributionReportingTriggerDataMatching <- 0.115.0

1
type StorageAttributionReportingTriggerDataMatching string

StorageAttributionReportingTriggerDataMatching (experimental) …

1
2
3
4
5
6
7
const (
	// StorageAttributionReportingTriggerDataMatchingExact enum const.
	StorageAttributionReportingTriggerDataMatchingExact StorageAttributionReportingTriggerDataMatching = "exact"

	// StorageAttributionReportingTriggerDataMatchingModulus enum const.
	StorageAttributionReportingTriggerDataMatchingModulus StorageAttributionReportingTriggerDataMatching = "modulus"
)

type StorageAttributionReportingTriggerRegistered <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type StorageAttributionReportingTriggerRegistered struct {
	// Registration ...
	Registration *StorageAttributionReportingTriggerRegistration `json:"registration"`

	// EventLevel ...
	EventLevel StorageAttributionReportingEventLevelResult `json:"eventLevel"`

	// Aggregatable ...
	Aggregatable StorageAttributionReportingAggregatableResult `json:"aggregatable"`
}

StorageAttributionReportingTriggerRegistered (experimental) …

(StorageAttributionReportingTriggerRegistered) ProtoEvent <- 0.115.0

1
func (evt StorageAttributionReportingTriggerRegistered) ProtoEvent() string

ProtoEvent name.

type StorageAttributionReportingTriggerRegistration <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type StorageAttributionReportingTriggerRegistration struct {
	// Filters ...
	Filters *StorageAttributionReportingFilterPair `json:"filters"`

	// DebugKey (optional) ...
	DebugKey StorageUnsignedInt64AsBase10 `json:"debugKey,omitempty"`

	// AggregatableDedupKeys ...
	AggregatableDedupKeys []*StorageAttributionReportingAggregatableDedupKey `json:"aggregatableDedupKeys"`

	// EventTriggerData ...
	EventTriggerData []*StorageAttributionReportingEventTriggerData `json:"eventTriggerData"`

	// AggregatableTriggerData ...
	AggregatableTriggerData []*StorageAttributionReportingAggregatableTriggerData `json:"aggregatableTriggerData"`

	// AggregatableValues ...
	AggregatableValues []*StorageAttributionReportingAggregatableValueEntry `json:"aggregatableValues"`

	// DebugReporting ...
	DebugReporting bool `json:"debugReporting"`

	// AggregationCoordinatorOrigin (optional) ...
	AggregationCoordinatorOrigin string `json:"aggregationCoordinatorOrigin,omitempty"`

	// SourceRegistrationTimeConfig ...
	SourceRegistrationTimeConfig StorageAttributionReportingSourceRegistrationTimeConfig `json:"sourceRegistrationTimeConfig"`

	// TriggerContextID (optional) ...
	TriggerContextID string `json:"triggerContextId,omitempty"`
}

StorageAttributionReportingTriggerRegistration (experimental) …

type StorageAttributionReportingTriggerSpec <- 0.115.0

1
2
3
4
5
6
7
8
type StorageAttributionReportingTriggerSpec struct {
	// TriggerData number instead of integer because not all uint32 can be represented by
	// int
	TriggerData []float64 `json:"triggerData"`

	// EventReportWindows ...
	EventReportWindows *StorageAttributionReportingEventReportWindows `json:"eventReportWindows"`
}

StorageAttributionReportingTriggerSpec (experimental) …

type StorageCacheStorageContentUpdated

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type StorageCacheStorageContentUpdated struct {
	// Origin to update.
	Origin string `json:"origin"`

	// StorageKey Storage key to update.
	StorageKey string `json:"storageKey"`

	// BucketID Storage bucket to update.
	BucketID string `json:"bucketId"`

	// CacheName Name of cache in origin.
	CacheName string `json:"cacheName"`
}

StorageCacheStorageContentUpdated A cache’s contents have been modified.

(StorageCacheStorageContentUpdated) ProtoEvent <- 0.72.0

1
func (evt StorageCacheStorageContentUpdated) ProtoEvent() string

ProtoEvent name.

type StorageCacheStorageListUpdated

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type StorageCacheStorageListUpdated struct {
	// Origin to update.
	Origin string `json:"origin"`

	// StorageKey Storage key to update.
	StorageKey string `json:"storageKey"`

	// BucketID Storage bucket to update.
	BucketID string `json:"bucketId"`
}

StorageCacheStorageListUpdated A cache has been added/deleted.

(StorageCacheStorageListUpdated) ProtoEvent <- 0.72.0

1
func (evt StorageCacheStorageListUpdated) ProtoEvent() string

ProtoEvent name.

type StorageClearCookies

1
2
3
4
type StorageClearCookies struct {
	// BrowserContextID (optional) Browser context to use when called on the browser endpoint.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

StorageClearCookies Clears cookies.

(StorageClearCookies) Call

1
func (m StorageClearCookies) Call(c Client) error

Call sends the request.

(StorageClearCookies) ProtoReq <- 0.74.0

1
func (m StorageClearCookies) ProtoReq() string

ProtoReq name.

type StorageClearDataForOrigin

1
2
3
4
5
6
7
type StorageClearDataForOrigin struct {
	// Origin Security origin.
	Origin string `json:"origin"`

	// StorageTypes Comma separated list of StorageType to clear.
	StorageTypes string `json:"storageTypes"`
}

StorageClearDataForOrigin Clears storage for origin.

(StorageClearDataForOrigin) Call

1
func (m StorageClearDataForOrigin) Call(c Client) error

Call sends the request.

(StorageClearDataForOrigin) ProtoReq <- 0.74.0

1
func (m StorageClearDataForOrigin) ProtoReq() string

ProtoReq name.

type StorageClearDataForStorageKey <- 0.108.2

1
2
3
4
5
6
7
type StorageClearDataForStorageKey struct {
	// StorageKey Storage key.
	StorageKey string `json:"storageKey"`

	// StorageTypes Comma separated list of StorageType to clear.
	StorageTypes string `json:"storageTypes"`
}

StorageClearDataForStorageKey Clears storage for storage key.

(StorageClearDataForStorageKey) Call <- 0.108.2

1
func (m StorageClearDataForStorageKey) Call(c Client) error

Call sends the request.

(StorageClearDataForStorageKey) ProtoReq <- 0.108.2

1
func (m StorageClearDataForStorageKey) ProtoReq() string

ProtoReq name.

type StorageClearSharedStorageEntries <- 0.112.3

1
2
3
4
type StorageClearSharedStorageEntries struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`
}

StorageClearSharedStorageEntries (experimental) Clears all entries for a given origin’s shared storage.

(StorageClearSharedStorageEntries) Call <- 0.112.3

1
func (m StorageClearSharedStorageEntries) Call(c Client) error

Call sends the request.

(StorageClearSharedStorageEntries) ProtoReq <- 0.112.3

1
func (m StorageClearSharedStorageEntries) ProtoReq() string

ProtoReq name.

type StorageClearTrustTokens <- 0.97.5

1
2
3
4
type StorageClearTrustTokens struct {
	// IssuerOrigin ...
	IssuerOrigin string `json:"issuerOrigin"`
}

StorageClearTrustTokens (experimental) Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer’s Redemption Records, intact.

(StorageClearTrustTokens) Call <- 0.97.5

1
func (m StorageClearTrustTokens) Call(c Client) (*StorageClearTrustTokensResult, error)

Call the request.

(StorageClearTrustTokens) ProtoReq <- 0.97.5

1
func (m StorageClearTrustTokens) ProtoReq() string

ProtoReq name.

type StorageClearTrustTokensResult <- 0.97.5

1
2
3
4
type StorageClearTrustTokensResult struct {
	// DidDeleteTokens True if any tokens were deleted, false otherwise.
	DidDeleteTokens bool `json:"didDeleteTokens"`
}

StorageClearTrustTokensResult (experimental) …

type StorageDeleteSharedStorageEntry <- 0.112.3

1
2
3
4
5
6
7
type StorageDeleteSharedStorageEntry struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`

	// Key ...
	Key string `json:"key"`
}

StorageDeleteSharedStorageEntry (experimental) Deletes entry for key (if it exists) for a given origin’s shared storage.

(StorageDeleteSharedStorageEntry) Call <- 0.112.3

1
func (m StorageDeleteSharedStorageEntry) Call(c Client) error

Call sends the request.

(StorageDeleteSharedStorageEntry) ProtoReq <- 0.112.3

1
func (m StorageDeleteSharedStorageEntry) ProtoReq() string

ProtoReq name.

type StorageDeleteStorageBucket <- 0.112.9

1
2
3
4
type StorageDeleteStorageBucket struct {
	// Bucket ...
	Bucket *StorageStorageBucket `json:"bucket"`
}

StorageDeleteStorageBucket (experimental) Deletes the Storage Bucket with the given storage key and bucket name.

(StorageDeleteStorageBucket) Call <- 0.112.9

1
func (m StorageDeleteStorageBucket) Call(c Client) error

Call sends the request.

(StorageDeleteStorageBucket) ProtoReq <- 0.112.9

1
func (m StorageDeleteStorageBucket) ProtoReq() string

ProtoReq name.

type StorageGetCookies

1
2
3
4
type StorageGetCookies struct {
	// BrowserContextID (optional) Browser context to use when called on the browser endpoint.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

StorageGetCookies Returns all browser cookies.

(StorageGetCookies) Call

1
func (m StorageGetCookies) Call(c Client) (*StorageGetCookiesResult, error)

Call the request.

(StorageGetCookies) ProtoReq <- 0.74.0

1
func (m StorageGetCookies) ProtoReq() string

ProtoReq name.

type StorageGetCookiesResult

1
2
3
4
type StorageGetCookiesResult struct {
	// Cookies Array of cookie objects.
	Cookies []*NetworkCookie `json:"cookies"`
}

StorageGetCookiesResult …

type StorageGetInterestGroupDetails <- 0.102.0

1
2
3
4
5
6
7
type StorageGetInterestGroupDetails struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`

	// Name ...
	Name string `json:"name"`
}

StorageGetInterestGroupDetails (experimental) Gets details for a named interest group.

(StorageGetInterestGroupDetails) Call <- 0.102.0

1
func (m StorageGetInterestGroupDetails) Call(c Client) (*StorageGetInterestGroupDetailsResult, error)

Call the request.

(StorageGetInterestGroupDetails) ProtoReq <- 0.102.0

1
func (m StorageGetInterestGroupDetails) ProtoReq() string

ProtoReq name.

type StorageGetInterestGroupDetailsResult <- 0.102.0

1
2
3
4
5
6
7
type StorageGetInterestGroupDetailsResult struct {
	// Details This largely corresponds to:
	// https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup
	// but has absolute expirationTime instead of relative lifetimeMs and
	// also adds joiningOrigin.
	Details map[string]gson.JSON `json:"details"`
}

StorageGetInterestGroupDetailsResult (experimental) …

type StorageGetRelatedWebsiteSets <- 0.115.0

1
type StorageGetRelatedWebsiteSets struct{}

StorageGetRelatedWebsiteSets (experimental) Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.

(StorageGetRelatedWebsiteSets) Call <- 0.115.0

1
func (m StorageGetRelatedWebsiteSets) Call(c Client) (*StorageGetRelatedWebsiteSetsResult, error)

Call the request.

(StorageGetRelatedWebsiteSets) ProtoReq <- 0.115.0

1
func (m StorageGetRelatedWebsiteSets) ProtoReq() string

ProtoReq name.

type StorageGetRelatedWebsiteSetsResult <- 0.115.0

1
2
3
4
type StorageGetRelatedWebsiteSetsResult struct {
	// Sets ...
	Sets []*StorageRelatedWebsiteSet `json:"sets"`
}

StorageGetRelatedWebsiteSetsResult (experimental) …

type StorageGetSharedStorageEntries <- 0.112.1

1
2
3
4
type StorageGetSharedStorageEntries struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`
}

StorageGetSharedStorageEntries (experimental) Gets the entries in an given origin’s shared storage.

(StorageGetSharedStorageEntries) Call <- 0.112.1

1
func (m StorageGetSharedStorageEntries) Call(c Client) (*StorageGetSharedStorageEntriesResult, error)

Call the request.

(StorageGetSharedStorageEntries) ProtoReq <- 0.112.1

1
func (m StorageGetSharedStorageEntries) ProtoReq() string

ProtoReq name.

type StorageGetSharedStorageEntriesResult <- 0.112.1

1
2
3
4
type StorageGetSharedStorageEntriesResult struct {
	// Entries ...
	Entries []*StorageSharedStorageEntry `json:"entries"`
}

StorageGetSharedStorageEntriesResult (experimental) …

type StorageGetSharedStorageMetadata <- 0.112.1

1
2
3
4
type StorageGetSharedStorageMetadata struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`
}

StorageGetSharedStorageMetadata (experimental) Gets metadata for an origin’s shared storage.

(StorageGetSharedStorageMetadata) Call <- 0.112.1

1
func (m StorageGetSharedStorageMetadata) Call(c Client) (*StorageGetSharedStorageMetadataResult, error)

Call the request.

(StorageGetSharedStorageMetadata) ProtoReq <- 0.112.1

1
func (m StorageGetSharedStorageMetadata) ProtoReq() string

ProtoReq name.

type StorageGetSharedStorageMetadataResult <- 0.112.1

1
2
3
4
type StorageGetSharedStorageMetadataResult struct {
	// Metadata ...
	Metadata *StorageSharedStorageMetadata `json:"metadata"`
}

StorageGetSharedStorageMetadataResult (experimental) …

type StorageGetStorageKeyForFrame <- 0.107.0

1
2
3
4
type StorageGetStorageKeyForFrame struct {
	// FrameID ...
	FrameID PageFrameID `json:"frameId"`
}

StorageGetStorageKeyForFrame Returns a storage key given a frame id.

(StorageGetStorageKeyForFrame) Call <- 0.107.0

1
func (m StorageGetStorageKeyForFrame) Call(c Client) (*StorageGetStorageKeyForFrameResult, error)

Call the request.

(StorageGetStorageKeyForFrame) ProtoReq <- 0.107.0

1
func (m StorageGetStorageKeyForFrame) ProtoReq() string

ProtoReq name.

type StorageGetStorageKeyForFrameResult <- 0.107.0

1
2
3
4
type StorageGetStorageKeyForFrameResult struct {
	// StorageKey ...
	StorageKey StorageSerializedStorageKey `json:"storageKey"`
}

StorageGetStorageKeyForFrameResult …

type StorageGetTrustTokens <- 0.90.0

1
type StorageGetTrustTokens struct{}

StorageGetTrustTokens (experimental) Returns the number of stored Trust Tokens per issuer for the current browsing context.

(StorageGetTrustTokens) Call <- 0.90.0

1
func (m StorageGetTrustTokens) Call(c Client) (*StorageGetTrustTokensResult, error)

Call the request.

(StorageGetTrustTokens) ProtoReq <- 0.90.0

1
func (m StorageGetTrustTokens) ProtoReq() string

ProtoReq name.

type StorageGetTrustTokensResult <- 0.90.0

1
2
3
4
type StorageGetTrustTokensResult struct {
	// Tokens ...
	Tokens []*StorageTrustTokens `json:"tokens"`
}

StorageGetTrustTokensResult (experimental) …

type StorageGetUsageAndQuota

1
2
3
4
type StorageGetUsageAndQuota struct {
	// Origin Security origin.
	Origin string `json:"origin"`
}

StorageGetUsageAndQuota Returns usage and quota in bytes.

(StorageGetUsageAndQuota) Call

1
func (m StorageGetUsageAndQuota) Call(c Client) (*StorageGetUsageAndQuotaResult, error)

Call the request.

(StorageGetUsageAndQuota) ProtoReq <- 0.74.0

1
func (m StorageGetUsageAndQuota) ProtoReq() string

ProtoReq name.

type StorageGetUsageAndQuotaResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type StorageGetUsageAndQuotaResult struct {
	// Usage Storage usage (bytes).
	Usage float64 `json:"usage"`

	// Quota Storage quota (bytes).
	Quota float64 `json:"quota"`

	// OverrideActive Whether or not the origin has an active storage quota override
	OverrideActive bool `json:"overrideActive"`

	// UsageBreakdown Storage usage per type (bytes).
	UsageBreakdown []*StorageUsageForType `json:"usageBreakdown"`
}

StorageGetUsageAndQuotaResult …

type StorageIndexedDBContentUpdated

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type StorageIndexedDBContentUpdated struct {
	// Origin to update.
	Origin string `json:"origin"`

	// StorageKey Storage key to update.
	StorageKey string `json:"storageKey"`

	// BucketID Storage bucket to update.
	BucketID string `json:"bucketId"`

	// DatabaseName Database to update.
	DatabaseName string `json:"databaseName"`

	// ObjectStoreName ObjectStore to update.
	ObjectStoreName string `json:"objectStoreName"`
}

StorageIndexedDBContentUpdated The origin’s IndexedDB object store has been modified.

(StorageIndexedDBContentUpdated) ProtoEvent <- 0.72.0

1
func (evt StorageIndexedDBContentUpdated) ProtoEvent() string

ProtoEvent name.

type StorageIndexedDBListUpdated

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type StorageIndexedDBListUpdated struct {
	// Origin to update.
	Origin string `json:"origin"`

	// StorageKey Storage key to update.
	StorageKey string `json:"storageKey"`

	// BucketID Storage bucket to update.
	BucketID string `json:"bucketId"`
}

StorageIndexedDBListUpdated The origin’s IndexedDB database list has been modified.

(StorageIndexedDBListUpdated) ProtoEvent <- 0.72.0

1
func (evt StorageIndexedDBListUpdated) ProtoEvent() string

ProtoEvent name.

type StorageInterestGroupAccessType <- 0.102.0

1
type StorageInterestGroupAccessType string

StorageInterestGroupAccessType Enum of interest group access types.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const (
	// StorageInterestGroupAccessTypeJoin enum const.
	StorageInterestGroupAccessTypeJoin StorageInterestGroupAccessType = "join"

	// StorageInterestGroupAccessTypeLeave enum const.
	StorageInterestGroupAccessTypeLeave StorageInterestGroupAccessType = "leave"

	// StorageInterestGroupAccessTypeUpdate enum const.
	StorageInterestGroupAccessTypeUpdate StorageInterestGroupAccessType = "update"

	// StorageInterestGroupAccessTypeLoaded enum const.
	StorageInterestGroupAccessTypeLoaded StorageInterestGroupAccessType = "loaded"

	// StorageInterestGroupAccessTypeBid enum const.
	StorageInterestGroupAccessTypeBid StorageInterestGroupAccessType = "bid"

	// StorageInterestGroupAccessTypeWin enum const.
	StorageInterestGroupAccessTypeWin StorageInterestGroupAccessType = "win"

	// StorageInterestGroupAccessTypeAdditionalBid enum const.
	StorageInterestGroupAccessTypeAdditionalBid StorageInterestGroupAccessType = "additionalBid"

	// StorageInterestGroupAccessTypeAdditionalBidWin enum const.
	StorageInterestGroupAccessTypeAdditionalBidWin StorageInterestGroupAccessType = "additionalBidWin"

	// StorageInterestGroupAccessTypeTopLevelBid enum const.
	StorageInterestGroupAccessTypeTopLevelBid StorageInterestGroupAccessType = "topLevelBid"

	// StorageInterestGroupAccessTypeTopLevelAdditionalBid enum const.
	StorageInterestGroupAccessTypeTopLevelAdditionalBid StorageInterestGroupAccessType = "topLevelAdditionalBid"

	// StorageInterestGroupAccessTypeClear enum const.
	StorageInterestGroupAccessTypeClear StorageInterestGroupAccessType = "clear"
)

type StorageInterestGroupAccessed <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
type StorageInterestGroupAccessed struct {
	// AccessTime ...
	AccessTime TimeSinceEpoch `json:"accessTime"`

	// Type ...
	Type StorageInterestGroupAccessType `json:"type"`

	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`

	// Name ...
	Name string `json:"name"`

	// ComponentSellerOrigin (optional) For topLevelBid/topLevelAdditionalBid, and when appropriate,
	// win and additionalBidWin
	ComponentSellerOrigin string `json:"componentSellerOrigin,omitempty"`

	// Bid (optional) For bid or somethingBid event, if done locally and not on a server.
	Bid *float64 `json:"bid,omitempty"`

	// BidCurrency (optional) ...
	BidCurrency string `json:"bidCurrency,omitempty"`

	// UniqueAuctionID (optional) For non-global events --- links to interestGroupAuctionEvent
	UniqueAuctionID StorageInterestGroupAuctionID `json:"uniqueAuctionId,omitempty"`
}

StorageInterestGroupAccessed One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.

(StorageInterestGroupAccessed) ProtoEvent <- 0.102.0

1
func (evt StorageInterestGroupAccessed) ProtoEvent() string

ProtoEvent name.

type StorageInterestGroupAuctionEventOccurred <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type StorageInterestGroupAuctionEventOccurred struct {
	// EventTime ...
	EventTime TimeSinceEpoch `json:"eventTime"`

	// Type ...
	Type StorageInterestGroupAuctionEventType `json:"type"`

	// UniqueAuctionID ...
	UniqueAuctionID StorageInterestGroupAuctionID `json:"uniqueAuctionId"`

	// ParentAuctionID (optional) Set for child auctions.
	ParentAuctionID StorageInterestGroupAuctionID `json:"parentAuctionId,omitempty"`

	// AuctionConfig (optional) Set for started and configResolved
	AuctionConfig map[string]gson.JSON `json:"auctionConfig,omitempty"`
}

StorageInterestGroupAuctionEventOccurred An auction involving interest groups is taking place. These events are target-specific.

(StorageInterestGroupAuctionEventOccurred) ProtoEvent <- 0.115.0

1
func (evt StorageInterestGroupAuctionEventOccurred) ProtoEvent() string

ProtoEvent name.

type StorageInterestGroupAuctionEventType <- 0.115.0

1
type StorageInterestGroupAuctionEventType string

StorageInterestGroupAuctionEventType Enum of auction events.

1
2
3
4
5
6
7
const (
	// StorageInterestGroupAuctionEventTypeStarted enum const.
	StorageInterestGroupAuctionEventTypeStarted StorageInterestGroupAuctionEventType = "started"

	// StorageInterestGroupAuctionEventTypeConfigResolved enum const.
	StorageInterestGroupAuctionEventTypeConfigResolved StorageInterestGroupAuctionEventType = "configResolved"
)

type StorageInterestGroupAuctionFetchType <- 0.115.0

1
type StorageInterestGroupAuctionFetchType string

StorageInterestGroupAuctionFetchType Enum of network fetches auctions can do.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// StorageInterestGroupAuctionFetchTypeBidderJs enum const.
	StorageInterestGroupAuctionFetchTypeBidderJs StorageInterestGroupAuctionFetchType = "bidderJs"

	// StorageInterestGroupAuctionFetchTypeBidderWasm enum const.
	StorageInterestGroupAuctionFetchTypeBidderWasm StorageInterestGroupAuctionFetchType = "bidderWasm"

	// StorageInterestGroupAuctionFetchTypeSellerJs enum const.
	StorageInterestGroupAuctionFetchTypeSellerJs StorageInterestGroupAuctionFetchType = "sellerJs"

	// StorageInterestGroupAuctionFetchTypeBidderTrustedSignals enum const.
	StorageInterestGroupAuctionFetchTypeBidderTrustedSignals StorageInterestGroupAuctionFetchType = "bidderTrustedSignals"

	// StorageInterestGroupAuctionFetchTypeSellerTrustedSignals enum const.
	StorageInterestGroupAuctionFetchTypeSellerTrustedSignals StorageInterestGroupAuctionFetchType = "sellerTrustedSignals"
)

type StorageInterestGroupAuctionID <- 0.115.0

1
type StorageInterestGroupAuctionID string

StorageInterestGroupAuctionID Protected audience interest group auction identifier.

type StorageInterestGroupAuctionNetworkRequestCreated <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type StorageInterestGroupAuctionNetworkRequestCreated struct {
	// Type ...
	Type StorageInterestGroupAuctionFetchType `json:"type"`

	// RequestID ...
	RequestID NetworkRequestID `json:"requestId"`

	// Auctions This is the set of the auctions using the worklet that issued this
	// request.  In the case of trusted signals, it's possible that only some of
	// them actually care about the keys being queried.
	Auctions []StorageInterestGroupAuctionID `json:"auctions"`
}

StorageInterestGroupAuctionNetworkRequestCreated Specifies which auctions a particular network fetch may be related to, and in what role. Note that it is not ordered with respect to Network.requestWillBeSent (but will happen before loadingFinished loadingFailed).

(StorageInterestGroupAuctionNetworkRequestCreated) ProtoEvent <- 0.115.0

1
func (evt StorageInterestGroupAuctionNetworkRequestCreated) ProtoEvent() string

ProtoEvent name.

type StorageOverrideQuotaForOrigin <- 0.85.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type StorageOverrideQuotaForOrigin struct {
	// Origin Security origin.
	Origin string `json:"origin"`

	// QuotaSize (optional) The quota size (in bytes) to override the original quota with.
	// If this is called multiple times, the overridden quota will be equal to
	// the quotaSize provided in the final call. If this is called without
	// specifying a quotaSize, the quota will be reset to the default value for
	// the specified origin. If this is called multiple times with different
	// origins, the override will be maintained for each origin until it is
	// disabled (called without a quotaSize).
	QuotaSize *float64 `json:"quotaSize,omitempty"`
}

StorageOverrideQuotaForOrigin (experimental) Override quota for the specified origin.

(StorageOverrideQuotaForOrigin) Call <- 0.85.9

1
func (m StorageOverrideQuotaForOrigin) Call(c Client) error

Call sends the request.

(StorageOverrideQuotaForOrigin) ProtoReq <- 0.85.9

1
func (m StorageOverrideQuotaForOrigin) ProtoReq() string

ProtoReq name.

type StorageRelatedWebsiteSet <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type StorageRelatedWebsiteSet struct {
	// PrimarySites The primary site of this set, along with the ccTLDs if there is any.
	PrimarySites []string `json:"primarySites"`

	// AssociatedSites The associated sites of this set, along with the ccTLDs if there is any.
	AssociatedSites []string `json:"associatedSites"`

	// ServiceSites The service sites of this set, along with the ccTLDs if there is any.
	ServiceSites []string `json:"serviceSites"`
}

StorageRelatedWebsiteSet (experimental) A single Related Website Set object.

type StorageResetSharedStorageBudget <- 0.112.3

1
2
3
4
type StorageResetSharedStorageBudget struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`
}

StorageResetSharedStorageBudget (experimental) Resets the budget for ownerOrigin by clearing all budget withdrawals.

(StorageResetSharedStorageBudget) Call <- 0.112.3

1
func (m StorageResetSharedStorageBudget) Call(c Client) error

Call sends the request.

(StorageResetSharedStorageBudget) ProtoReq <- 0.112.3

1
func (m StorageResetSharedStorageBudget) ProtoReq() string

ProtoReq name.

type StorageRunBounceTrackingMitigations <- 0.115.0

1
type StorageRunBounceTrackingMitigations struct{}

StorageRunBounceTrackingMitigations (experimental) Deletes state for sites identified as potential bounce trackers, immediately.

(StorageRunBounceTrackingMitigations) Call <- 0.115.0

1
func (m StorageRunBounceTrackingMitigations) Call(c Client) (*StorageRunBounceTrackingMitigationsResult, error)

Call the request.

(StorageRunBounceTrackingMitigations) ProtoReq <- 0.115.0

1
func (m StorageRunBounceTrackingMitigations) ProtoReq() string

ProtoReq name.

type StorageRunBounceTrackingMitigationsResult <- 0.115.0

1
2
3
4
type StorageRunBounceTrackingMitigationsResult struct {
	// DeletedSites ...
	DeletedSites []string `json:"deletedSites"`
}

StorageRunBounceTrackingMitigationsResult (experimental) …

type StorageSendPendingAttributionReports <- 0.115.0

1
type StorageSendPendingAttributionReports struct{}

StorageSendPendingAttributionReports (experimental) Sends all pending Attribution Reports immediately, regardless of their scheduled report time.

(StorageSendPendingAttributionReports) Call <- 0.115.0

1
func (m StorageSendPendingAttributionReports) Call(c Client) (*StorageSendPendingAttributionReportsResult, error)

Call the request.

(StorageSendPendingAttributionReports) ProtoReq <- 0.115.0

1
func (m StorageSendPendingAttributionReports) ProtoReq() string

ProtoReq name.

type StorageSendPendingAttributionReportsResult <- 0.115.0

1
2
3
4
type StorageSendPendingAttributionReportsResult struct {
	// NumSent The number of reports that were sent.
	NumSent int `json:"numSent"`
}

StorageSendPendingAttributionReportsResult (experimental) …

type StorageSerializedStorageKey <- 0.106.7

1
type StorageSerializedStorageKey string

StorageSerializedStorageKey …

type StorageSetAttributionReportingLocalTestingMode <- 0.115.0

1
2
3
4
type StorageSetAttributionReportingLocalTestingMode struct {
	// Enabled If enabled, noise is suppressed and reports are sent immediately.
	Enabled bool `json:"enabled"`
}

StorageSetAttributionReportingLocalTestingMode (experimental) https://wicg.github.io/attribution-reporting-api/

(StorageSetAttributionReportingLocalTestingMode) Call <- 0.115.0

1
func (m StorageSetAttributionReportingLocalTestingMode) Call(c Client) error

Call sends the request.

(StorageSetAttributionReportingLocalTestingMode) ProtoReq <- 0.115.0

1
func (m StorageSetAttributionReportingLocalTestingMode) ProtoReq() string

ProtoReq name.

type StorageSetAttributionReportingTracking <- 0.115.0

1
2
3
4
type StorageSetAttributionReportingTracking struct {
	// Enable ...
	Enable bool `json:"enable"`
}

StorageSetAttributionReportingTracking (experimental) Enables/disables issuing of Attribution Reporting events.

(StorageSetAttributionReportingTracking) Call <- 0.115.0

1
func (m StorageSetAttributionReportingTracking) Call(c Client) error

Call sends the request.

(StorageSetAttributionReportingTracking) ProtoReq <- 0.115.0

1
func (m StorageSetAttributionReportingTracking) ProtoReq() string

ProtoReq name.

type StorageSetCookies

1
2
3
4
5
6
7
type StorageSetCookies struct {
	// Cookies to be set.
	Cookies []*NetworkCookieParam `json:"cookies"`

	// BrowserContextID (optional) Browser context to use when called on the browser endpoint.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
}

StorageSetCookies Sets given cookies.

(StorageSetCookies) Call

1
func (m StorageSetCookies) Call(c Client) error

Call sends the request.

(StorageSetCookies) ProtoReq <- 0.74.0

1
func (m StorageSetCookies) ProtoReq() string

ProtoReq name.

type StorageSetInterestGroupAuctionTracking <- 0.115.0

1
2
3
4
type StorageSetInterestGroupAuctionTracking struct {
	// Enable ...
	Enable bool `json:"enable"`
}

StorageSetInterestGroupAuctionTracking (experimental) Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.

(StorageSetInterestGroupAuctionTracking) Call <- 0.115.0

1
func (m StorageSetInterestGroupAuctionTracking) Call(c Client) error

Call sends the request.

(StorageSetInterestGroupAuctionTracking) ProtoReq <- 0.115.0

1
func (m StorageSetInterestGroupAuctionTracking) ProtoReq() string

ProtoReq name.

type StorageSetInterestGroupTracking <- 0.102.0

1
2
3
4
type StorageSetInterestGroupTracking struct {
	// Enable ...
	Enable bool `json:"enable"`
}

StorageSetInterestGroupTracking (experimental) Enables/Disables issuing of interestGroupAccessed events.

(StorageSetInterestGroupTracking) Call <- 0.102.0

1
func (m StorageSetInterestGroupTracking) Call(c Client) error

Call sends the request.

(StorageSetInterestGroupTracking) ProtoReq <- 0.102.0

1
func (m StorageSetInterestGroupTracking) ProtoReq() string

ProtoReq name.

type StorageSetSharedStorageEntry <- 0.112.3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type StorageSetSharedStorageEntry struct {
	// OwnerOrigin ...
	OwnerOrigin string `json:"ownerOrigin"`

	// Key ...
	Key string `json:"key"`

	// Value ...
	Value string `json:"value"`

	// IgnoreIfPresent (optional) If `ignoreIfPresent` is included and true, then only sets the entry if
	// `key` doesn't already exist.
	IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"`
}

StorageSetSharedStorageEntry (experimental) Sets entry with key and value for a given origin’s shared storage.

(StorageSetSharedStorageEntry) Call <- 0.112.3

1
func (m StorageSetSharedStorageEntry) Call(c Client) error

Call sends the request.

(StorageSetSharedStorageEntry) ProtoReq <- 0.112.3

1
func (m StorageSetSharedStorageEntry) ProtoReq() string

ProtoReq name.

type StorageSetSharedStorageTracking <- 0.112.1

1
2
3
4
type StorageSetSharedStorageTracking struct {
	// Enable ...
	Enable bool `json:"enable"`
}

StorageSetSharedStorageTracking (experimental) Enables/disables issuing of sharedStorageAccessed events.

(StorageSetSharedStorageTracking) Call <- 0.112.1

1
func (m StorageSetSharedStorageTracking) Call(c Client) error

Call sends the request.

(StorageSetSharedStorageTracking) ProtoReq <- 0.112.1

1
func (m StorageSetSharedStorageTracking) ProtoReq() string

ProtoReq name.

type StorageSetStorageBucketTracking <- 0.112.9

1
2
3
4
5
6
7
type StorageSetStorageBucketTracking struct {
	// StorageKey ...
	StorageKey string `json:"storageKey"`

	// Enable ...
	Enable bool `json:"enable"`
}

StorageSetStorageBucketTracking (experimental) Set tracking for a storage key’s buckets.

(StorageSetStorageBucketTracking) Call <- 0.112.9

1
func (m StorageSetStorageBucketTracking) Call(c Client) error

Call sends the request.

(StorageSetStorageBucketTracking) ProtoReq <- 0.112.9

1
func (m StorageSetStorageBucketTracking) ProtoReq() string

ProtoReq name.

type StorageSharedStorageAccessParams <- 0.112.1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
type StorageSharedStorageAccessParams struct {
	// ScriptSourceURL (optional) Spec of the module script URL.
	// Present only for SharedStorageAccessType.documentAddModule.
	ScriptSourceURL string `json:"scriptSourceUrl,omitempty"`

	// OperationName (optional) Name of the registered operation to be run.
	// Present only for SharedStorageAccessType.documentRun and
	// SharedStorageAccessType.documentSelectURL.
	OperationName string `json:"operationName,omitempty"`

	// SerializedData (optional) The operation's serialized data in bytes (converted to a string).
	// Present only for SharedStorageAccessType.documentRun and
	// SharedStorageAccessType.documentSelectURL.
	SerializedData string `json:"serializedData,omitempty"`

	// UrlsWithMetadata (optional) Array of candidate URLs' specs, along with any associated metadata.
	// Present only for SharedStorageAccessType.documentSelectURL.
	UrlsWithMetadata []*StorageSharedStorageURLWithMetadata `json:"urlsWithMetadata,omitempty"`

	// Key (optional) Key for a specific entry in an origin's shared storage.
	// Present only for SharedStorageAccessType.documentSet,
	// SharedStorageAccessType.documentAppend,
	// SharedStorageAccessType.documentDelete,
	// SharedStorageAccessType.workletSet,
	// SharedStorageAccessType.workletAppend,
	// SharedStorageAccessType.workletDelete,
	// SharedStorageAccessType.workletGet,
	// SharedStorageAccessType.headerSet,
	// SharedStorageAccessType.headerAppend, and
	// SharedStorageAccessType.headerDelete.
	Key string `json:"key,omitempty"`

	// Value (optional) Value for a specific entry in an origin's shared storage.
	// Present only for SharedStorageAccessType.documentSet,
	// SharedStorageAccessType.documentAppend,
	// SharedStorageAccessType.workletSet,
	// SharedStorageAccessType.workletAppend,
	// SharedStorageAccessType.headerSet, and
	// SharedStorageAccessType.headerAppend.
	Value string `json:"value,omitempty"`

	// IgnoreIfPresent (optional) Whether or not to set an entry for a key if that key is already present.
	// Present only for SharedStorageAccessType.documentSet,
	// SharedStorageAccessType.workletSet, and
	// SharedStorageAccessType.headerSet.
	IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"`
}

StorageSharedStorageAccessParams Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.

type StorageSharedStorageAccessType <- 0.112.1

1
type StorageSharedStorageAccessType string

StorageSharedStorageAccessType Enum of shared storage access types.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const (
	// StorageSharedStorageAccessTypeDocumentAddModule enum const.
	StorageSharedStorageAccessTypeDocumentAddModule StorageSharedStorageAccessType = "documentAddModule"

	// StorageSharedStorageAccessTypeDocumentSelectURL enum const.
	StorageSharedStorageAccessTypeDocumentSelectURL StorageSharedStorageAccessType = "documentSelectURL"

	// StorageSharedStorageAccessTypeDocumentRun enum const.
	StorageSharedStorageAccessTypeDocumentRun StorageSharedStorageAccessType = "documentRun"

	// StorageSharedStorageAccessTypeDocumentSet enum const.
	StorageSharedStorageAccessTypeDocumentSet StorageSharedStorageAccessType = "documentSet"

	// StorageSharedStorageAccessTypeDocumentAppend enum const.
	StorageSharedStorageAccessTypeDocumentAppend StorageSharedStorageAccessType = "documentAppend"

	// StorageSharedStorageAccessTypeDocumentDelete enum const.
	StorageSharedStorageAccessTypeDocumentDelete StorageSharedStorageAccessType = "documentDelete"

	// StorageSharedStorageAccessTypeDocumentClear enum const.
	StorageSharedStorageAccessTypeDocumentClear StorageSharedStorageAccessType = "documentClear"

	// StorageSharedStorageAccessTypeDocumentGet enum const.
	StorageSharedStorageAccessTypeDocumentGet StorageSharedStorageAccessType = "documentGet"

	// StorageSharedStorageAccessTypeWorkletSet enum const.
	StorageSharedStorageAccessTypeWorkletSet StorageSharedStorageAccessType = "workletSet"

	// StorageSharedStorageAccessTypeWorkletAppend enum const.
	StorageSharedStorageAccessTypeWorkletAppend StorageSharedStorageAccessType = "workletAppend"

	// StorageSharedStorageAccessTypeWorkletDelete enum const.
	StorageSharedStorageAccessTypeWorkletDelete StorageSharedStorageAccessType = "workletDelete"

	// StorageSharedStorageAccessTypeWorkletClear enum const.
	StorageSharedStorageAccessTypeWorkletClear StorageSharedStorageAccessType = "workletClear"

	// StorageSharedStorageAccessTypeWorkletGet enum const.
	StorageSharedStorageAccessTypeWorkletGet StorageSharedStorageAccessType = "workletGet"

	// StorageSharedStorageAccessTypeWorkletKeys enum const.
	StorageSharedStorageAccessTypeWorkletKeys StorageSharedStorageAccessType = "workletKeys"

	// StorageSharedStorageAccessTypeWorkletEntries enum const.
	StorageSharedStorageAccessTypeWorkletEntries StorageSharedStorageAccessType = "workletEntries"

	// StorageSharedStorageAccessTypeWorkletLength enum const.
	StorageSharedStorageAccessTypeWorkletLength StorageSharedStorageAccessType = "workletLength"

	// StorageSharedStorageAccessTypeWorkletRemainingBudget enum const.
	StorageSharedStorageAccessTypeWorkletRemainingBudget StorageSharedStorageAccessType = "workletRemainingBudget"

	// StorageSharedStorageAccessTypeHeaderSet enum const.
	StorageSharedStorageAccessTypeHeaderSet StorageSharedStorageAccessType = "headerSet"

	// StorageSharedStorageAccessTypeHeaderAppend enum const.
	StorageSharedStorageAccessTypeHeaderAppend StorageSharedStorageAccessType = "headerAppend"

	// StorageSharedStorageAccessTypeHeaderDelete enum const.
	StorageSharedStorageAccessTypeHeaderDelete StorageSharedStorageAccessType = "headerDelete"

	// StorageSharedStorageAccessTypeHeaderClear enum const.
	StorageSharedStorageAccessTypeHeaderClear StorageSharedStorageAccessType = "headerClear"
)

type StorageSharedStorageAccessed <- 0.112.1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
type StorageSharedStorageAccessed struct {
	// AccessTime Time of the access.
	AccessTime TimeSinceEpoch `json:"accessTime"`

	// Type Enum value indicating the Shared Storage API method invoked.
	Type StorageSharedStorageAccessType `json:"type"`

	// MainFrameID DevTools Frame Token for the primary frame tree's root.
	MainFrameID PageFrameID `json:"mainFrameId"`

	// OwnerOrigin Serialized origin for the context that invoked the Shared Storage API.
	OwnerOrigin string `json:"ownerOrigin"`

	// Params The sub-parameters wrapped by `params` are all optional and their
	// presence/absence depends on `type`.
	Params *StorageSharedStorageAccessParams `json:"params"`
}

StorageSharedStorageAccessed Shared storage was accessed by the associated page. The following parameters are included in all events.

(StorageSharedStorageAccessed) ProtoEvent <- 0.112.1

1
func (evt StorageSharedStorageAccessed) ProtoEvent() string

ProtoEvent name.

type StorageSharedStorageEntry <- 0.112.1

1
2
3
4
5
6
7
type StorageSharedStorageEntry struct {
	// Key ...
	Key string `json:"key"`

	// Value ...
	Value string `json:"value"`
}

StorageSharedStorageEntry Struct for a single key-value pair in an origin’s shared storage.

type StorageSharedStorageMetadata <- 0.112.1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type StorageSharedStorageMetadata struct {
	// CreationTime Time when the origin's shared storage was last created.
	CreationTime TimeSinceEpoch `json:"creationTime"`

	// Length Number of key-value pairs stored in origin's shared storage.
	Length int `json:"length"`

	// RemainingBudget Current amount of bits of entropy remaining in the navigation budget.
	RemainingBudget float64 `json:"remainingBudget"`

	// BytesUsed Total number of bytes stored as key-value pairs in origin's shared
	// storage.
	BytesUsed int `json:"bytesUsed"`
}

StorageSharedStorageMetadata Details for an origin’s shared storage.

type StorageSharedStorageReportingMetadata <- 0.112.1

1
2
3
4
5
6
7
type StorageSharedStorageReportingMetadata struct {
	// EventType ...
	EventType string `json:"eventType"`

	// ReportingURL ...
	ReportingURL string `json:"reportingUrl"`
}

StorageSharedStorageReportingMetadata Pair of reporting metadata details for a candidate URL for selectURL().

type StorageSharedStorageURLWithMetadata <- 0.112.1

1
2
3
4
5
6
7
type StorageSharedStorageURLWithMetadata struct {
	// URL Spec of candidate URL.
	URL string `json:"url"`

	// ReportingMetadata Any associated reporting metadata.
	ReportingMetadata []*StorageSharedStorageReportingMetadata `json:"reportingMetadata"`
}

StorageSharedStorageURLWithMetadata Bundles a candidate URL with its reporting metadata.

type StorageSignedInt64AsBase10 <- 0.115.0

1
type StorageSignedInt64AsBase10 string

StorageSignedInt64AsBase10 (experimental) …

type StorageStorageBucket <- 0.115.0

1
2
3
4
5
6
7
type StorageStorageBucket struct {
	// StorageKey ...
	StorageKey StorageSerializedStorageKey `json:"storageKey"`

	// Name (optional) If not specified, it is the default bucket of the storageKey.
	Name string `json:"name,omitempty"`
}

StorageStorageBucket …

type StorageStorageBucketCreatedOrUpdated <- 0.112.9

1
2
3
4
type StorageStorageBucketCreatedOrUpdated struct {
	// BucketInfo ...
	BucketInfo *StorageStorageBucketInfo `json:"bucketInfo"`
}

StorageStorageBucketCreatedOrUpdated …

(StorageStorageBucketCreatedOrUpdated) ProtoEvent <- 0.112.9

1
func (evt StorageStorageBucketCreatedOrUpdated) ProtoEvent() string

ProtoEvent name.

type StorageStorageBucketDeleted <- 0.112.9

1
2
3
4
type StorageStorageBucketDeleted struct {
	// BucketID ...
	BucketID string `json:"bucketId"`
}

StorageStorageBucketDeleted …

(StorageStorageBucketDeleted) ProtoEvent <- 0.112.9

1
func (evt StorageStorageBucketDeleted) ProtoEvent() string

ProtoEvent name.

type StorageStorageBucketInfo <- 0.112.9

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
type StorageStorageBucketInfo struct {
	// Bucket ...
	Bucket *StorageStorageBucket `json:"bucket"`

	// ID ...
	ID string `json:"id"`

	// Expiration ...
	Expiration TimeSinceEpoch `json:"expiration"`

	// Quota Storage quota (bytes).
	Quota float64 `json:"quota"`

	// Persistent ...
	Persistent bool `json:"persistent"`

	// Durability ...
	Durability StorageStorageBucketsDurability `json:"durability"`
}

StorageStorageBucketInfo …

type StorageStorageBucketsDurability <- 0.112.9

1
type StorageStorageBucketsDurability string

StorageStorageBucketsDurability …

1
2
3
4
5
6
7
const (
	// StorageStorageBucketsDurabilityRelaxed enum const.
	StorageStorageBucketsDurabilityRelaxed StorageStorageBucketsDurability = "relaxed"

	// StorageStorageBucketsDurabilityStrict enum const.
	StorageStorageBucketsDurabilityStrict StorageStorageBucketsDurability = "strict"
)

type StorageStorageType

1
type StorageStorageType string

StorageStorageType Enum of possible storage types.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const (
	// StorageStorageTypeAppcache enum const.
	StorageStorageTypeAppcache StorageStorageType = "appcache"

	// StorageStorageTypeCookies enum const.
	StorageStorageTypeCookies StorageStorageType = "cookies"

	// StorageStorageTypeFileSystems enum const.
	StorageStorageTypeFileSystems StorageStorageType = "file_systems"

	// StorageStorageTypeIndexeddb enum const.
	StorageStorageTypeIndexeddb StorageStorageType = "indexeddb"

	// StorageStorageTypeLocalStorage enum const.
	StorageStorageTypeLocalStorage StorageStorageType = "local_storage"

	// StorageStorageTypeShaderCache enum const.
	StorageStorageTypeShaderCache StorageStorageType = "shader_cache"

	// StorageStorageTypeWebsql enum const.
	StorageStorageTypeWebsql StorageStorageType = "websql"

	// StorageStorageTypeServiceWorkers enum const.
	StorageStorageTypeServiceWorkers StorageStorageType = "service_workers"

	// StorageStorageTypeCacheStorage enum const.
	StorageStorageTypeCacheStorage StorageStorageType = "cache_storage"

	// StorageStorageTypeInterestGroups enum const.
	StorageStorageTypeInterestGroups StorageStorageType = "interest_groups"

	// StorageStorageTypeSharedStorage enum const.
	StorageStorageTypeSharedStorage StorageStorageType = "shared_storage"

	// StorageStorageTypeStorageBuckets enum const.
	StorageStorageTypeStorageBuckets StorageStorageType = "storage_buckets"

	// StorageStorageTypeAll enum const.
	StorageStorageTypeAll StorageStorageType = "all"

	// StorageStorageTypeOther enum const.
	StorageStorageTypeOther StorageStorageType = "other"
)

type StorageTrackCacheStorageForOrigin

1
2
3
4
type StorageTrackCacheStorageForOrigin struct {
	// Origin Security origin.
	Origin string `json:"origin"`
}

StorageTrackCacheStorageForOrigin Registers origin to be notified when an update occurs to its cache storage list.

(StorageTrackCacheStorageForOrigin) Call

1
func (m StorageTrackCacheStorageForOrigin) Call(c Client) error

Call sends the request.

(StorageTrackCacheStorageForOrigin) ProtoReq <- 0.74.0

1
func (m StorageTrackCacheStorageForOrigin) ProtoReq() string

ProtoReq name.

type StorageTrackCacheStorageForStorageKey <- 0.112.3

1
2
3
4
type StorageTrackCacheStorageForStorageKey struct {
	// StorageKey Storage key.
	StorageKey string `json:"storageKey"`
}

StorageTrackCacheStorageForStorageKey Registers storage key to be notified when an update occurs to its cache storage list.

(StorageTrackCacheStorageForStorageKey) Call <- 0.112.3

1
func (m StorageTrackCacheStorageForStorageKey) Call(c Client) error

Call sends the request.

(StorageTrackCacheStorageForStorageKey) ProtoReq <- 0.112.3

1
func (m StorageTrackCacheStorageForStorageKey) ProtoReq() string

ProtoReq name.

type StorageTrackIndexedDBForOrigin

1
2
3
4
type StorageTrackIndexedDBForOrigin struct {
	// Origin Security origin.
	Origin string `json:"origin"`
}

StorageTrackIndexedDBForOrigin Registers origin to be notified when an update occurs to its IndexedDB.

(StorageTrackIndexedDBForOrigin) Call

1
func (m StorageTrackIndexedDBForOrigin) Call(c Client) error

Call sends the request.

(StorageTrackIndexedDBForOrigin) ProtoReq <- 0.74.0

1
func (m StorageTrackIndexedDBForOrigin) ProtoReq() string

ProtoReq name.

type StorageTrackIndexedDBForStorageKey <- 0.108.2

1
2
3
4
type StorageTrackIndexedDBForStorageKey struct {
	// StorageKey Storage key.
	StorageKey string `json:"storageKey"`
}

StorageTrackIndexedDBForStorageKey Registers storage key to be notified when an update occurs to its IndexedDB.

(StorageTrackIndexedDBForStorageKey) Call <- 0.108.2

1
func (m StorageTrackIndexedDBForStorageKey) Call(c Client) error

Call sends the request.

(StorageTrackIndexedDBForStorageKey) ProtoReq <- 0.108.2

1
func (m StorageTrackIndexedDBForStorageKey) ProtoReq() string

ProtoReq name.

type StorageTrustTokens <- 0.90.0

1
2
3
4
5
6
7
type StorageTrustTokens struct {
	// IssuerOrigin ...
	IssuerOrigin string `json:"issuerOrigin"`

	// Count ...
	Count float64 `json:"count"`
}

StorageTrustTokens (experimental) Pair of issuer origin and number of available (signed, but not used) Trust Tokens from that issuer.

type StorageUnsignedInt128AsBase16 <- 0.115.0

1
type StorageUnsignedInt128AsBase16 string

StorageUnsignedInt128AsBase16 (experimental) …

type StorageUnsignedInt64AsBase10 <- 0.115.0

1
type StorageUnsignedInt64AsBase10 string

StorageUnsignedInt64AsBase10 (experimental) …

type StorageUntrackCacheStorageForOrigin

1
2
3
4
type StorageUntrackCacheStorageForOrigin struct {
	// Origin Security origin.
	Origin string `json:"origin"`
}

StorageUntrackCacheStorageForOrigin Unregisters origin from receiving notifications for cache storage.

(StorageUntrackCacheStorageForOrigin) Call

1
func (m StorageUntrackCacheStorageForOrigin) Call(c Client) error

Call sends the request.

(StorageUntrackCacheStorageForOrigin) ProtoReq <- 0.74.0

1
func (m StorageUntrackCacheStorageForOrigin) ProtoReq() string

ProtoReq name.

type StorageUntrackCacheStorageForStorageKey <- 0.112.3

1
2
3
4
type StorageUntrackCacheStorageForStorageKey struct {
	// StorageKey Storage key.
	StorageKey string `json:"storageKey"`
}

StorageUntrackCacheStorageForStorageKey Unregisters storage key from receiving notifications for cache storage.

(StorageUntrackCacheStorageForStorageKey) Call <- 0.112.3

1
func (m StorageUntrackCacheStorageForStorageKey) Call(c Client) error

Call sends the request.

(StorageUntrackCacheStorageForStorageKey) ProtoReq <- 0.112.3

1
func (m StorageUntrackCacheStorageForStorageKey) ProtoReq() string

ProtoReq name.

type StorageUntrackIndexedDBForOrigin

1
2
3
4
type StorageUntrackIndexedDBForOrigin struct {
	// Origin Security origin.
	Origin string `json:"origin"`
}

StorageUntrackIndexedDBForOrigin Unregisters origin from receiving notifications for IndexedDB.

(StorageUntrackIndexedDBForOrigin) Call

1
func (m StorageUntrackIndexedDBForOrigin) Call(c Client) error

Call sends the request.

(StorageUntrackIndexedDBForOrigin) ProtoReq <- 0.74.0

1
func (m StorageUntrackIndexedDBForOrigin) ProtoReq() string

ProtoReq name.

type StorageUntrackIndexedDBForStorageKey <- 0.108.2

1
2
3
4
type StorageUntrackIndexedDBForStorageKey struct {
	// StorageKey Storage key.
	StorageKey string `json:"storageKey"`
}

StorageUntrackIndexedDBForStorageKey Unregisters storage key from receiving notifications for IndexedDB.

(StorageUntrackIndexedDBForStorageKey) Call <- 0.108.2

1
func (m StorageUntrackIndexedDBForStorageKey) Call(c Client) error

Call sends the request.

(StorageUntrackIndexedDBForStorageKey) ProtoReq <- 0.108.2

1
func (m StorageUntrackIndexedDBForStorageKey) ProtoReq() string

ProtoReq name.

type StorageUsageForType

1
2
3
4
5
6
7
type StorageUsageForType struct {
	// StorageType Name of storage type.
	StorageType StorageStorageType `json:"storageType"`

	// Usage Storage usage (bytes).
	Usage float64 `json:"usage"`
}

StorageUsageForType Usage for a storage type.

type SystemInfoGPUDevice

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type SystemInfoGPUDevice struct {
	// VendorID PCI ID of the GPU vendor, if available; 0 otherwise.
	VendorID float64 `json:"vendorId"`

	// DeviceID PCI ID of the GPU device, if available; 0 otherwise.
	DeviceID float64 `json:"deviceId"`

	// SubSysID (optional) Sub sys ID of the GPU, only available on Windows.
	SubSysID *float64 `json:"subSysId,omitempty"`

	// Revision (optional) Revision of the GPU, only available on Windows.
	Revision *float64 `json:"revision,omitempty"`

	// VendorString String description of the GPU vendor, if the PCI ID is not available.
	VendorString string `json:"vendorString"`

	// DeviceString String description of the GPU device, if the PCI ID is not available.
	DeviceString string `json:"deviceString"`

	// DriverVendor String description of the GPU driver vendor.
	DriverVendor string `json:"driverVendor"`

	// DriverVersion String description of the GPU driver version.
	DriverVersion string `json:"driverVersion"`
}

SystemInfoGPUDevice Describes a single graphics processor (GPU).

type SystemInfoGPUInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type SystemInfoGPUInfo struct {
	// Devices The graphics devices on the system. Element 0 is the primary GPU.
	Devices []*SystemInfoGPUDevice `json:"devices"`

	// AuxAttributes (optional) An optional dictionary of additional GPU related attributes.
	AuxAttributes map[string]gson.JSON `json:"auxAttributes,omitempty"`

	// FeatureStatus (optional) An optional dictionary of graphics features and their status.
	FeatureStatus map[string]gson.JSON `json:"featureStatus,omitempty"`

	// DriverBugWorkarounds An optional array of GPU driver bug workarounds.
	DriverBugWorkarounds []string `json:"driverBugWorkarounds"`

	// VideoDecoding Supported accelerated video decoding capabilities.
	VideoDecoding []*SystemInfoVideoDecodeAcceleratorCapability `json:"videoDecoding"`

	// VideoEncoding Supported accelerated video encoding capabilities.
	VideoEncoding []*SystemInfoVideoEncodeAcceleratorCapability `json:"videoEncoding"`

	// ImageDecoding Supported accelerated image decoding capabilities.
	ImageDecoding []*SystemInfoImageDecodeAcceleratorCapability `json:"imageDecoding"`
}

SystemInfoGPUInfo Provides information about the GPU(s) on the system.

type SystemInfoGetFeatureState <- 0.112.3

1
2
3
4
type SystemInfoGetFeatureState struct {
	// FeatureState ...
	FeatureState string `json:"featureState"`
}

SystemInfoGetFeatureState Returns information about the feature state.

(SystemInfoGetFeatureState) Call <- 0.112.3

1
func (m SystemInfoGetFeatureState) Call(c Client) (*SystemInfoGetFeatureStateResult, error)

Call the request.

(SystemInfoGetFeatureState) ProtoReq <- 0.112.3

1
func (m SystemInfoGetFeatureState) ProtoReq() string

ProtoReq name.

type SystemInfoGetFeatureStateResult <- 0.112.3

1
2
3
4
type SystemInfoGetFeatureStateResult struct {
	// FeatureEnabled ...
	FeatureEnabled bool `json:"featureEnabled"`
}

SystemInfoGetFeatureStateResult …

type SystemInfoGetInfo

1
type SystemInfoGetInfo struct{}

SystemInfoGetInfo Returns information about the system.

(SystemInfoGetInfo) Call

1
func (m SystemInfoGetInfo) Call(c Client) (*SystemInfoGetInfoResult, error)

Call the request.

(SystemInfoGetInfo) ProtoReq <- 0.74.0

1
func (m SystemInfoGetInfo) ProtoReq() string

ProtoReq name.

type SystemInfoGetInfoResult

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type SystemInfoGetInfoResult struct {
	// Gpu Information about the GPUs on the system.
	Gpu *SystemInfoGPUInfo `json:"gpu"`

	// ModelName A platform-dependent description of the model of the machine. On Mac OS, this is, for
	// example, 'MacBookPro'. Will be the empty string if not supported.
	ModelName string `json:"modelName"`

	// ModelVersion A platform-dependent description of the version of the machine. On Mac OS, this is, for
	// example, '10.1'. Will be the empty string if not supported.
	ModelVersion string `json:"modelVersion"`

	// CommandLine The command line string used to launch the browser. Will be the empty string if not
	// supported.
	CommandLine string `json:"commandLine"`
}

SystemInfoGetInfoResult …

type SystemInfoGetProcessInfo

1
type SystemInfoGetProcessInfo struct{}

SystemInfoGetProcessInfo Returns information about all running processes.

(SystemInfoGetProcessInfo) Call

1
func (m SystemInfoGetProcessInfo) Call(c Client) (*SystemInfoGetProcessInfoResult, error)

Call the request.

(SystemInfoGetProcessInfo) ProtoReq <- 0.74.0

1
func (m SystemInfoGetProcessInfo) ProtoReq() string

ProtoReq name.

type SystemInfoGetProcessInfoResult

1
2
3
4
type SystemInfoGetProcessInfoResult struct {
	// ProcessInfo An array of process info blocks.
	ProcessInfo []*SystemInfoProcessInfo `json:"processInfo"`
}

SystemInfoGetProcessInfoResult …

type SystemInfoImageDecodeAcceleratorCapability

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type SystemInfoImageDecodeAcceleratorCapability struct {
	// ImageType Image coded, e.g. Jpeg.
	ImageType SystemInfoImageType `json:"imageType"`

	// MaxDimensions Maximum supported dimensions of the image in pixels.
	MaxDimensions *SystemInfoSize `json:"maxDimensions"`

	// MinDimensions Minimum supported dimensions of the image in pixels.
	MinDimensions *SystemInfoSize `json:"minDimensions"`

	// Subsamplings Optional array of supported subsampling formats, e.g. 4:2:0, if known.
	Subsamplings []SystemInfoSubsamplingFormat `json:"subsamplings"`
}

SystemInfoImageDecodeAcceleratorCapability Describes a supported image decoding profile with its associated minimum and maximum resolutions and subsampling.

type SystemInfoImageType

1
type SystemInfoImageType string

SystemInfoImageType Image format of a given image.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// SystemInfoImageTypeJpeg enum const.
	SystemInfoImageTypeJpeg SystemInfoImageType = "jpeg"

	// SystemInfoImageTypeWebp enum const.
	SystemInfoImageTypeWebp SystemInfoImageType = "webp"

	// SystemInfoImageTypeUnknown enum const.
	SystemInfoImageTypeUnknown SystemInfoImageType = "unknown"
)

type SystemInfoProcessInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type SystemInfoProcessInfo struct {
	// Type Specifies process type.
	Type string `json:"type"`

	// ID Specifies process id.
	ID int `json:"id"`

	// CPUTime Specifies cumulative CPU usage in seconds across all threads of the
	// process since the process start.
	CPUTime float64 `json:"cpuTime"`
}

SystemInfoProcessInfo Represents process info.

type SystemInfoSize

1
2
3
4
5
6
7
type SystemInfoSize struct {
	// Width in pixels.
	Width int `json:"width"`

	// Height in pixels.
	Height int `json:"height"`
}

SystemInfoSize Describes the width and height dimensions of an entity.

type SystemInfoSubsamplingFormat

1
type SystemInfoSubsamplingFormat string

SystemInfoSubsamplingFormat YUV subsampling type of the pixels of a given image.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// SystemInfoSubsamplingFormatYuv420 enum const.
	SystemInfoSubsamplingFormatYuv420 SystemInfoSubsamplingFormat = "yuv420"

	// SystemInfoSubsamplingFormatYuv422 enum const.
	SystemInfoSubsamplingFormatYuv422 SystemInfoSubsamplingFormat = "yuv422"

	// SystemInfoSubsamplingFormatYuv444 enum const.
	SystemInfoSubsamplingFormatYuv444 SystemInfoSubsamplingFormat = "yuv444"
)

type SystemInfoVideoDecodeAcceleratorCapability

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type SystemInfoVideoDecodeAcceleratorCapability struct {
	// Profile Video codec profile that is supported, e.g. VP9 Profile 2.
	Profile string `json:"profile"`

	// MaxResolution Maximum video dimensions in pixels supported for this |profile|.
	MaxResolution *SystemInfoSize `json:"maxResolution"`

	// MinResolution Minimum video dimensions in pixels supported for this |profile|.
	MinResolution *SystemInfoSize `json:"minResolution"`
}

SystemInfoVideoDecodeAcceleratorCapability Describes a supported video decoding profile with its associated minimum and maximum resolutions.

type SystemInfoVideoEncodeAcceleratorCapability

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type SystemInfoVideoEncodeAcceleratorCapability struct {
	// Profile Video codec profile that is supported, e.g H264 Main.
	Profile string `json:"profile"`

	// MaxResolution Maximum video dimensions in pixels supported for this |profile|.
	MaxResolution *SystemInfoSize `json:"maxResolution"`

	// MaxFramerateNumerator Maximum encoding framerate in frames per second supported for this
	// |profile|, as fraction's numerator and denominator, e.g. 24/1 fps,
	// 24000/1001 fps, etc.
	MaxFramerateNumerator int `json:"maxFramerateNumerator"`

	// MaxFramerateDenominator ...
	MaxFramerateDenominator int `json:"maxFramerateDenominator"`
}

SystemInfoVideoEncodeAcceleratorCapability Describes a supported video encoding profile with its associated maximum resolution and maximum framerate.

type TargetActivateTarget

1
2
3
4
type TargetActivateTarget struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`
}

TargetActivateTarget Activates (focuses) the target.

(TargetActivateTarget) Call

1
func (m TargetActivateTarget) Call(c Client) error

Call sends the request.

(TargetActivateTarget) ProtoReq <- 0.74.0

1
func (m TargetActivateTarget) ProtoReq() string

ProtoReq name.

type TargetAttachToBrowserTarget

1
type TargetAttachToBrowserTarget struct{}

TargetAttachToBrowserTarget (experimental) Attaches to the browser target, only uses flat sessionId mode.

(TargetAttachToBrowserTarget) Call

1
func (m TargetAttachToBrowserTarget) Call(c Client) (*TargetAttachToBrowserTargetResult, error)

Call the request.

(TargetAttachToBrowserTarget) ProtoReq <- 0.74.0

1
func (m TargetAttachToBrowserTarget) ProtoReq() string

ProtoReq name.

type TargetAttachToBrowserTargetResult

1
2
3
4
type TargetAttachToBrowserTargetResult struct {
	// SessionID Id assigned to the session.
	SessionID TargetSessionID `json:"sessionId"`
}

TargetAttachToBrowserTargetResult (experimental) …

type TargetAttachToTarget

1
2
3
4
5
6
7
8
9
type TargetAttachToTarget struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`

	// Flatten (optional) Enables "flat" access to the session via specifying sessionId attribute in the commands.
	// We plan to make this the default, deprecate non-flattened mode,
	// and eventually retire it. See crbug.com/991325.
	Flatten bool `json:"flatten,omitempty"`
}

TargetAttachToTarget Attaches to the target with given id.

(TargetAttachToTarget) Call

1
func (m TargetAttachToTarget) Call(c Client) (*TargetAttachToTargetResult, error)

Call the request.

(TargetAttachToTarget) ProtoReq <- 0.74.0

1
func (m TargetAttachToTarget) ProtoReq() string

ProtoReq name.

type TargetAttachToTargetResult

1
2
3
4
type TargetAttachToTargetResult struct {
	// SessionID Id assigned to the session.
	SessionID TargetSessionID `json:"sessionId"`
}

TargetAttachToTargetResult …

type TargetAttachedToTarget

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type TargetAttachedToTarget struct {
	// SessionID Identifier assigned to the session used to send/receive messages.
	SessionID TargetSessionID `json:"sessionId"`

	// TargetInfo ...
	TargetInfo *TargetTargetInfo `json:"targetInfo"`

	// WaitingForDebugger ...
	WaitingForDebugger bool `json:"waitingForDebugger"`
}

TargetAttachedToTarget (experimental) Issued when attached to target because of auto-attach or attachToTarget command.

(TargetAttachedToTarget) ProtoEvent <- 0.72.0

1
func (evt TargetAttachedToTarget) ProtoEvent() string

ProtoEvent name.

type TargetAutoAttachRelated <- 0.102.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
type TargetAutoAttachRelated struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`

	// WaitForDebuggerOnStart Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
	// to run paused targets.
	WaitForDebuggerOnStart bool `json:"waitForDebuggerOnStart"`

	// Filter (experimental) (optional) Only targets matching filter will be attached.
	Filter TargetTargetFilter `json:"filter,omitempty"`
}

TargetAutoAttachRelated (experimental) 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.

(TargetAutoAttachRelated) Call <- 0.102.0

1
func (m TargetAutoAttachRelated) Call(c Client) error

Call sends the request.

(TargetAutoAttachRelated) ProtoReq <- 0.102.0

1
func (m TargetAutoAttachRelated) ProtoReq() string

ProtoReq name.

type TargetCloseTarget

1
2
3
4
type TargetCloseTarget struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`
}

TargetCloseTarget Closes the target. If the target is a page that gets closed too.

(TargetCloseTarget) Call

1
func (m TargetCloseTarget) Call(c Client) (*TargetCloseTargetResult, error)

Call the request.

(TargetCloseTarget) ProtoReq <- 0.74.0

1
func (m TargetCloseTarget) ProtoReq() string

ProtoReq name.

type TargetCloseTargetResult

1
2
3
4
type TargetCloseTargetResult struct {
	// Success (deprecated) Always set to true. If an error occurs, the response indicates protocol error.
	Success bool `json:"success"`
}

TargetCloseTargetResult …

type TargetCreateBrowserContext

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type TargetCreateBrowserContext struct {
	// DisposeOnDetach (experimental) (optional) If specified, disposes this context when debugging session disconnects.
	DisposeOnDetach bool `json:"disposeOnDetach,omitempty"`

	// ProxyServer (experimental) (optional) Proxy server, similar to the one passed to --proxy-server
	ProxyServer string `json:"proxyServer,omitempty"`

	// ProxyBypassList (experimental) (optional) Proxy bypass list, similar to the one passed to --proxy-bypass-list
	ProxyBypassList string `json:"proxyBypassList,omitempty"`

	// OriginsWithUniversalNetworkAccess (experimental) (optional) An optional list of origins to grant unlimited cross-origin access to.
	// Parts of the URL other than those constituting origin are ignored.
	OriginsWithUniversalNetworkAccess []string `json:"originsWithUniversalNetworkAccess,omitempty"`
}

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

(TargetCreateBrowserContext) Call

1
func (m TargetCreateBrowserContext) Call(c Client) (*TargetCreateBrowserContextResult, error)

Call the request.

(TargetCreateBrowserContext) ProtoReq <- 0.74.0

1
func (m TargetCreateBrowserContext) ProtoReq() string

ProtoReq name.

type TargetCreateBrowserContextResult

1
2
3
4
type TargetCreateBrowserContextResult struct {
	// BrowserContextID The id of the context created.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId"`
}

TargetCreateBrowserContextResult …

type TargetCreateTarget

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
type TargetCreateTarget struct {
	// URL The initial URL the page will be navigated to. An empty string indicates about:blank.
	URL string `json:"url"`

	// Width (optional) Frame width in DIP (headless chrome only).
	Width *int `json:"width,omitempty"`

	// Height (optional) Frame height in DIP (headless chrome only).
	Height *int `json:"height,omitempty"`

	// BrowserContextID (experimental) (optional) The browser context to create the page in.
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`

	// EnableBeginFrameControl (experimental) (optional) Whether BeginFrames for this target will be controlled via DevTools (headless chrome only,
	// not supported on MacOS yet, false by default).
	EnableBeginFrameControl bool `json:"enableBeginFrameControl,omitempty"`

	// NewWindow (optional) Whether to create a new Window or Tab (chrome-only, false by default).
	NewWindow bool `json:"newWindow,omitempty"`

	// Background (optional) Whether to create the target in background or foreground (chrome-only,
	// false by default).
	Background bool `json:"background,omitempty"`

	// ForTab (experimental) (optional) Whether to create the target of type "tab".
	ForTab bool `json:"forTab,omitempty"`
}

TargetCreateTarget Creates a new page.

(TargetCreateTarget) Call

1
func (m TargetCreateTarget) Call(c Client) (*TargetCreateTargetResult, error)

Call the request.

(TargetCreateTarget) ProtoReq <- 0.74.0

1
func (m TargetCreateTarget) ProtoReq() string

ProtoReq name.

type TargetCreateTargetResult

1
2
3
4
type TargetCreateTargetResult struct {
	// TargetID The id of the page opened.
	TargetID TargetTargetID `json:"targetId"`
}

TargetCreateTargetResult …

type TargetDetachFromTarget

1
2
3
4
5
6
7
type TargetDetachFromTarget struct {
	// SessionID (optional) Session to detach.
	SessionID TargetSessionID `json:"sessionId,omitempty"`

	// TargetID (deprecated) (optional) Deprecated.
	TargetID TargetTargetID `json:"targetId,omitempty"`
}

TargetDetachFromTarget Detaches session with given id.

(TargetDetachFromTarget) Call

1
func (m TargetDetachFromTarget) Call(c Client) error

Call sends the request.

(TargetDetachFromTarget) ProtoReq <- 0.74.0

1
func (m TargetDetachFromTarget) ProtoReq() string

ProtoReq name.

type TargetDetachedFromTarget

1
2
3
4
5
6
7
type TargetDetachedFromTarget struct {
	// SessionID Detached session identifier.
	SessionID TargetSessionID `json:"sessionId"`

	// TargetID (deprecated) (optional) Deprecated.
	TargetID TargetTargetID `json:"targetId,omitempty"`
}

TargetDetachedFromTarget (experimental) 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.

(TargetDetachedFromTarget) ProtoEvent <- 0.72.0

1
func (evt TargetDetachedFromTarget) ProtoEvent() string

ProtoEvent name.

type TargetDisposeBrowserContext

1
2
3
4
type TargetDisposeBrowserContext struct {
	// BrowserContextID ...
	BrowserContextID BrowserBrowserContextID `json:"browserContextId"`
}

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

(TargetDisposeBrowserContext) Call

1
func (m TargetDisposeBrowserContext) Call(c Client) error

Call sends the request.

(TargetDisposeBrowserContext) ProtoReq <- 0.74.0

1
func (m TargetDisposeBrowserContext) ProtoReq() string

ProtoReq name.

type TargetExposeDevToolsProtocol

1
2
3
4
5
6
7
type TargetExposeDevToolsProtocol struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`

	// BindingName (optional) Binding name, 'cdp' if not specified.
	BindingName string `json:"bindingName,omitempty"`
}

TargetExposeDevToolsProtocol (experimental) 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.

(TargetExposeDevToolsProtocol) Call

1
func (m TargetExposeDevToolsProtocol) Call(c Client) error

Call sends the request.

(TargetExposeDevToolsProtocol) ProtoReq <- 0.74.0

1
func (m TargetExposeDevToolsProtocol) ProtoReq() string

ProtoReq name.

type TargetFilterEntry <- 0.108.2

1
2
3
4
5
6
7
type TargetFilterEntry struct {
	// Exclude (optional) If set, causes exclusion of matching targets from the list.
	Exclude bool `json:"exclude,omitempty"`

	// Type (optional) If not present, matches any type.
	Type string `json:"type,omitempty"`
}

TargetFilterEntry (experimental) A filter used by target query/discovery/auto-attach operations.

type TargetGetBrowserContexts

1
type TargetGetBrowserContexts struct{}

TargetGetBrowserContexts Returns all browser contexts created with Target.createBrowserContext method.

(TargetGetBrowserContexts) Call

1
func (m TargetGetBrowserContexts) Call(c Client) (*TargetGetBrowserContextsResult, error)

Call the request.

(TargetGetBrowserContexts) ProtoReq <- 0.74.0

1
func (m TargetGetBrowserContexts) ProtoReq() string

ProtoReq name.

type TargetGetBrowserContextsResult

1
2
3
4
type TargetGetBrowserContextsResult struct {
	// BrowserContextIDs An array of browser context ids.
	BrowserContextIDs []BrowserBrowserContextID `json:"browserContextIds"`
}

TargetGetBrowserContextsResult …

type TargetGetTargetInfo

1
2
3
4
type TargetGetTargetInfo struct {
	// TargetID (optional) ...
	TargetID TargetTargetID `json:"targetId,omitempty"`
}

TargetGetTargetInfo (experimental) Returns information about a target.

(TargetGetTargetInfo) Call

1
func (m TargetGetTargetInfo) Call(c Client) (*TargetGetTargetInfoResult, error)

Call the request.

(TargetGetTargetInfo) ProtoReq <- 0.74.0

1
func (m TargetGetTargetInfo) ProtoReq() string

ProtoReq name.

type TargetGetTargetInfoResult

1
2
3
4
type TargetGetTargetInfoResult struct {
	// TargetInfo ...
	TargetInfo *TargetTargetInfo `json:"targetInfo"`
}

TargetGetTargetInfoResult (experimental) …

type TargetGetTargets

1
2
3
4
5
6
type TargetGetTargets struct {
	// Filter (experimental) (optional) Only targets matching filter will be reported. If filter is not specified
	// and target discovery is currently enabled, a filter used for target discovery
	// is used for consistency.
	Filter TargetTargetFilter `json:"filter,omitempty"`
}

TargetGetTargets Retrieves a list of available targets.

(TargetGetTargets) Call

1
func (m TargetGetTargets) Call(c Client) (*TargetGetTargetsResult, error)

Call the request.

(TargetGetTargets) ProtoReq <- 0.74.0

1
func (m TargetGetTargets) ProtoReq() string

ProtoReq name.

type TargetGetTargetsResult

1
2
3
4
type TargetGetTargetsResult struct {
	// TargetInfos The list of targets.
	TargetInfos []*TargetTargetInfo `json:"targetInfos"`
}

TargetGetTargetsResult …

type TargetReceivedMessageFromTarget

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type TargetReceivedMessageFromTarget struct {
	// SessionID Identifier of a session which sends a message.
	SessionID TargetSessionID `json:"sessionId"`

	// Message ...
	Message string `json:"message"`

	// TargetID (deprecated) (optional) Deprecated.
	TargetID TargetTargetID `json:"targetId,omitempty"`
}

TargetReceivedMessageFromTarget Notifies about a new protocol message received from the session (as reported in attachedToTarget event).

(TargetReceivedMessageFromTarget) ProtoEvent <- 0.72.0

1
func (evt TargetReceivedMessageFromTarget) ProtoEvent() string

ProtoEvent name.

type TargetRemoteLocation

1
2
3
4
5
6
7
type TargetRemoteLocation struct {
	// Host ...
	Host string `json:"host"`

	// Port ...
	Port int `json:"port"`
}

TargetRemoteLocation (experimental) …

type TargetSendMessageToTarget

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type TargetSendMessageToTarget struct {
	// Message ...
	Message string `json:"message"`

	// SessionID (optional) Identifier of the session.
	SessionID TargetSessionID `json:"sessionId,omitempty"`

	// TargetID (deprecated) (optional) Deprecated.
	TargetID TargetTargetID `json:"targetId,omitempty"`
}

TargetSendMessageToTarget (deprecated) Sends protocol message over session with given id. Consider using flat mode instead; see commands attachToTarget, setAutoAttach, and crbug.com/991325.

(TargetSendMessageToTarget) Call

1
func (m TargetSendMessageToTarget) Call(c Client) error

Call sends the request.

(TargetSendMessageToTarget) ProtoReq <- 0.74.0

1
func (m TargetSendMessageToTarget) ProtoReq() string

ProtoReq name.

type TargetSessionID

1
type TargetSessionID string

TargetSessionID Unique identifier of attached debugging session.

type TargetSetAutoAttach

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type TargetSetAutoAttach struct {
	// AutoAttach Whether to auto-attach to related targets.
	AutoAttach bool `json:"autoAttach"`

	// WaitForDebuggerOnStart Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
	// to run paused targets.
	WaitForDebuggerOnStart bool `json:"waitForDebuggerOnStart"`

	// Flatten (experimental) (optional) Enables "flat" access to the session via specifying sessionId attribute in the commands.
	// We plan to make this the default, deprecate non-flattened mode,
	// and eventually retire it. See crbug.com/991325.
	Flatten bool `json:"flatten,omitempty"`

	// Filter (experimental) (optional) Only targets matching filter will be attached.
	Filter TargetTargetFilter `json:"filter,omitempty"`
}

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

(TargetSetAutoAttach) Call

1
func (m TargetSetAutoAttach) Call(c Client) error

Call sends the request.

(TargetSetAutoAttach) ProtoReq <- 0.74.0

1
func (m TargetSetAutoAttach) ProtoReq() string

ProtoReq name.

type TargetSetDiscoverTargets

1
2
3
4
5
6
7
8
type TargetSetDiscoverTargets struct {
	// Discover Whether to discover available targets.
	Discover bool `json:"discover"`

	// Filter (experimental) (optional) Only targets matching filter will be attached. If `discover` is false,
	// `filter` must be omitted or empty.
	Filter TargetTargetFilter `json:"filter,omitempty"`
}

TargetSetDiscoverTargets Controls whether to discover available targets and notify via targetCreated/targetInfoChanged/targetDestroyed events.

(TargetSetDiscoverTargets) Call

1
func (m TargetSetDiscoverTargets) Call(c Client) error

Call sends the request.

(TargetSetDiscoverTargets) ProtoReq <- 0.74.0

1
func (m TargetSetDiscoverTargets) ProtoReq() string

ProtoReq name.

type TargetSetRemoteLocations

1
2
3
4
type TargetSetRemoteLocations struct {
	// Locations List of remote locations.
	Locations []*TargetRemoteLocation `json:"locations"`
}

TargetSetRemoteLocations (experimental) Enables target discovery for the specified locations, when setDiscoverTargets was set to true.

(TargetSetRemoteLocations) Call

1
func (m TargetSetRemoteLocations) Call(c Client) error

Call sends the request.

(TargetSetRemoteLocations) ProtoReq <- 0.74.0

1
func (m TargetSetRemoteLocations) ProtoReq() string

ProtoReq name.

type TargetTargetCrashed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type TargetTargetCrashed struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`

	// Status Termination status type.
	Status string `json:"status"`

	// ErrorCode Termination error code.
	ErrorCode int `json:"errorCode"`
}

TargetTargetCrashed Issued when a target has crashed.

(TargetTargetCrashed) ProtoEvent <- 0.72.0

1
func (evt TargetTargetCrashed) ProtoEvent() string

ProtoEvent name.

type TargetTargetCreated

1
2
3
4
type TargetTargetCreated struct {
	// TargetInfo ...
	TargetInfo *TargetTargetInfo `json:"targetInfo"`
}

TargetTargetCreated Issued when a possible inspection target is created.

(TargetTargetCreated) ProtoEvent <- 0.72.0

1
func (evt TargetTargetCreated) ProtoEvent() string

ProtoEvent name.

type TargetTargetDestroyed

1
2
3
4
type TargetTargetDestroyed struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`
}

TargetTargetDestroyed Issued when a target is destroyed.

(TargetTargetDestroyed) ProtoEvent <- 0.72.0

1
func (evt TargetTargetDestroyed) ProtoEvent() string

ProtoEvent name.

type TargetTargetFilter <- 0.108.2

1
type TargetTargetFilter []*TargetFilterEntry

TargetTargetFilter (experimental) 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).

type TargetTargetID

1
type TargetTargetID string

TargetTargetID …

type TargetTargetInfo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
type TargetTargetInfo struct {
	// TargetID ...
	TargetID TargetTargetID `json:"targetId"`

	// Type List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22
	Type TargetTargetInfoType `json:"type"`

	// Title ...
	Title string `json:"title"`

	// URL ...
	URL string `json:"url"`

	// Attached Whether the target has an attached client.
	Attached bool `json:"attached"`

	// OpenerID (optional) Opener target Id
	OpenerID TargetTargetID `json:"openerId,omitempty"`

	// CanAccessOpener (experimental) Whether the target has access to the originating window.
	CanAccessOpener bool `json:"canAccessOpener"`

	// OpenerFrameID (experimental) (optional) Frame id of originating window (is only set if target has an opener).
	OpenerFrameID PageFrameID `json:"openerFrameId,omitempty"`

	// BrowserContextID (experimental) (optional) ...
	BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`

	// Subtype (experimental) (optional) Provides additional details for specific target types. For example, for
	// the type of "page", this may be set to "portal" or "prerender".
	Subtype string `json:"subtype,omitempty"`
}

TargetTargetInfo …

type TargetTargetInfoChanged

1
2
3
4
type TargetTargetInfoChanged struct {
	// TargetInfo ...
	TargetInfo *TargetTargetInfo `json:"targetInfo"`
}

TargetTargetInfoChanged Issued when some information about a target has changed. This only happens between targetCreated and targetDestroyed.

(TargetTargetInfoChanged) ProtoEvent <- 0.72.0

1
func (evt TargetTargetInfoChanged) ProtoEvent() string

ProtoEvent name.

type TargetTargetInfoType

1
type TargetTargetInfoType string

TargetTargetInfoType enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
const (
	// TargetTargetInfoTypePage enum const.
	TargetTargetInfoTypePage TargetTargetInfoType = "page"

	// TargetTargetInfoTypeBackgroundPage enum const.
	TargetTargetInfoTypeBackgroundPage TargetTargetInfoType = "background_page"

	// TargetTargetInfoTypeServiceWorker enum const.
	TargetTargetInfoTypeServiceWorker TargetTargetInfoType = "service_worker"

	// TargetTargetInfoTypeSharedWorker enum const.
	TargetTargetInfoTypeSharedWorker TargetTargetInfoType = "shared_worker"

	// TargetTargetInfoTypeBrowser enum const.
	TargetTargetInfoTypeBrowser TargetTargetInfoType = "browser"

	// TargetTargetInfoTypeOther enum const.
	TargetTargetInfoTypeOther TargetTargetInfoType = "other"
)

type TetheringAccepted

1
2
3
4
5
6
7
type TetheringAccepted struct {
	// Port number that was successfully bound.
	Port int `json:"port"`

	// ConnectionID Connection id to be used.
	ConnectionID string `json:"connectionId"`
}

TetheringAccepted Informs that port was successfully bound and got a specified connection id.

(TetheringAccepted) ProtoEvent <- 0.72.0

1
func (evt TetheringAccepted) ProtoEvent() string

ProtoEvent name.

type TetheringBind

1
2
3
4
type TetheringBind struct {
	// Port number to bind.
	Port int `json:"port"`
}

TetheringBind Request browser port binding.

(TetheringBind) Call

1
func (m TetheringBind) Call(c Client) error

Call sends the request.

(TetheringBind) ProtoReq <- 0.74.0

1
func (m TetheringBind) ProtoReq() string

ProtoReq name.

type TetheringUnbind

1
2
3
4
type TetheringUnbind struct {
	// Port number to unbind.
	Port int `json:"port"`
}

TetheringUnbind Request browser port unbinding.

(TetheringUnbind) Call

1
func (m TetheringUnbind) Call(c Client) error

Call sends the request.

(TetheringUnbind) ProtoReq <- 0.74.0

1
func (m TetheringUnbind) ProtoReq() string

ProtoReq name.

type TimeSinceEpoch

1
type TimeSinceEpoch float64

TimeSinceEpoch UTC time in seconds, counted from January 1, 1970. To convert a time.Time to TimeSinceEpoch, for example:

proto.TimeSinceEpoch(time.Now().Unix())

For session cookie, the value should be -1.

(TimeSinceEpoch) String <- 0.93.0

1
func (t TimeSinceEpoch) String() string

String interface.

(TimeSinceEpoch) Time <- 0.93.0

1
func (t TimeSinceEpoch) Time() time.Time

Time interface.

type TracingBufferUsage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
type TracingBufferUsage struct {
	// PercentFull (optional) A number in range [0..1] that indicates the used size of event buffer as a fraction of its
	// total size.
	PercentFull *float64 `json:"percentFull,omitempty"`

	// EventCount (optional) An approximate number of events in the trace log.
	EventCount *float64 `json:"eventCount,omitempty"`

	// Value (optional) A number in range [0..1] that indicates the used size of event buffer as a fraction of its
	// total size.
	Value *float64 `json:"value,omitempty"`
}

TracingBufferUsage (experimental) …

(TracingBufferUsage) ProtoEvent <- 0.72.0

1
func (evt TracingBufferUsage) ProtoEvent() string

ProtoEvent name.

type TracingDataCollected

1
2
3
4
type TracingDataCollected struct {
	// Value ...
	Value []map[string]gson.JSON `json:"value"`
}

TracingDataCollected (experimental) Contains a bucket of collected trace events. When tracing is stopped collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.

(TracingDataCollected) ProtoEvent <- 0.72.0

1
func (evt TracingDataCollected) ProtoEvent() string

ProtoEvent name.

type TracingEnd

1
type TracingEnd struct{}

TracingEnd Stop trace events collection.

(TracingEnd) Call

1
func (m TracingEnd) Call(c Client) error

Call sends the request.

(TracingEnd) ProtoReq <- 0.74.0

1
func (m TracingEnd) ProtoReq() string

ProtoReq name.

type TracingGetCategories

1
type TracingGetCategories struct{}

TracingGetCategories (experimental) Gets supported tracing categories.

(TracingGetCategories) Call

1
func (m TracingGetCategories) Call(c Client) (*TracingGetCategoriesResult, error)

Call the request.

(TracingGetCategories) ProtoReq <- 0.74.0

1
func (m TracingGetCategories) ProtoReq() string

ProtoReq name.

type TracingGetCategoriesResult

1
2
3
4
type TracingGetCategoriesResult struct {
	// Categories A list of supported tracing categories.
	Categories []string `json:"categories"`
}

TracingGetCategoriesResult (experimental) …

type TracingMemoryDumpConfig

1
type TracingMemoryDumpConfig map[string]gson.JSON

TracingMemoryDumpConfig (experimental) Configuration for memory dump. Used only when “memory-infra” category is enabled.

type TracingMemoryDumpLevelOfDetail <- 0.90.0

1
type TracingMemoryDumpLevelOfDetail string

TracingMemoryDumpLevelOfDetail (experimental) Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// TracingMemoryDumpLevelOfDetailBackground enum const.
	TracingMemoryDumpLevelOfDetailBackground TracingMemoryDumpLevelOfDetail = "background"

	// TracingMemoryDumpLevelOfDetailLight enum const.
	TracingMemoryDumpLevelOfDetailLight TracingMemoryDumpLevelOfDetail = "light"

	// TracingMemoryDumpLevelOfDetailDetailed enum const.
	TracingMemoryDumpLevelOfDetailDetailed TracingMemoryDumpLevelOfDetail = "detailed"
)

type TracingRecordClockSyncMarker

1
2
3
4
type TracingRecordClockSyncMarker struct {
	// SyncID The ID of this clock sync marker
	SyncID string `json:"syncId"`
}

TracingRecordClockSyncMarker (experimental) Record a clock sync marker in the trace.

(TracingRecordClockSyncMarker) Call

1
func (m TracingRecordClockSyncMarker) Call(c Client) error

Call sends the request.

(TracingRecordClockSyncMarker) ProtoReq <- 0.74.0

1
func (m TracingRecordClockSyncMarker) ProtoReq() string

ProtoReq name.

type TracingRequestMemoryDump

1
2
3
4
5
6
7
type TracingRequestMemoryDump struct {
	// Deterministic (optional) Enables more deterministic results by forcing garbage collection
	Deterministic bool `json:"deterministic,omitempty"`

	// LevelOfDetail (optional) Specifies level of details in memory dump. Defaults to "detailed".
	LevelOfDetail TracingMemoryDumpLevelOfDetail `json:"levelOfDetail,omitempty"`
}

TracingRequestMemoryDump (experimental) Request a global memory dump.

(TracingRequestMemoryDump) Call

1
func (m TracingRequestMemoryDump) Call(c Client) (*TracingRequestMemoryDumpResult, error)

Call the request.

(TracingRequestMemoryDump) ProtoReq <- 0.74.0

1
func (m TracingRequestMemoryDump) ProtoReq() string

ProtoReq name.

type TracingRequestMemoryDumpResult

1
2
3
4
5
6
7
type TracingRequestMemoryDumpResult struct {
	// DumpGUID GUID of the resulting global memory dump.
	DumpGUID string `json:"dumpGuid"`

	// Success True iff the global memory dump succeeded.
	Success bool `json:"success"`
}

TracingRequestMemoryDumpResult (experimental) …

type TracingStart

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
type TracingStart struct {
	// Categories (deprecated) (experimental) (optional) Category/tag filter
	Categories string `json:"categories,omitempty"`

	// Options (deprecated) (experimental) (optional) Tracing options
	Options string `json:"options,omitempty"`

	// BufferUsageReportingInterval (experimental) (optional) If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
	BufferUsageReportingInterval *float64 `json:"bufferUsageReportingInterval,omitempty"`

	// TransferMode (optional) Whether to report trace events as series of dataCollected events or to save trace to a
	// stream (defaults to `ReportEvents`).
	TransferMode TracingStartTransferMode `json:"transferMode,omitempty"`

	// StreamFormat (optional) Trace data format to use. This only applies when using `ReturnAsStream`
	// transfer mode (defaults to `json`).
	StreamFormat TracingStreamFormat `json:"streamFormat,omitempty"`

	// StreamCompression (experimental) (optional) Compression format to use. This only applies when using `ReturnAsStream`
	// transfer mode (defaults to `none`)
	StreamCompression TracingStreamCompression `json:"streamCompression,omitempty"`

	// TraceConfig (optional) ...
	TraceConfig *TracingTraceConfig `json:"traceConfig,omitempty"`

	// PerfettoConfig (experimental) (optional) Base64-encoded serialized perfetto.protos.TraceConfig protobuf message
	// When specified, the parameters `categories`, `options`, `traceConfig`
	// are ignored.
	PerfettoConfig []byte `json:"perfettoConfig,omitempty"`

	// TracingBackend (experimental) (optional) Backend type (defaults to `auto`)
	TracingBackend TracingTracingBackend `json:"tracingBackend,omitempty"`
}

TracingStart Start trace events collection.

(TracingStart) Call

1
func (m TracingStart) Call(c Client) error

Call sends the request.

(TracingStart) ProtoReq <- 0.74.0

1
func (m TracingStart) ProtoReq() string

ProtoReq name.

type TracingStartTransferMode

1
type TracingStartTransferMode string

TracingStartTransferMode enum.

1
2
3
4
5
6
7
const (
	// TracingStartTransferModeReportEvents enum const.
	TracingStartTransferModeReportEvents TracingStartTransferMode = "ReportEvents"

	// TracingStartTransferModeReturnAsStream enum const.
	TracingStartTransferModeReturnAsStream TracingStartTransferMode = "ReturnAsStream"
)

type TracingStreamCompression

1
type TracingStreamCompression string

TracingStreamCompression (experimental) Compression type to use for traces returned via streams.

1
2
3
4
5
6
7
const (
	// TracingStreamCompressionNone enum const.
	TracingStreamCompressionNone TracingStreamCompression = "none"

	// TracingStreamCompressionGzip enum const.
	TracingStreamCompressionGzip TracingStreamCompression = "gzip"
)

type TracingStreamFormat

1
type TracingStreamFormat string

TracingStreamFormat (experimental) Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.

1
2
3
4
5
6
7
const (
	// TracingStreamFormatJSON enum const.
	TracingStreamFormatJSON TracingStreamFormat = "json"

	// TracingStreamFormatProto enum const.
	TracingStreamFormatProto TracingStreamFormat = "proto"
)

type TracingTraceConfig

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
type TracingTraceConfig struct {
	// RecordMode (experimental) (optional) Controls how the trace buffer stores data.
	RecordMode TracingTraceConfigRecordMode `json:"recordMode,omitempty"`

	// TraceBufferSizeInKb (experimental) (optional) Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
	// of 200 MB would be used.
	TraceBufferSizeInKb *float64 `json:"traceBufferSizeInKb,omitempty"`

	// EnableSampling (experimental) (optional) Turns on JavaScript stack sampling.
	EnableSampling bool `json:"enableSampling,omitempty"`

	// EnableSystrace (experimental) (optional) Turns on system tracing.
	EnableSystrace bool `json:"enableSystrace,omitempty"`

	// EnableArgumentFilter (experimental) (optional) Turns on argument filter.
	EnableArgumentFilter bool `json:"enableArgumentFilter,omitempty"`

	// IncludedCategories (optional) Included category filters.
	IncludedCategories []string `json:"includedCategories,omitempty"`

	// ExcludedCategories (optional) Excluded category filters.
	ExcludedCategories []string `json:"excludedCategories,omitempty"`

	// SyntheticDelays (experimental) (optional) Configuration to synthesize the delays in tracing.
	SyntheticDelays []string `json:"syntheticDelays,omitempty"`

	// MemoryDumpConfig (experimental) (optional) Configuration for memory dump triggers. Used only when "memory-infra" category is enabled.
	MemoryDumpConfig TracingMemoryDumpConfig `json:"memoryDumpConfig,omitempty"`
}

TracingTraceConfig …

type TracingTraceConfigRecordMode

1
type TracingTraceConfigRecordMode string

TracingTraceConfigRecordMode enum.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
const (
	// TracingTraceConfigRecordModeRecordUntilFull enum const.
	TracingTraceConfigRecordModeRecordUntilFull TracingTraceConfigRecordMode = "recordUntilFull"

	// TracingTraceConfigRecordModeRecordContinuously enum const.
	TracingTraceConfigRecordModeRecordContinuously TracingTraceConfigRecordMode = "recordContinuously"

	// TracingTraceConfigRecordModeRecordAsMuchAsPossible enum const.
	TracingTraceConfigRecordModeRecordAsMuchAsPossible TracingTraceConfigRecordMode = "recordAsMuchAsPossible"

	// TracingTraceConfigRecordModeEchoToConsole enum const.
	TracingTraceConfigRecordModeEchoToConsole TracingTraceConfigRecordMode = "echoToConsole"
)

type TracingTracingBackend <- 0.97.5

1
type TracingTracingBackend string

TracingTracingBackend (experimental) Backend type to use for tracing. chrome uses the Chrome-integrated tracing service and is supported on all platforms. system is only supported on Chrome OS and uses the Perfetto system tracing service. auto chooses system when the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise uses chrome.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// TracingTracingBackendAuto enum const.
	TracingTracingBackendAuto TracingTracingBackend = "auto"

	// TracingTracingBackendChrome enum const.
	TracingTracingBackendChrome TracingTracingBackend = "chrome"

	// TracingTracingBackendSystem enum const.
	TracingTracingBackendSystem TracingTracingBackend = "system"
)

type TracingTracingComplete

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
type TracingTracingComplete struct {
	// DataLossOccurred Indicates whether some trace data is known to have been lost, e.g. because the trace ring
	// buffer wrapped around.
	DataLossOccurred bool `json:"dataLossOccurred"`

	// Stream (optional) A handle of the stream that holds resulting trace data.
	Stream IOStreamHandle `json:"stream,omitempty"`

	// TraceFormat (optional) Trace data format of returned stream.
	TraceFormat TracingStreamFormat `json:"traceFormat,omitempty"`

	// StreamCompression (optional) Compression format of returned stream.
	StreamCompression TracingStreamCompression `json:"streamCompression,omitempty"`
}

TracingTracingComplete Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.

(TracingTracingComplete) ProtoEvent <- 0.72.0

1
func (evt TracingTracingComplete) ProtoEvent() string

ProtoEvent name.

type WebAudioAudioListener

1
2
3
4
5
6
7
type WebAudioAudioListener struct {
	// ListenerID ...
	ListenerID WebAudioGraphObjectID `json:"listenerId"`

	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`
}

WebAudioAudioListener Protocol object for AudioListener.

type WebAudioAudioListenerCreated

1
2
3
4
type WebAudioAudioListenerCreated struct {
	// Listener ...
	Listener *WebAudioAudioListener `json:"listener"`
}

WebAudioAudioListenerCreated Notifies that the construction of an AudioListener has finished.

(WebAudioAudioListenerCreated) ProtoEvent <- 0.72.0

1
func (evt WebAudioAudioListenerCreated) ProtoEvent() string

ProtoEvent name.

type WebAudioAudioListenerWillBeDestroyed

1
2
3
4
5
6
7
type WebAudioAudioListenerWillBeDestroyed struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// ListenerID ...
	ListenerID WebAudioGraphObjectID `json:"listenerId"`
}

WebAudioAudioListenerWillBeDestroyed Notifies that a new AudioListener has been created.

(WebAudioAudioListenerWillBeDestroyed) ProtoEvent <- 0.72.0

1
func (evt WebAudioAudioListenerWillBeDestroyed) ProtoEvent() string

ProtoEvent name.

type WebAudioAudioNode

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type WebAudioAudioNode struct {
	// NodeID ...
	NodeID WebAudioGraphObjectID `json:"nodeId"`

	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// NodeType ...
	NodeType WebAudioNodeType `json:"nodeType"`

	// NumberOfInputs ...
	NumberOfInputs float64 `json:"numberOfInputs"`

	// NumberOfOutputs ...
	NumberOfOutputs float64 `json:"numberOfOutputs"`

	// ChannelCount ...
	ChannelCount float64 `json:"channelCount"`

	// ChannelCountMode ...
	ChannelCountMode WebAudioChannelCountMode `json:"channelCountMode"`

	// ChannelInterpretation ...
	ChannelInterpretation WebAudioChannelInterpretation `json:"channelInterpretation"`
}

WebAudioAudioNode Protocol object for AudioNode.

type WebAudioAudioNodeCreated

1
2
3
4
type WebAudioAudioNodeCreated struct {
	// Node ...
	Node *WebAudioAudioNode `json:"node"`
}

WebAudioAudioNodeCreated Notifies that a new AudioNode has been created.

(WebAudioAudioNodeCreated) ProtoEvent <- 0.72.0

1
func (evt WebAudioAudioNodeCreated) ProtoEvent() string

ProtoEvent name.

type WebAudioAudioNodeWillBeDestroyed

1
2
3
4
5
6
7
type WebAudioAudioNodeWillBeDestroyed struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// NodeID ...
	NodeID WebAudioGraphObjectID `json:"nodeId"`
}

WebAudioAudioNodeWillBeDestroyed Notifies that an existing AudioNode has been destroyed.

(WebAudioAudioNodeWillBeDestroyed) ProtoEvent <- 0.72.0

1
func (evt WebAudioAudioNodeWillBeDestroyed) ProtoEvent() string

ProtoEvent name.

type WebAudioAudioParam

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
type WebAudioAudioParam struct {
	// ParamID ...
	ParamID WebAudioGraphObjectID `json:"paramId"`

	// NodeID ...
	NodeID WebAudioGraphObjectID `json:"nodeId"`

	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// ParamType ...
	ParamType WebAudioParamType `json:"paramType"`

	// Rate ...
	Rate WebAudioAutomationRate `json:"rate"`

	// DefaultValue ...
	DefaultValue float64 `json:"defaultValue"`

	// MinValue ...
	MinValue float64 `json:"minValue"`

	// MaxValue ...
	MaxValue float64 `json:"maxValue"`
}

WebAudioAudioParam Protocol object for AudioParam.

type WebAudioAudioParamCreated

1
2
3
4
type WebAudioAudioParamCreated struct {
	// Param ...
	Param *WebAudioAudioParam `json:"param"`
}

WebAudioAudioParamCreated Notifies that a new AudioParam has been created.

(WebAudioAudioParamCreated) ProtoEvent <- 0.72.0

1
func (evt WebAudioAudioParamCreated) ProtoEvent() string

ProtoEvent name.

type WebAudioAudioParamWillBeDestroyed

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
type WebAudioAudioParamWillBeDestroyed struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// NodeID ...
	NodeID WebAudioGraphObjectID `json:"nodeId"`

	// ParamID ...
	ParamID WebAudioGraphObjectID `json:"paramId"`
}

WebAudioAudioParamWillBeDestroyed Notifies that an existing AudioParam has been destroyed.

(WebAudioAudioParamWillBeDestroyed) ProtoEvent <- 0.72.0

1
func (evt WebAudioAudioParamWillBeDestroyed) ProtoEvent() string

ProtoEvent name.

type WebAudioAutomationRate

1
type WebAudioAutomationRate string

WebAudioAutomationRate Enum of AudioParam::AutomationRate from the spec.

1
2
3
4
5
6
7
const (
	// WebAudioAutomationRateARate enum const.
	WebAudioAutomationRateARate WebAudioAutomationRate = "a-rate"

	// WebAudioAutomationRateKRate enum const.
	WebAudioAutomationRateKRate WebAudioAutomationRate = "k-rate"
)

type WebAudioBaseAudioContext

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
type WebAudioBaseAudioContext struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// ContextType ...
	ContextType WebAudioContextType `json:"contextType"`

	// ContextState ...
	ContextState WebAudioContextState `json:"contextState"`

	// RealtimeData (optional) ...
	RealtimeData *WebAudioContextRealtimeData `json:"realtimeData,omitempty"`

	// CallbackBufferSize Platform-dependent callback buffer size.
	CallbackBufferSize float64 `json:"callbackBufferSize"`

	// MaxOutputChannelCount Number of output channels supported by audio hardware in use.
	MaxOutputChannelCount float64 `json:"maxOutputChannelCount"`

	// SampleRate Context sample rate.
	SampleRate float64 `json:"sampleRate"`
}

WebAudioBaseAudioContext Protocol object for BaseAudioContext.

type WebAudioChannelCountMode

1
type WebAudioChannelCountMode string

WebAudioChannelCountMode Enum of AudioNode::ChannelCountMode from the spec.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// WebAudioChannelCountModeClampedMax enum const.
	WebAudioChannelCountModeClampedMax WebAudioChannelCountMode = "clamped-max"

	// WebAudioChannelCountModeExplicit enum const.
	WebAudioChannelCountModeExplicit WebAudioChannelCountMode = "explicit"

	// WebAudioChannelCountModeMax enum const.
	WebAudioChannelCountModeMax WebAudioChannelCountMode = "max"
)

type WebAudioChannelInterpretation

1
type WebAudioChannelInterpretation string

WebAudioChannelInterpretation Enum of AudioNode::ChannelInterpretation from the spec.

1
2
3
4
5
6
7
const (
	// WebAudioChannelInterpretationDiscrete enum const.
	WebAudioChannelInterpretationDiscrete WebAudioChannelInterpretation = "discrete"

	// WebAudioChannelInterpretationSpeakers enum const.
	WebAudioChannelInterpretationSpeakers WebAudioChannelInterpretation = "speakers"
)

type WebAudioContextChanged

1
2
3
4
type WebAudioContextChanged struct {
	// Context ...
	Context *WebAudioBaseAudioContext `json:"context"`
}

WebAudioContextChanged Notifies that existing BaseAudioContext has changed some properties (id stays the same)..

(WebAudioContextChanged) ProtoEvent <- 0.72.0

1
func (evt WebAudioContextChanged) ProtoEvent() string

ProtoEvent name.

type WebAudioContextCreated

1
2
3
4
type WebAudioContextCreated struct {
	// Context ...
	Context *WebAudioBaseAudioContext `json:"context"`
}

WebAudioContextCreated Notifies that a new BaseAudioContext has been created.

(WebAudioContextCreated) ProtoEvent <- 0.72.0

1
func (evt WebAudioContextCreated) ProtoEvent() string

ProtoEvent name.

type WebAudioContextRealtimeData

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
type WebAudioContextRealtimeData struct {
	// CurrentTime The current context time in second in BaseAudioContext.
	CurrentTime float64 `json:"currentTime"`

	// RenderCapacity The time spent on rendering graph divided by render quantum duration,
	// and multiplied by 100. 100 means the audio renderer reached the full
	// capacity and glitch may occur.
	RenderCapacity float64 `json:"renderCapacity"`

	// CallbackIntervalMean A running mean of callback interval.
	CallbackIntervalMean float64 `json:"callbackIntervalMean"`

	// CallbackIntervalVariance A running variance of callback interval.
	CallbackIntervalVariance float64 `json:"callbackIntervalVariance"`
}

WebAudioContextRealtimeData Fields in AudioContext that change in real-time.

type WebAudioContextState

1
type WebAudioContextState string

WebAudioContextState Enum of AudioContextState from the spec.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
const (
	// WebAudioContextStateSuspended enum const.
	WebAudioContextStateSuspended WebAudioContextState = "suspended"

	// WebAudioContextStateRunning enum const.
	WebAudioContextStateRunning WebAudioContextState = "running"

	// WebAudioContextStateClosed enum const.
	WebAudioContextStateClosed WebAudioContextState = "closed"
)

type WebAudioContextType

1
type WebAudioContextType string

WebAudioContextType Enum of BaseAudioContext types.

1
2
3
4
5
6
7
const (
	// WebAudioContextTypeRealtime enum const.
	WebAudioContextTypeRealtime WebAudioContextType = "realtime"

	// WebAudioContextTypeOffline enum const.
	WebAudioContextTypeOffline WebAudioContextType = "offline"
)

type WebAudioContextWillBeDestroyed

1
2
3
4
type WebAudioContextWillBeDestroyed struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`
}

WebAudioContextWillBeDestroyed Notifies that an existing BaseAudioContext will be destroyed.

(WebAudioContextWillBeDestroyed) ProtoEvent <- 0.72.0

1
func (evt WebAudioContextWillBeDestroyed) ProtoEvent() string

ProtoEvent name.

type WebAudioDisable

1
type WebAudioDisable struct{}

WebAudioDisable Disables the WebAudio domain.

(WebAudioDisable) Call

1
func (m WebAudioDisable) Call(c Client) error

Call sends the request.

(WebAudioDisable) ProtoReq <- 0.74.0

1
func (m WebAudioDisable) ProtoReq() string

ProtoReq name.

type WebAudioEnable

1
type WebAudioEnable struct{}

WebAudioEnable Enables the WebAudio domain and starts sending context lifetime events.

(WebAudioEnable) Call

1
func (m WebAudioEnable) Call(c Client) error

Call sends the request.

(WebAudioEnable) ProtoReq <- 0.74.0

1
func (m WebAudioEnable) ProtoReq() string

ProtoReq name.

type WebAudioGetRealtimeData

1
2
3
4
type WebAudioGetRealtimeData struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`
}

WebAudioGetRealtimeData Fetch the realtime data from the registered contexts.

(WebAudioGetRealtimeData) Call

1
func (m WebAudioGetRealtimeData) Call(c Client) (*WebAudioGetRealtimeDataResult, error)

Call the request.

(WebAudioGetRealtimeData) ProtoReq <- 0.74.0

1
func (m WebAudioGetRealtimeData) ProtoReq() string

ProtoReq name.

type WebAudioGetRealtimeDataResult

1
2
3
4
type WebAudioGetRealtimeDataResult struct {
	// RealtimeData ...
	RealtimeData *WebAudioContextRealtimeData `json:"realtimeData"`
}

WebAudioGetRealtimeDataResult …

type WebAudioGraphObjectID

1
type WebAudioGraphObjectID string

WebAudioGraphObjectID An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API.

type WebAudioNodeParamConnected

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type WebAudioNodeParamConnected struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// SourceID ...
	SourceID WebAudioGraphObjectID `json:"sourceId"`

	// DestinationID ...
	DestinationID WebAudioGraphObjectID `json:"destinationId"`

	// SourceOutputIndex (optional) ...
	SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"`
}

WebAudioNodeParamConnected Notifies that an AudioNode is connected to an AudioParam.

(WebAudioNodeParamConnected) ProtoEvent <- 0.72.0

1
func (evt WebAudioNodeParamConnected) ProtoEvent() string

ProtoEvent name.

type WebAudioNodeParamDisconnected

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type WebAudioNodeParamDisconnected struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// SourceID ...
	SourceID WebAudioGraphObjectID `json:"sourceId"`

	// DestinationID ...
	DestinationID WebAudioGraphObjectID `json:"destinationId"`

	// SourceOutputIndex (optional) ...
	SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"`
}

WebAudioNodeParamDisconnected Notifies that an AudioNode is disconnected to an AudioParam.

(WebAudioNodeParamDisconnected) ProtoEvent <- 0.72.0

1
func (evt WebAudioNodeParamDisconnected) ProtoEvent() string

ProtoEvent name.

type WebAudioNodeType

1
type WebAudioNodeType string

WebAudioNodeType Enum of AudioNode types.

type WebAudioNodesConnected

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type WebAudioNodesConnected struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// SourceID ...
	SourceID WebAudioGraphObjectID `json:"sourceId"`

	// DestinationID ...
	DestinationID WebAudioGraphObjectID `json:"destinationId"`

	// SourceOutputIndex (optional) ...
	SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"`

	// DestinationInputIndex (optional) ...
	DestinationInputIndex *float64 `json:"destinationInputIndex,omitempty"`
}

WebAudioNodesConnected Notifies that two AudioNodes are connected.

(WebAudioNodesConnected) ProtoEvent <- 0.72.0

1
func (evt WebAudioNodesConnected) ProtoEvent() string

ProtoEvent name.

type WebAudioNodesDisconnected

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type WebAudioNodesDisconnected struct {
	// ContextID ...
	ContextID WebAudioGraphObjectID `json:"contextId"`

	// SourceID ...
	SourceID WebAudioGraphObjectID `json:"sourceId"`

	// DestinationID ...
	DestinationID WebAudioGraphObjectID `json:"destinationId"`

	// SourceOutputIndex (optional) ...
	SourceOutputIndex *float64 `json:"sourceOutputIndex,omitempty"`

	// DestinationInputIndex (optional) ...
	DestinationInputIndex *float64 `json:"destinationInputIndex,omitempty"`
}

WebAudioNodesDisconnected Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.

(WebAudioNodesDisconnected) ProtoEvent <- 0.72.0

1
func (evt WebAudioNodesDisconnected) ProtoEvent() string

ProtoEvent name.

type WebAudioParamType

1
type WebAudioParamType string

WebAudioParamType Enum of AudioParam types.

type WebAuthnAddCredential

1
2
3
4
5
6
7
type WebAuthnAddCredential struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// Credential ...
	Credential *WebAuthnCredential `json:"credential"`
}

WebAuthnAddCredential Adds the credential to the specified authenticator.

(WebAuthnAddCredential) Call

1
func (m WebAuthnAddCredential) Call(c Client) error

Call sends the request.

(WebAuthnAddCredential) ProtoReq <- 0.74.0

1
func (m WebAuthnAddCredential) ProtoReq() string

ProtoReq name.

type WebAuthnAddVirtualAuthenticator

1
2
3
4
type WebAuthnAddVirtualAuthenticator struct {
	// Options ...
	Options *WebAuthnVirtualAuthenticatorOptions `json:"options"`
}

WebAuthnAddVirtualAuthenticator Creates and adds a virtual authenticator.

(WebAuthnAddVirtualAuthenticator) Call

1
func (m WebAuthnAddVirtualAuthenticator) Call(c Client) (*WebAuthnAddVirtualAuthenticatorResult, error)

Call the request.

(WebAuthnAddVirtualAuthenticator) ProtoReq <- 0.74.0

1
func (m WebAuthnAddVirtualAuthenticator) ProtoReq() string

ProtoReq name.

type WebAuthnAddVirtualAuthenticatorResult

1
2
3
4
type WebAuthnAddVirtualAuthenticatorResult struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`
}

WebAuthnAddVirtualAuthenticatorResult …

type WebAuthnAuthenticatorID

1
type WebAuthnAuthenticatorID string

WebAuthnAuthenticatorID …

type WebAuthnAuthenticatorProtocol

1
type WebAuthnAuthenticatorProtocol string

WebAuthnAuthenticatorProtocol …

1
2
3
4
5
6
7
const (
	// WebAuthnAuthenticatorProtocolU2f enum const.
	WebAuthnAuthenticatorProtocolU2f WebAuthnAuthenticatorProtocol = "u2f"

	// WebAuthnAuthenticatorProtocolCtap2 enum const.
	WebAuthnAuthenticatorProtocolCtap2 WebAuthnAuthenticatorProtocol = "ctap2"
)

type WebAuthnAuthenticatorTransport

1
type WebAuthnAuthenticatorTransport string

WebAuthnAuthenticatorTransport …

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
const (
	// WebAuthnAuthenticatorTransportUsb enum const.
	WebAuthnAuthenticatorTransportUsb WebAuthnAuthenticatorTransport = "usb"

	// WebAuthnAuthenticatorTransportNfc enum const.
	WebAuthnAuthenticatorTransportNfc WebAuthnAuthenticatorTransport = "nfc"

	// WebAuthnAuthenticatorTransportBle enum const.
	WebAuthnAuthenticatorTransportBle WebAuthnAuthenticatorTransport = "ble"

	// WebAuthnAuthenticatorTransportCable enum const.
	WebAuthnAuthenticatorTransportCable WebAuthnAuthenticatorTransport = "cable"

	// WebAuthnAuthenticatorTransportInternal enum const.
	WebAuthnAuthenticatorTransportInternal WebAuthnAuthenticatorTransport = "internal"
)

type WebAuthnClearCredentials

1
2
3
4
type WebAuthnClearCredentials struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`
}

WebAuthnClearCredentials Clears all the credentials from the specified device.

(WebAuthnClearCredentials) Call

1
func (m WebAuthnClearCredentials) Call(c Client) error

Call sends the request.

(WebAuthnClearCredentials) ProtoReq <- 0.74.0

1
func (m WebAuthnClearCredentials) ProtoReq() string

ProtoReq name.

type WebAuthnCredential

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
type WebAuthnCredential struct {
	// CredentialID ...
	CredentialID []byte `json:"credentialId"`

	// IsResidentCredential ...
	IsResidentCredential bool `json:"isResidentCredential"`

	// RpID (optional) Relying Party ID the credential is scoped to. Must be set when adding a
	// credential.
	RpID string `json:"rpId,omitempty"`

	// PrivateKey The ECDSA P-256 private key in PKCS#8 format.
	PrivateKey []byte `json:"privateKey"`

	// UserHandle (optional) An opaque byte sequence with a maximum size of 64 bytes mapping the
	// credential to a specific user.
	UserHandle []byte `json:"userHandle,omitempty"`

	// SignCount Signature counter. This is incremented by one for each successful
	// assertion.
	// See https://w3c.github.io/webauthn/#signature-counter
	SignCount int `json:"signCount"`

	// LargeBlob (optional) The large blob associated with the credential.
	// See https://w3c.github.io/webauthn/#sctn-large-blob-extension
	LargeBlob []byte `json:"largeBlob,omitempty"`

	// BackupEligibility (optional) Assertions returned by this credential will have the backup eligibility
	// (BE) flag set to this value. Defaults to the authenticator's
	// defaultBackupEligibility value.
	BackupEligibility bool `json:"backupEligibility,omitempty"`

	// BackupState (optional) Assertions returned by this credential will have the backup state (BS)
	// flag set to this value. Defaults to the authenticator's
	// defaultBackupState value.
	BackupState bool `json:"backupState,omitempty"`
}

WebAuthnCredential …

type WebAuthnCredentialAdded <- 0.112.3

1
2
3
4
5
6
7
type WebAuthnCredentialAdded struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// Credential ...
	Credential *WebAuthnCredential `json:"credential"`
}

WebAuthnCredentialAdded Triggered when a credential is added to an authenticator.

(WebAuthnCredentialAdded) ProtoEvent <- 0.112.3

1
func (evt WebAuthnCredentialAdded) ProtoEvent() string

ProtoEvent name.

type WebAuthnCredentialAsserted <- 0.112.3

1
2
3
4
5
6
7
type WebAuthnCredentialAsserted struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// Credential ...
	Credential *WebAuthnCredential `json:"credential"`
}

WebAuthnCredentialAsserted Triggered when a credential is used in a webauthn assertion.

(WebAuthnCredentialAsserted) ProtoEvent <- 0.112.3

1
func (evt WebAuthnCredentialAsserted) ProtoEvent() string

ProtoEvent name.

type WebAuthnCtap2Version <- 0.90.0

1
type WebAuthnCtap2Version string

WebAuthnCtap2Version …

1
2
3
4
5
6
7
const (
	// WebAuthnCtap2VersionCtap20 enum const.
	WebAuthnCtap2VersionCtap20 WebAuthnCtap2Version = "ctap2_0"

	// WebAuthnCtap2VersionCtap21 enum const.
	WebAuthnCtap2VersionCtap21 WebAuthnCtap2Version = "ctap2_1"
)

type WebAuthnDisable

1
type WebAuthnDisable struct{}

WebAuthnDisable Disable the WebAuthn domain.

(WebAuthnDisable) Call

1
func (m WebAuthnDisable) Call(c Client) error

Call sends the request.

(WebAuthnDisable) ProtoReq <- 0.74.0

1
func (m WebAuthnDisable) ProtoReq() string

ProtoReq name.

type WebAuthnEnable

1
2
3
4
5
6
7
8
type WebAuthnEnable struct {
	// EnableUI (optional) Whether to enable the WebAuthn user interface. Enabling the UI is
	// recommended for debugging and demo purposes, as it is closer to the real
	// experience. Disabling the UI is recommended for automated testing.
	// Supported at the embedder's discretion if UI is available.
	// Defaults to false.
	EnableUI bool `json:"enableUI,omitempty"`
}

WebAuthnEnable Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.

(WebAuthnEnable) Call

1
func (m WebAuthnEnable) Call(c Client) error

Call sends the request.

(WebAuthnEnable) ProtoReq <- 0.74.0

1
func (m WebAuthnEnable) ProtoReq() string

ProtoReq name.

type WebAuthnGetCredential

1
2
3
4
5
6
7
type WebAuthnGetCredential struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// CredentialID ...
	CredentialID []byte `json:"credentialId"`
}

WebAuthnGetCredential Returns a single credential stored in the given virtual authenticator that matches the credential ID.

(WebAuthnGetCredential) Call

1
func (m WebAuthnGetCredential) Call(c Client) (*WebAuthnGetCredentialResult, error)

Call the request.

(WebAuthnGetCredential) ProtoReq <- 0.74.0

1
func (m WebAuthnGetCredential) ProtoReq() string

ProtoReq name.

type WebAuthnGetCredentialResult

1
2
3
4
type WebAuthnGetCredentialResult struct {
	// Credential ...
	Credential *WebAuthnCredential `json:"credential"`
}

WebAuthnGetCredentialResult …

type WebAuthnGetCredentials

1
2
3
4
type WebAuthnGetCredentials struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`
}

WebAuthnGetCredentials Returns all the credentials stored in the given virtual authenticator.

(WebAuthnGetCredentials) Call

1
func (m WebAuthnGetCredentials) Call(c Client) (*WebAuthnGetCredentialsResult, error)

Call the request.

(WebAuthnGetCredentials) ProtoReq <- 0.74.0

1
func (m WebAuthnGetCredentials) ProtoReq() string

ProtoReq name.

type WebAuthnGetCredentialsResult

1
2
3
4
type WebAuthnGetCredentialsResult struct {
	// Credentials ...
	Credentials []*WebAuthnCredential `json:"credentials"`
}

WebAuthnGetCredentialsResult …

type WebAuthnRemoveCredential

1
2
3
4
5
6
7
type WebAuthnRemoveCredential struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// CredentialID ...
	CredentialID []byte `json:"credentialId"`
}

WebAuthnRemoveCredential Removes a credential from the authenticator.

(WebAuthnRemoveCredential) Call

1
func (m WebAuthnRemoveCredential) Call(c Client) error

Call sends the request.

(WebAuthnRemoveCredential) ProtoReq <- 0.74.0

1
func (m WebAuthnRemoveCredential) ProtoReq() string

ProtoReq name.

type WebAuthnRemoveVirtualAuthenticator

1
2
3
4
type WebAuthnRemoveVirtualAuthenticator struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`
}

WebAuthnRemoveVirtualAuthenticator Removes the given authenticator.

(WebAuthnRemoveVirtualAuthenticator) Call

1
func (m WebAuthnRemoveVirtualAuthenticator) Call(c Client) error

Call sends the request.

(WebAuthnRemoveVirtualAuthenticator) ProtoReq <- 0.74.0

1
func (m WebAuthnRemoveVirtualAuthenticator) ProtoReq() string

ProtoReq name.

type WebAuthnSetAutomaticPresenceSimulation <- 0.72.0

1
2
3
4
5
6
7
type WebAuthnSetAutomaticPresenceSimulation struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// Enabled ...
	Enabled bool `json:"enabled"`
}

WebAuthnSetAutomaticPresenceSimulation Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.

(WebAuthnSetAutomaticPresenceSimulation) Call <- 0.72.0

1
func (m WebAuthnSetAutomaticPresenceSimulation) Call(c Client) error

Call sends the request.

(WebAuthnSetAutomaticPresenceSimulation) ProtoReq <- 0.74.0

1
func (m WebAuthnSetAutomaticPresenceSimulation) ProtoReq() string

ProtoReq name.

type WebAuthnSetCredentialProperties <- 0.115.0

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
type WebAuthnSetCredentialProperties struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// CredentialID ...
	CredentialID []byte `json:"credentialId"`

	// BackupEligibility (optional) ...
	BackupEligibility bool `json:"backupEligibility,omitempty"`

	// BackupState (optional) ...
	BackupState bool `json:"backupState,omitempty"`
}

WebAuthnSetCredentialProperties Allows setting credential properties. https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties

(WebAuthnSetCredentialProperties) Call <- 0.115.0

1
func (m WebAuthnSetCredentialProperties) Call(c Client) error

Call sends the request.

(WebAuthnSetCredentialProperties) ProtoReq <- 0.115.0

1
func (m WebAuthnSetCredentialProperties) ProtoReq() string

ProtoReq name.

type WebAuthnSetResponseOverrideBits <- 0.112.3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
type WebAuthnSetResponseOverrideBits struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// IsBogusSignature (optional) If isBogusSignature is set, overrides the signature in the authenticator response to be zero.
	// Defaults to false.
	IsBogusSignature bool `json:"isBogusSignature,omitempty"`

	// IsBadUV (optional) If isBadUV is set, overrides the UV bit in the flags in the authenticator response to
	// be zero. Defaults to false.
	IsBadUV bool `json:"isBadUV,omitempty"`

	// IsBadUP (optional) If isBadUP is set, overrides the UP bit in the flags in the authenticator response to
	// be zero. Defaults to false.
	IsBadUP bool `json:"isBadUP,omitempty"`
}

WebAuthnSetResponseOverrideBits Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.

(WebAuthnSetResponseOverrideBits) Call <- 0.112.3

1
func (m WebAuthnSetResponseOverrideBits) Call(c Client) error

Call sends the request.

(WebAuthnSetResponseOverrideBits) ProtoReq <- 0.112.3

1
func (m WebAuthnSetResponseOverrideBits) ProtoReq() string

ProtoReq name.

type WebAuthnSetUserVerified

1
2
3
4
5
6
7
type WebAuthnSetUserVerified struct {
	// AuthenticatorID ...
	AuthenticatorID WebAuthnAuthenticatorID `json:"authenticatorId"`

	// IsUserVerified ...
	IsUserVerified bool `json:"isUserVerified"`
}

WebAuthnSetUserVerified Sets whether User Verification succeeds or fails for an authenticator. The default is true.

(WebAuthnSetUserVerified) Call

1
func (m WebAuthnSetUserVerified) Call(c Client) error

Call sends the request.

(WebAuthnSetUserVerified) ProtoReq <- 0.74.0

1
func (m WebAuthnSetUserVerified) ProtoReq() string

ProtoReq name.

type WebAuthnVirtualAuthenticatorOptions

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
type WebAuthnVirtualAuthenticatorOptions struct {
	// Protocol ...
	Protocol WebAuthnAuthenticatorProtocol `json:"protocol"`

	// Ctap2Version (optional) Defaults to ctap2_0. Ignored if |protocol| == u2f.
	Ctap2Version WebAuthnCtap2Version `json:"ctap2Version,omitempty"`

	// Transport ...
	Transport WebAuthnAuthenticatorTransport `json:"transport"`

	// HasResidentKey (optional) Defaults to false.
	HasResidentKey bool `json:"hasResidentKey,omitempty"`

	// HasUserVerification (optional) Defaults to false.
	HasUserVerification bool `json:"hasUserVerification,omitempty"`

	// HasLargeBlob (optional) If set to true, the authenticator will support the largeBlob extension.
	// https://w3c.github.io/webauthn#largeBlob
	// Defaults to false.
	HasLargeBlob bool `json:"hasLargeBlob,omitempty"`

	// HasCredBlob (optional) If set to true, the authenticator will support the credBlob extension.
	// https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension
	// Defaults to false.
	HasCredBlob bool `json:"hasCredBlob,omitempty"`

	// HasMinPinLength (optional) If set to true, the authenticator will support the minPinLength extension.
	// https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension
	// Defaults to false.
	HasMinPinLength bool `json:"hasMinPinLength,omitempty"`

	// HasPrf (optional) If set to true, the authenticator will support the prf extension.
	// https://w3c.github.io/webauthn/#prf-extension
	// Defaults to false.
	HasPrf bool `json:"hasPrf,omitempty"`

	// AutomaticPresenceSimulation (optional) If set to true, tests of user presence will succeed immediately.
	// Otherwise, they will not be resolved. Defaults to true.
	AutomaticPresenceSimulation bool `json:"automaticPresenceSimulation,omitempty"`

	// IsUserVerified (optional) Sets whether User Verification succeeds or fails for an authenticator.
	// Defaults to false.
	IsUserVerified bool `json:"isUserVerified,omitempty"`

	// DefaultBackupEligibility (optional) Credentials created by this authenticator will have the backup
	// eligibility (BE) flag set to this value. Defaults to false.
	// https://w3c.github.io/webauthn/#sctn-credential-backup
	DefaultBackupEligibility bool `json:"defaultBackupEligibility,omitempty"`

	// DefaultBackupState (optional) Credentials created by this authenticator will have the backup state
	// (BS) flag set to this value. Defaults to false.
	// https://w3c.github.io/webauthn/#sctn-credential-backup
	DefaultBackupState bool `json:"defaultBackupState,omitempty"`
}

WebAuthnVirtualAuthenticatorOptions …

最后修改 November 21, 2024: 更新 (98fed08)