parsek-cdp 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- parsek_cdp/__init__.py +55 -0
- parsek_cdp/_logging.py +49 -0
- parsek_cdp/cdp/__init__.py +247 -0
- parsek_cdp/cdp/accessibility/__init__.py +15 -0
- parsek_cdp/cdp/accessibility/events.py +35 -0
- parsek_cdp/cdp/accessibility/functions.py +202 -0
- parsek_cdp/cdp/accessibility/types.py +235 -0
- parsek_cdp/cdp/animation/__init__.py +15 -0
- parsek_cdp/cdp/animation/events.py +52 -0
- parsek_cdp/cdp/animation/functions.py +140 -0
- parsek_cdp/cdp/animation/types.py +113 -0
- parsek_cdp/cdp/audits/__init__.py +15 -0
- parsek_cdp/cdp/audits/events.py +21 -0
- parsek_cdp/cdp/audits/functions.py +95 -0
- parsek_cdp/cdp/audits/types.py +1051 -0
- parsek_cdp/cdp/autofill/__init__.py +15 -0
- parsek_cdp/cdp/autofill/events.py +27 -0
- parsek_cdp/cdp/autofill/functions.py +64 -0
- parsek_cdp/cdp/autofill/types.py +108 -0
- parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
- parsek_cdp/cdp/backgroundservice/events.py +40 -0
- parsek_cdp/cdp/backgroundservice/functions.py +59 -0
- parsek_cdp/cdp/backgroundservice/types.py +63 -0
- parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
- parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
- parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
- parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
- parsek_cdp/cdp/browser/__init__.py +15 -0
- parsek_cdp/cdp/browser/events.py +46 -0
- parsek_cdp/cdp/browser/functions.py +350 -0
- parsek_cdp/cdp/browser/types.py +158 -0
- parsek_cdp/cdp/cachestorage/__init__.py +15 -0
- parsek_cdp/cdp/cachestorage/events.py +13 -0
- parsek_cdp/cdp/cachestorage/functions.py +126 -0
- parsek_cdp/cdp/cachestorage/types.py +89 -0
- parsek_cdp/cdp/cast/__init__.py +15 -0
- parsek_cdp/cdp/cast/events.py +38 -0
- parsek_cdp/cdp/cast/functions.py +77 -0
- parsek_cdp/cdp/cast/types.py +23 -0
- parsek_cdp/cdp/console/__init__.py +15 -0
- parsek_cdp/cdp/console/events.py +22 -0
- parsek_cdp/cdp/console/functions.py +36 -0
- parsek_cdp/cdp/console/types.py +30 -0
- parsek_cdp/cdp/css/__init__.py +15 -0
- parsek_cdp/cdp/css/events.py +79 -0
- parsek_cdp/cdp/css/functions.py +788 -0
- parsek_cdp/cdp/css/types.py +742 -0
- parsek_cdp/cdp/debugger/__init__.py +15 -0
- parsek_cdp/cdp/debugger/events.py +164 -0
- parsek_cdp/cdp/debugger/functions.py +663 -0
- parsek_cdp/cdp/debugger/types.py +171 -0
- parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
- parsek_cdp/cdp/deviceaccess/events.py +30 -0
- parsek_cdp/cdp/deviceaccess/functions.py +54 -0
- parsek_cdp/cdp/deviceaccess/types.py +28 -0
- parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
- parsek_cdp/cdp/deviceorientation/events.py +13 -0
- parsek_cdp/cdp/deviceorientation/functions.py +35 -0
- parsek_cdp/cdp/deviceorientation/types.py +10 -0
- parsek_cdp/cdp/dom/__init__.py +15 -0
- parsek_cdp/cdp/dom/events.py +228 -0
- parsek_cdp/cdp/dom/functions.py +1033 -0
- parsek_cdp/cdp/dom/types.py +293 -0
- parsek_cdp/cdp/domdebugger/__init__.py +15 -0
- parsek_cdp/cdp/domdebugger/events.py +13 -0
- parsek_cdp/cdp/domdebugger/functions.py +155 -0
- parsek_cdp/cdp/domdebugger/types.py +57 -0
- parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
- parsek_cdp/cdp/domsnapshot/events.py +13 -0
- parsek_cdp/cdp/domsnapshot/functions.py +111 -0
- parsek_cdp/cdp/domsnapshot/types.py +312 -0
- parsek_cdp/cdp/domstorage/__init__.py +15 -0
- parsek_cdp/cdp/domstorage/events.py +60 -0
- parsek_cdp/cdp/domstorage/functions.py +79 -0
- parsek_cdp/cdp/domstorage/types.py +30 -0
- parsek_cdp/cdp/emulation/__init__.py +15 -0
- parsek_cdp/cdp/emulation/events.py +17 -0
- parsek_cdp/cdp/emulation/functions.py +688 -0
- parsek_cdp/cdp/emulation/types.py +305 -0
- parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
- parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
- parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
- parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
- parsek_cdp/cdp/extensions/__init__.py +15 -0
- parsek_cdp/cdp/extensions/events.py +13 -0
- parsek_cdp/cdp/extensions/functions.py +118 -0
- parsek_cdp/cdp/extensions/types.py +19 -0
- parsek_cdp/cdp/fedcm/__init__.py +15 -0
- parsek_cdp/cdp/fedcm/events.py +45 -0
- parsek_cdp/cdp/fedcm/functions.py +93 -0
- parsek_cdp/cdp/fedcm/types.py +72 -0
- parsek_cdp/cdp/fetch/__init__.py +15 -0
- parsek_cdp/cdp/fetch/events.py +82 -0
- parsek_cdp/cdp/fetch/functions.py +215 -0
- parsek_cdp/cdp/fetch/types.py +81 -0
- parsek_cdp/cdp/filesystem/__init__.py +15 -0
- parsek_cdp/cdp/filesystem/events.py +13 -0
- parsek_cdp/cdp/filesystem/functions.py +36 -0
- parsek_cdp/cdp/filesystem/types.py +54 -0
- parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
- parsek_cdp/cdp/headlessexperimental/events.py +13 -0
- parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
- parsek_cdp/cdp/headlessexperimental/types.py +24 -0
- parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
- parsek_cdp/cdp/heapprofiler/events.py +65 -0
- parsek_cdp/cdp/heapprofiler/functions.py +193 -0
- parsek_cdp/cdp/heapprofiler/types.py +57 -0
- parsek_cdp/cdp/indexeddb/__init__.py +15 -0
- parsek_cdp/cdp/indexeddb/events.py +13 -0
- parsek_cdp/cdp/indexeddb/functions.py +232 -0
- parsek_cdp/cdp/indexeddb/types.py +120 -0
- parsek_cdp/cdp/input/__init__.py +15 -0
- parsek_cdp/cdp/input/events.py +25 -0
- parsek_cdp/cdp/input/functions.py +361 -0
- parsek_cdp/cdp/input/types.py +87 -0
- parsek_cdp/cdp/inspector/__init__.py +15 -0
- parsek_cdp/cdp/inspector/events.py +41 -0
- parsek_cdp/cdp/inspector/functions.py +27 -0
- parsek_cdp/cdp/inspector/types.py +10 -0
- parsek_cdp/cdp/io/__init__.py +15 -0
- parsek_cdp/cdp/io/events.py +13 -0
- parsek_cdp/cdp/io/functions.py +77 -0
- parsek_cdp/cdp/io/types.py +13 -0
- parsek_cdp/cdp/layertree/__init__.py +15 -0
- parsek_cdp/cdp/layertree/events.py +36 -0
- parsek_cdp/cdp/layertree/functions.py +178 -0
- parsek_cdp/cdp/layertree/types.py +104 -0
- parsek_cdp/cdp/log/__init__.py +15 -0
- parsek_cdp/cdp/log/events.py +22 -0
- parsek_cdp/cdp/log/functions.py +54 -0
- parsek_cdp/cdp/log/types.py +57 -0
- parsek_cdp/cdp/media/__init__.py +15 -0
- parsek_cdp/cdp/media/events.py +87 -0
- parsek_cdp/cdp/media/functions.py +27 -0
- parsek_cdp/cdp/media/types.py +101 -0
- parsek_cdp/cdp/memory/__init__.py +15 -0
- parsek_cdp/cdp/memory/events.py +13 -0
- parsek_cdp/cdp/memory/functions.py +164 -0
- parsek_cdp/cdp/memory/types.py +71 -0
- parsek_cdp/cdp/mixins/__init__.py +21 -0
- parsek_cdp/cdp/mixins/datatype.py +123 -0
- parsek_cdp/cdp/mixins/event.py +78 -0
- parsek_cdp/cdp/mixins/namespace.py +31 -0
- parsek_cdp/cdp/network/__init__.py +15 -0
- parsek_cdp/cdp/network/events.py +726 -0
- parsek_cdp/cdp/network/functions.py +734 -0
- parsek_cdp/cdp/network/types.py +1247 -0
- parsek_cdp/cdp/overlay/__init__.py +15 -0
- parsek_cdp/cdp/overlay/events.py +54 -0
- parsek_cdp/cdp/overlay/functions.py +407 -0
- parsek_cdp/cdp/overlay/types.py +328 -0
- parsek_cdp/cdp/page/__init__.py +15 -0
- parsek_cdp/cdp/page/events.py +416 -0
- parsek_cdp/cdp/page/functions.py +1081 -0
- parsek_cdp/cdp/page/types.py +1088 -0
- parsek_cdp/cdp/performance/__init__.py +15 -0
- parsek_cdp/cdp/performance/events.py +24 -0
- parsek_cdp/cdp/performance/functions.py +63 -0
- parsek_cdp/cdp/performance/types.py +22 -0
- parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
- parsek_cdp/cdp/performancetimeline/events.py +22 -0
- parsek_cdp/cdp/performancetimeline/functions.py +30 -0
- parsek_cdp/cdp/performancetimeline/types.py +85 -0
- parsek_cdp/cdp/preload/__init__.py +15 -0
- parsek_cdp/cdp/preload/events.py +116 -0
- parsek_cdp/cdp/preload/functions.py +25 -0
- parsek_cdp/cdp/preload/types.py +267 -0
- parsek_cdp/cdp/profiler/__init__.py +15 -0
- parsek_cdp/cdp/profiler/events.py +64 -0
- parsek_cdp/cdp/profiler/functions.py +134 -0
- parsek_cdp/cdp/profiler/types.py +105 -0
- parsek_cdp/cdp/pwa/__init__.py +15 -0
- parsek_cdp/cdp/pwa/events.py +13 -0
- parsek_cdp/cdp/pwa/functions.py +196 -0
- parsek_cdp/cdp/pwa/types.py +45 -0
- parsek_cdp/cdp/runtime/__init__.py +15 -0
- parsek_cdp/cdp/runtime/events.py +123 -0
- parsek_cdp/cdp/runtime/functions.py +552 -0
- parsek_cdp/cdp/runtime/types.py +319 -0
- parsek_cdp/cdp/schema/__init__.py +15 -0
- parsek_cdp/cdp/schema/events.py +13 -0
- parsek_cdp/cdp/schema/functions.py +32 -0
- parsek_cdp/cdp/schema/types.py +22 -0
- parsek_cdp/cdp/security/__init__.py +15 -0
- parsek_cdp/cdp/security/events.py +64 -0
- parsek_cdp/cdp/security/functions.py +66 -0
- parsek_cdp/cdp/security/types.py +168 -0
- parsek_cdp/cdp/serviceworker/__init__.py +15 -0
- parsek_cdp/cdp/serviceworker/events.py +43 -0
- parsek_cdp/cdp/serviceworker/functions.py +115 -0
- parsek_cdp/cdp/serviceworker/types.py +95 -0
- parsek_cdp/cdp/storage/__init__.py +15 -0
- parsek_cdp/cdp/storage/events.py +288 -0
- parsek_cdp/cdp/storage/functions.py +571 -0
- parsek_cdp/cdp/storage/types.py +656 -0
- parsek_cdp/cdp/systeminfo/__init__.py +15 -0
- parsek_cdp/cdp/systeminfo/events.py +13 -0
- parsek_cdp/cdp/systeminfo/functions.py +75 -0
- parsek_cdp/cdp/systeminfo/types.py +132 -0
- parsek_cdp/cdp/target/__init__.py +15 -0
- parsek_cdp/cdp/target/events.py +109 -0
- parsek_cdp/cdp/target/functions.py +424 -0
- parsek_cdp/cdp/target/types.py +83 -0
- parsek_cdp/cdp/tethering/__init__.py +15 -0
- parsek_cdp/cdp/tethering/events.py +22 -0
- parsek_cdp/cdp/tethering/functions.py +35 -0
- parsek_cdp/cdp/tethering/types.py +10 -0
- parsek_cdp/cdp/tracing/__init__.py +15 -0
- parsek_cdp/cdp/tracing/events.py +61 -0
- parsek_cdp/cdp/tracing/functions.py +119 -0
- parsek_cdp/cdp/tracing/types.py +81 -0
- parsek_cdp/cdp/webaudio/__init__.py +15 -0
- parsek_cdp/cdp/webaudio/events.py +184 -0
- parsek_cdp/cdp/webaudio/functions.py +51 -0
- parsek_cdp/cdp/webaudio/types.py +155 -0
- parsek_cdp/cdp/webauthn/__init__.py +15 -0
- parsek_cdp/cdp/webauthn/events.py +69 -0
- parsek_cdp/cdp/webauthn/functions.py +214 -0
- parsek_cdp/cdp/webauthn/types.py +96 -0
- parsek_cdp/core/__init__.py +18 -0
- parsek_cdp/core/browser.py +240 -0
- parsek_cdp/core/browser_context.py +58 -0
- parsek_cdp/core/element.py +405 -0
- parsek_cdp/core/feature.py +376 -0
- parsek_cdp/core/frame.py +351 -0
- parsek_cdp/core/pagable.py +175 -0
- parsek_cdp/core/page.py +163 -0
- parsek_cdp/core/target.py +490 -0
- parsek_cdp/features/__init__.py +14 -0
- parsek_cdp/features/request_listener/__init__.py +256 -0
- parsek_cdp/features/request_listener/events.py +48 -0
- parsek_cdp/features/request_listener/types.py +235 -0
- parsek_cdp/generate.py +642 -0
- parsek_cdp/parsek/__init__.py +18 -0
- parsek_cdp/parsek/events.py +38 -0
- parsek_cdp/parsek/types.py +36 -0
- parsek_cdp/py.typed +0 -0
- parsek_cdp-0.1.0.dist-info/METADATA +277 -0
- parsek_cdp-0.1.0.dist-info/RECORD +242 -0
- parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
- parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
- parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"""Custom types and enums for the Accessibility domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ..mixins.datatype import DataType, FieldMeta, register
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..dom.types import BackendNodeId as DOM_BackendNodeId
|
|
12
|
+
from ..page.types import FrameId as Page_FrameId
|
|
13
|
+
|
|
14
|
+
type AXNodeId = str # Unique accessibility node identifier.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@register("Accessibility.AXValueType")
|
|
18
|
+
class AXValueType(str, Enum):
|
|
19
|
+
"""Enum of possible property types."""
|
|
20
|
+
BOOLEAN = 'boolean'
|
|
21
|
+
TRISTATE = 'tristate'
|
|
22
|
+
BOOLEANORUNDEFINED = 'booleanOrUndefined'
|
|
23
|
+
IDREF = 'idref'
|
|
24
|
+
IDREFLIST = 'idrefList'
|
|
25
|
+
INTEGER = 'integer'
|
|
26
|
+
NODE = 'node'
|
|
27
|
+
NODELIST = 'nodeList'
|
|
28
|
+
NUMBER = 'number'
|
|
29
|
+
STRING = 'string'
|
|
30
|
+
COMPUTEDSTRING = 'computedString'
|
|
31
|
+
TOKEN = 'token'
|
|
32
|
+
TOKENLIST = 'tokenList'
|
|
33
|
+
DOMRELATION = 'domRelation'
|
|
34
|
+
ROLE = 'role'
|
|
35
|
+
INTERNALROLE = 'internalRole'
|
|
36
|
+
VALUEUNDEFINED = 'valueUndefined'
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@register("Accessibility.AXValueSourceType")
|
|
40
|
+
class AXValueSourceType(str, Enum):
|
|
41
|
+
"""Enum of possible property sources."""
|
|
42
|
+
ATTRIBUTE = 'attribute'
|
|
43
|
+
IMPLICIT = 'implicit'
|
|
44
|
+
STYLE = 'style'
|
|
45
|
+
CONTENTS = 'contents'
|
|
46
|
+
PLACEHOLDER = 'placeholder'
|
|
47
|
+
RELATEDELEMENT = 'relatedElement'
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@register("Accessibility.AXValueNativeSourceType")
|
|
51
|
+
class AXValueNativeSourceType(str, Enum):
|
|
52
|
+
"""Enum of possible native property sources (as a subtype of a particular AXValueSourceType)."""
|
|
53
|
+
DESCRIPTION = 'description'
|
|
54
|
+
FIGCAPTION = 'figcaption'
|
|
55
|
+
LABEL = 'label'
|
|
56
|
+
LABELFOR = 'labelfor'
|
|
57
|
+
LABELWRAPPED = 'labelwrapped'
|
|
58
|
+
LEGEND = 'legend'
|
|
59
|
+
RUBYANNOTATION = 'rubyannotation'
|
|
60
|
+
TABLECAPTION = 'tablecaption'
|
|
61
|
+
TITLE = 'title'
|
|
62
|
+
OTHER = 'other'
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@register("Accessibility.AXValueSource")
|
|
66
|
+
@dataclass
|
|
67
|
+
class AXValueSource(DataType):
|
|
68
|
+
"""A single source for a computed AX property."""
|
|
69
|
+
type_: AXValueSourceType
|
|
70
|
+
value: Optional[AXValue] = None
|
|
71
|
+
attribute: Optional[str] = None
|
|
72
|
+
attribute_value: Optional[AXValue] = None
|
|
73
|
+
superseded: Optional[bool] = None
|
|
74
|
+
native_source: Optional[AXValueNativeSourceType] = None
|
|
75
|
+
native_source_value: Optional[AXValue] = None
|
|
76
|
+
invalid: Optional[bool] = None
|
|
77
|
+
invalid_reason: Optional[str] = None
|
|
78
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
79
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Accessibility.AXValueSourceType'),
|
|
80
|
+
FieldMeta('value', 'value', True, 'object', ref='Accessibility.AXValue'),
|
|
81
|
+
FieldMeta('attribute', 'attribute', True, 'primitive'),
|
|
82
|
+
FieldMeta('attribute_value', 'attributeValue', True, 'object', ref='Accessibility.AXValue'),
|
|
83
|
+
FieldMeta('superseded', 'superseded', True, 'primitive'),
|
|
84
|
+
FieldMeta('native_source', 'nativeSource', True, 'enum', ref='Accessibility.AXValueNativeSourceType'),
|
|
85
|
+
FieldMeta('native_source_value', 'nativeSourceValue', True, 'object', ref='Accessibility.AXValue'),
|
|
86
|
+
FieldMeta('invalid', 'invalid', True, 'primitive'),
|
|
87
|
+
FieldMeta('invalid_reason', 'invalidReason', True, 'primitive'),
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@register("Accessibility.AXRelatedNode")
|
|
92
|
+
@dataclass
|
|
93
|
+
class AXRelatedNode(DataType):
|
|
94
|
+
backend_dom_node_id: DOM_BackendNodeId
|
|
95
|
+
idref: Optional[str] = None
|
|
96
|
+
text: Optional[str] = None
|
|
97
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
98
|
+
FieldMeta('backend_dom_node_id', 'backendDOMNodeId', False, 'primitive'),
|
|
99
|
+
FieldMeta('idref', 'idref', True, 'primitive'),
|
|
100
|
+
FieldMeta('text', 'text', True, 'primitive'),
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@register("Accessibility.AXProperty")
|
|
105
|
+
@dataclass
|
|
106
|
+
class AXProperty(DataType):
|
|
107
|
+
name: AXPropertyName
|
|
108
|
+
value: AXValue
|
|
109
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
110
|
+
FieldMeta('name', 'name', False, 'enum', ref='Accessibility.AXPropertyName'),
|
|
111
|
+
FieldMeta('value', 'value', False, 'object', ref='Accessibility.AXValue'),
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
@register("Accessibility.AXValue")
|
|
116
|
+
@dataclass
|
|
117
|
+
class AXValue(DataType):
|
|
118
|
+
"""A single computed AX property."""
|
|
119
|
+
type_: AXValueType
|
|
120
|
+
value: Optional[Any] = None
|
|
121
|
+
related_nodes: Optional[List[AXRelatedNode]] = None
|
|
122
|
+
sources: Optional[List[AXValueSource]] = None
|
|
123
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
124
|
+
FieldMeta('type_', 'type', False, 'enum', ref='Accessibility.AXValueType'),
|
|
125
|
+
FieldMeta('value', 'value', True, 'primitive'),
|
|
126
|
+
FieldMeta('related_nodes', 'relatedNodes', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Accessibility.AXRelatedNode')),
|
|
127
|
+
FieldMeta('sources', 'sources', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Accessibility.AXValueSource')),
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@register("Accessibility.AXPropertyName")
|
|
132
|
+
class AXPropertyName(str, Enum):
|
|
133
|
+
"""
|
|
134
|
+
Values of AXProperty name:
|
|
135
|
+
- from 'busy' to 'roledescription': states which apply to every AX node
|
|
136
|
+
- from 'live' to 'root': attributes which apply to nodes in live regions
|
|
137
|
+
- from 'autocomplete' to 'valuetext': attributes which apply to widgets
|
|
138
|
+
- from 'checked' to 'selected': states which apply to widgets
|
|
139
|
+
- from 'activedescendant' to 'owns': relationships between elements other than parent/child/sibling
|
|
140
|
+
- from 'activeFullscreenElement' to 'uninteresting': reasons why this noode is hidden
|
|
141
|
+
"""
|
|
142
|
+
ACTIONS = 'actions'
|
|
143
|
+
BUSY = 'busy'
|
|
144
|
+
DISABLED = 'disabled'
|
|
145
|
+
EDITABLE = 'editable'
|
|
146
|
+
FOCUSABLE = 'focusable'
|
|
147
|
+
FOCUSED = 'focused'
|
|
148
|
+
HIDDEN = 'hidden'
|
|
149
|
+
HIDDENROOT = 'hiddenRoot'
|
|
150
|
+
INVALID = 'invalid'
|
|
151
|
+
KEYSHORTCUTS = 'keyshortcuts'
|
|
152
|
+
SETTABLE = 'settable'
|
|
153
|
+
ROLEDESCRIPTION = 'roledescription'
|
|
154
|
+
LIVE = 'live'
|
|
155
|
+
ATOMIC = 'atomic'
|
|
156
|
+
RELEVANT = 'relevant'
|
|
157
|
+
ROOT = 'root'
|
|
158
|
+
AUTOCOMPLETE = 'autocomplete'
|
|
159
|
+
HASPOPUP = 'hasPopup'
|
|
160
|
+
LEVEL = 'level'
|
|
161
|
+
MULTISELECTABLE = 'multiselectable'
|
|
162
|
+
ORIENTATION = 'orientation'
|
|
163
|
+
MULTILINE = 'multiline'
|
|
164
|
+
READONLY = 'readonly'
|
|
165
|
+
REQUIRED = 'required'
|
|
166
|
+
VALUEMIN = 'valuemin'
|
|
167
|
+
VALUEMAX = 'valuemax'
|
|
168
|
+
VALUETEXT = 'valuetext'
|
|
169
|
+
CHECKED = 'checked'
|
|
170
|
+
EXPANDED = 'expanded'
|
|
171
|
+
MODAL = 'modal'
|
|
172
|
+
PRESSED = 'pressed'
|
|
173
|
+
SELECTED = 'selected'
|
|
174
|
+
ACTIVEDESCENDANT = 'activedescendant'
|
|
175
|
+
CONTROLS = 'controls'
|
|
176
|
+
DESCRIBEDBY = 'describedby'
|
|
177
|
+
DETAILS = 'details'
|
|
178
|
+
ERRORMESSAGE = 'errormessage'
|
|
179
|
+
FLOWTO = 'flowto'
|
|
180
|
+
LABELLEDBY = 'labelledby'
|
|
181
|
+
OWNS = 'owns'
|
|
182
|
+
URL = 'url'
|
|
183
|
+
ACTIVEFULLSCREENELEMENT = 'activeFullscreenElement'
|
|
184
|
+
ACTIVEMODALDIALOG = 'activeModalDialog'
|
|
185
|
+
ACTIVEARIAMODALDIALOG = 'activeAriaModalDialog'
|
|
186
|
+
ARIAHIDDENELEMENT = 'ariaHiddenElement'
|
|
187
|
+
ARIAHIDDENSUBTREE = 'ariaHiddenSubtree'
|
|
188
|
+
EMPTYALT = 'emptyAlt'
|
|
189
|
+
EMPTYTEXT = 'emptyText'
|
|
190
|
+
INERTELEMENT = 'inertElement'
|
|
191
|
+
INERTSUBTREE = 'inertSubtree'
|
|
192
|
+
LABELCONTAINER = 'labelContainer'
|
|
193
|
+
LABELFOR = 'labelFor'
|
|
194
|
+
NOTRENDERED = 'notRendered'
|
|
195
|
+
NOTVISIBLE = 'notVisible'
|
|
196
|
+
PRESENTATIONALROLE = 'presentationalRole'
|
|
197
|
+
PROBABLYPRESENTATIONAL = 'probablyPresentational'
|
|
198
|
+
INACTIVECAROUSELTABCONTENT = 'inactiveCarouselTabContent'
|
|
199
|
+
UNINTERESTING = 'uninteresting'
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
@register("Accessibility.AXNode")
|
|
203
|
+
@dataclass
|
|
204
|
+
class AXNode(DataType):
|
|
205
|
+
"""A node in the accessibility tree."""
|
|
206
|
+
node_id: AXNodeId
|
|
207
|
+
ignored: bool
|
|
208
|
+
ignored_reasons: Optional[List[AXProperty]] = None
|
|
209
|
+
role: Optional[AXValue] = None
|
|
210
|
+
chrome_role: Optional[AXValue] = None
|
|
211
|
+
name: Optional[AXValue] = None
|
|
212
|
+
description: Optional[AXValue] = None
|
|
213
|
+
value: Optional[AXValue] = None
|
|
214
|
+
properties: Optional[List[AXProperty]] = None
|
|
215
|
+
parent_id: Optional[AXNodeId] = None
|
|
216
|
+
child_ids: Optional[List[AXNodeId]] = None
|
|
217
|
+
backend_dom_node_id: Optional[DOM_BackendNodeId] = None
|
|
218
|
+
frame_id: Optional[Page_FrameId] = None
|
|
219
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
220
|
+
FieldMeta('node_id', 'nodeId', False, 'primitive'),
|
|
221
|
+
FieldMeta('ignored', 'ignored', False, 'primitive'),
|
|
222
|
+
FieldMeta('ignored_reasons', 'ignoredReasons', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Accessibility.AXProperty')),
|
|
223
|
+
FieldMeta('role', 'role', True, 'object', ref='Accessibility.AXValue'),
|
|
224
|
+
FieldMeta('chrome_role', 'chromeRole', True, 'object', ref='Accessibility.AXValue'),
|
|
225
|
+
FieldMeta('name', 'name', True, 'object', ref='Accessibility.AXValue'),
|
|
226
|
+
FieldMeta('description', 'description', True, 'object', ref='Accessibility.AXValue'),
|
|
227
|
+
FieldMeta('value', 'value', True, 'object', ref='Accessibility.AXValue'),
|
|
228
|
+
FieldMeta('properties', 'properties', True, 'array', inner=FieldMeta('', '', False, 'object', ref='Accessibility.AXProperty')),
|
|
229
|
+
FieldMeta('parent_id', 'parentId', True, 'primitive'),
|
|
230
|
+
FieldMeta('child_ids', 'childIds', True, 'array', inner=FieldMeta('', '', False, 'primitive')),
|
|
231
|
+
FieldMeta('backend_dom_node_id', 'backendDOMNodeId', True, 'primitive'),
|
|
232
|
+
FieldMeta('frame_id', 'frameId', True, 'primitive'),
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
__all__ = ["AXNode", "AXNodeId", "AXProperty", "AXPropertyName", "AXRelatedNode", "AXValue", "AXValueNativeSourceType", "AXValueSource", "AXValueSourceType", "AXValueType"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""The Animation CDP domain (generated).
|
|
2
|
+
|
|
3
|
+
Importing ``Animation`` from ``parsek_cdp.cdp`` gives a namespace with this
|
|
4
|
+
domain's events and types as attributes (``Animation.SomeEvent`` /
|
|
5
|
+
``Animation.SomeType``); commands run on a target via ``page.cdp.Animation``.
|
|
6
|
+
"""
|
|
7
|
+
from . import events, functions, types
|
|
8
|
+
from .functions import Animation
|
|
9
|
+
from .events import * # noqa: F401,F403 -- expose events on the namespace
|
|
10
|
+
from .types import * # noqa: F401,F403 -- expose types on the namespace
|
|
11
|
+
|
|
12
|
+
#: Protocol domain name (used by features that declare ``domains=(Animation,)``).
|
|
13
|
+
DOMAIN = "Animation"
|
|
14
|
+
|
|
15
|
+
__all__ = ["events", "functions", "types", "Animation", "DOMAIN"]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Events for the Animation domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
6
|
+
|
|
7
|
+
from ..mixins.datatype import FieldMeta
|
|
8
|
+
from ..mixins.event import Event, register_event
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from .types import Animation
|
|
12
|
+
|
|
13
|
+
@register_event("Animation.animationCanceled")
|
|
14
|
+
@dataclass
|
|
15
|
+
class AnimationCanceled(Event):
|
|
16
|
+
"""Event for when an animation has been cancelled."""
|
|
17
|
+
id: str
|
|
18
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
19
|
+
FieldMeta('id', 'id', False, 'primitive'),
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@register_event("Animation.animationCreated")
|
|
24
|
+
@dataclass
|
|
25
|
+
class AnimationCreated(Event):
|
|
26
|
+
"""Event for each animation that has been created."""
|
|
27
|
+
id: str
|
|
28
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
29
|
+
FieldMeta('id', 'id', False, 'primitive'),
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@register_event("Animation.animationStarted")
|
|
34
|
+
@dataclass
|
|
35
|
+
class AnimationStarted(Event):
|
|
36
|
+
"""Event for animation that has been started."""
|
|
37
|
+
animation: Animation
|
|
38
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
39
|
+
FieldMeta('animation', 'animation', False, 'object', ref='Animation.Animation'),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@register_event("Animation.animationUpdated")
|
|
44
|
+
@dataclass
|
|
45
|
+
class AnimationUpdated(Event):
|
|
46
|
+
"""Event for animation that has been updated."""
|
|
47
|
+
animation: Animation
|
|
48
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
49
|
+
FieldMeta('animation', 'animation', False, 'object', ref='Animation.Animation'),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
__all__ = ["AnimationCanceled", "AnimationCreated", "AnimationStarted", "AnimationUpdated"]
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"""Commands for the Animation domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
6
|
+
|
|
7
|
+
from ..mixins.datatype import DataType, FieldMeta, encode
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..runtime.types import RemoteObject as Runtime_RemoteObject
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class GetCurrentTimeReturn(DataType):
|
|
14
|
+
"""Return value of :meth:`Animation.get_current_time`."""
|
|
15
|
+
current_time: float
|
|
16
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
17
|
+
FieldMeta('current_time', 'currentTime', False, 'primitive'),
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@dataclass
|
|
22
|
+
class GetPlaybackRateReturn(DataType):
|
|
23
|
+
"""Return value of :meth:`Animation.get_playback_rate`."""
|
|
24
|
+
playback_rate: float
|
|
25
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
26
|
+
FieldMeta('playback_rate', 'playbackRate', False, 'primitive'),
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dataclass
|
|
31
|
+
class ResolveAnimationReturn(DataType):
|
|
32
|
+
"""Return value of :meth:`Animation.resolve_animation`."""
|
|
33
|
+
remote_object: Runtime_RemoteObject
|
|
34
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
35
|
+
FieldMeta('remote_object', 'remoteObject', False, 'object', ref='Runtime.RemoteObject'),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class Animation:
|
|
40
|
+
"""Commands of the Animation domain, bound to a target."""
|
|
41
|
+
|
|
42
|
+
def __init__(self, target: Any) -> None:
|
|
43
|
+
self._target = target
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
async def disable(self) -> None:
|
|
47
|
+
"""Disables animation domain notifications."""
|
|
48
|
+
_params: Dict[str, Any] = {}
|
|
49
|
+
_result = await self._target.send('Animation.disable', _params)
|
|
50
|
+
return None
|
|
51
|
+
|
|
52
|
+
async def enable(self) -> None:
|
|
53
|
+
"""Enables animation domain notifications."""
|
|
54
|
+
_params: Dict[str, Any] = {}
|
|
55
|
+
_result = await self._target.send('Animation.enable', _params)
|
|
56
|
+
return None
|
|
57
|
+
|
|
58
|
+
async def get_current_time(self, *, id: str) -> GetCurrentTimeReturn:
|
|
59
|
+
"""
|
|
60
|
+
Returns the current time of the an animation.
|
|
61
|
+
:param id: Id of animation.
|
|
62
|
+
"""
|
|
63
|
+
_params: Dict[str, Any] = {}
|
|
64
|
+
_params['id'] = encode(FieldMeta('', '', False, 'primitive'), id)
|
|
65
|
+
_result = await self._target.send('Animation.getCurrentTime', _params)
|
|
66
|
+
return GetCurrentTimeReturn.from_json(_result)
|
|
67
|
+
|
|
68
|
+
async def get_playback_rate(self) -> GetPlaybackRateReturn:
|
|
69
|
+
"""Gets the playback rate of the document timeline."""
|
|
70
|
+
_params: Dict[str, Any] = {}
|
|
71
|
+
_result = await self._target.send('Animation.getPlaybackRate', _params)
|
|
72
|
+
return GetPlaybackRateReturn.from_json(_result)
|
|
73
|
+
|
|
74
|
+
async def release_animations(self, *, animations: List[str]) -> None:
|
|
75
|
+
"""
|
|
76
|
+
Releases a set of animations to no longer be manipulated.
|
|
77
|
+
:param animations: List of animation ids to seek.
|
|
78
|
+
"""
|
|
79
|
+
_params: Dict[str, Any] = {}
|
|
80
|
+
_params['animations'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'primitive')), animations)
|
|
81
|
+
_result = await self._target.send('Animation.releaseAnimations', _params)
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
async def resolve_animation(self, *, animation_id: str) -> ResolveAnimationReturn:
|
|
85
|
+
"""
|
|
86
|
+
Gets the remote object of the Animation.
|
|
87
|
+
:param animation_id: Animation id.
|
|
88
|
+
"""
|
|
89
|
+
_params: Dict[str, Any] = {}
|
|
90
|
+
_params['animationId'] = encode(FieldMeta('', '', False, 'primitive'), animation_id)
|
|
91
|
+
_result = await self._target.send('Animation.resolveAnimation', _params)
|
|
92
|
+
return ResolveAnimationReturn.from_json(_result)
|
|
93
|
+
|
|
94
|
+
async def seek_animations(self, *, animations: List[str], current_time: float) -> None:
|
|
95
|
+
"""
|
|
96
|
+
Seek a set of animations to a particular time within each animation.
|
|
97
|
+
:param animations: List of animation ids to seek.
|
|
98
|
+
:param current_time: Set the current time of each animation.
|
|
99
|
+
"""
|
|
100
|
+
_params: Dict[str, Any] = {}
|
|
101
|
+
_params['animations'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'primitive')), animations)
|
|
102
|
+
_params['currentTime'] = encode(FieldMeta('', '', False, 'primitive'), current_time)
|
|
103
|
+
_result = await self._target.send('Animation.seekAnimations', _params)
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
async def set_paused(self, *, animations: List[str], paused: bool) -> None:
|
|
107
|
+
"""
|
|
108
|
+
Sets the paused state of a set of animations.
|
|
109
|
+
:param animations: Animations to set the pause state of.
|
|
110
|
+
:param paused: Paused state to set to.
|
|
111
|
+
"""
|
|
112
|
+
_params: Dict[str, Any] = {}
|
|
113
|
+
_params['animations'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'primitive')), animations)
|
|
114
|
+
_params['paused'] = encode(FieldMeta('', '', False, 'primitive'), paused)
|
|
115
|
+
_result = await self._target.send('Animation.setPaused', _params)
|
|
116
|
+
return None
|
|
117
|
+
|
|
118
|
+
async def set_playback_rate(self, *, playback_rate: float) -> None:
|
|
119
|
+
"""
|
|
120
|
+
Sets the playback rate of the document timeline.
|
|
121
|
+
:param playback_rate: Playback rate for animations on page
|
|
122
|
+
"""
|
|
123
|
+
_params: Dict[str, Any] = {}
|
|
124
|
+
_params['playbackRate'] = encode(FieldMeta('', '', False, 'primitive'), playback_rate)
|
|
125
|
+
_result = await self._target.send('Animation.setPlaybackRate', _params)
|
|
126
|
+
return None
|
|
127
|
+
|
|
128
|
+
async def set_timing(self, *, animation_id: str, duration: float, delay: float) -> None:
|
|
129
|
+
"""
|
|
130
|
+
Sets the timing of an animation node.
|
|
131
|
+
:param animation_id: Animation id.
|
|
132
|
+
:param duration: Duration of the animation.
|
|
133
|
+
:param delay: Delay of the animation.
|
|
134
|
+
"""
|
|
135
|
+
_params: Dict[str, Any] = {}
|
|
136
|
+
_params['animationId'] = encode(FieldMeta('', '', False, 'primitive'), animation_id)
|
|
137
|
+
_params['duration'] = encode(FieldMeta('', '', False, 'primitive'), duration)
|
|
138
|
+
_params['delay'] = encode(FieldMeta('', '', False, 'primitive'), delay)
|
|
139
|
+
_result = await self._target.send('Animation.setTiming', _params)
|
|
140
|
+
return None
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"""Custom types and enums for the Animation domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
7
|
+
|
|
8
|
+
from ..mixins.datatype import DataType, FieldMeta, register
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..dom.types import BackendNodeId as DOM_BackendNodeId
|
|
12
|
+
from ..dom.types import ScrollOrientation as DOM_ScrollOrientation
|
|
13
|
+
|
|
14
|
+
@register("Animation.Animation")
|
|
15
|
+
@dataclass
|
|
16
|
+
class Animation(DataType):
|
|
17
|
+
"""Animation instance."""
|
|
18
|
+
id: str
|
|
19
|
+
name: str
|
|
20
|
+
paused_state: bool
|
|
21
|
+
play_state: str
|
|
22
|
+
playback_rate: float
|
|
23
|
+
start_time: float
|
|
24
|
+
current_time: float
|
|
25
|
+
type_: Literal['CSSTransition', 'CSSAnimation', 'WebAnimation']
|
|
26
|
+
source: Optional[AnimationEffect] = None
|
|
27
|
+
css_id: Optional[str] = None
|
|
28
|
+
view_or_scroll_timeline: Optional[ViewOrScrollTimeline] = None
|
|
29
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
30
|
+
FieldMeta('id', 'id', False, 'primitive'),
|
|
31
|
+
FieldMeta('name', 'name', False, 'primitive'),
|
|
32
|
+
FieldMeta('paused_state', 'pausedState', False, 'primitive'),
|
|
33
|
+
FieldMeta('play_state', 'playState', False, 'primitive'),
|
|
34
|
+
FieldMeta('playback_rate', 'playbackRate', False, 'primitive'),
|
|
35
|
+
FieldMeta('start_time', 'startTime', False, 'primitive'),
|
|
36
|
+
FieldMeta('current_time', 'currentTime', False, 'primitive'),
|
|
37
|
+
FieldMeta('type_', 'type', False, 'primitive'),
|
|
38
|
+
FieldMeta('source', 'source', True, 'object', ref='Animation.AnimationEffect'),
|
|
39
|
+
FieldMeta('css_id', 'cssId', True, 'primitive'),
|
|
40
|
+
FieldMeta('view_or_scroll_timeline', 'viewOrScrollTimeline', True, 'object', ref='Animation.ViewOrScrollTimeline'),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@register("Animation.ViewOrScrollTimeline")
|
|
45
|
+
@dataclass
|
|
46
|
+
class ViewOrScrollTimeline(DataType):
|
|
47
|
+
"""Timeline instance"""
|
|
48
|
+
axis: DOM_ScrollOrientation
|
|
49
|
+
source_node_id: Optional[DOM_BackendNodeId] = None
|
|
50
|
+
start_offset: Optional[float] = None
|
|
51
|
+
end_offset: Optional[float] = None
|
|
52
|
+
subject_node_id: Optional[DOM_BackendNodeId] = None
|
|
53
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
54
|
+
FieldMeta('axis', 'axis', False, 'enum', ref='DOM.ScrollOrientation'),
|
|
55
|
+
FieldMeta('source_node_id', 'sourceNodeId', True, 'primitive'),
|
|
56
|
+
FieldMeta('start_offset', 'startOffset', True, 'primitive'),
|
|
57
|
+
FieldMeta('end_offset', 'endOffset', True, 'primitive'),
|
|
58
|
+
FieldMeta('subject_node_id', 'subjectNodeId', True, 'primitive'),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
@register("Animation.AnimationEffect")
|
|
63
|
+
@dataclass
|
|
64
|
+
class AnimationEffect(DataType):
|
|
65
|
+
"""AnimationEffect instance"""
|
|
66
|
+
delay: float
|
|
67
|
+
end_delay: float
|
|
68
|
+
iteration_start: float
|
|
69
|
+
duration: float
|
|
70
|
+
direction: str
|
|
71
|
+
fill: str
|
|
72
|
+
easing: str
|
|
73
|
+
iterations: Optional[float] = None
|
|
74
|
+
backend_node_id: Optional[DOM_BackendNodeId] = None
|
|
75
|
+
keyframes_rule: Optional[KeyframesRule] = None
|
|
76
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
77
|
+
FieldMeta('delay', 'delay', False, 'primitive'),
|
|
78
|
+
FieldMeta('end_delay', 'endDelay', False, 'primitive'),
|
|
79
|
+
FieldMeta('iteration_start', 'iterationStart', False, 'primitive'),
|
|
80
|
+
FieldMeta('duration', 'duration', False, 'primitive'),
|
|
81
|
+
FieldMeta('direction', 'direction', False, 'primitive'),
|
|
82
|
+
FieldMeta('fill', 'fill', False, 'primitive'),
|
|
83
|
+
FieldMeta('easing', 'easing', False, 'primitive'),
|
|
84
|
+
FieldMeta('iterations', 'iterations', True, 'primitive'),
|
|
85
|
+
FieldMeta('backend_node_id', 'backendNodeId', True, 'primitive'),
|
|
86
|
+
FieldMeta('keyframes_rule', 'keyframesRule', True, 'object', ref='Animation.KeyframesRule'),
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@register("Animation.KeyframesRule")
|
|
91
|
+
@dataclass
|
|
92
|
+
class KeyframesRule(DataType):
|
|
93
|
+
"""Keyframes Rule"""
|
|
94
|
+
keyframes: List[KeyframeStyle]
|
|
95
|
+
name: Optional[str] = None
|
|
96
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
97
|
+
FieldMeta('keyframes', 'keyframes', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Animation.KeyframeStyle')),
|
|
98
|
+
FieldMeta('name', 'name', True, 'primitive'),
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@register("Animation.KeyframeStyle")
|
|
103
|
+
@dataclass
|
|
104
|
+
class KeyframeStyle(DataType):
|
|
105
|
+
"""Keyframe Style"""
|
|
106
|
+
offset: str
|
|
107
|
+
easing: str
|
|
108
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
109
|
+
FieldMeta('offset', 'offset', False, 'primitive'),
|
|
110
|
+
FieldMeta('easing', 'easing', False, 'primitive'),
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
__all__ = ["Animation", "AnimationEffect", "KeyframeStyle", "KeyframesRule", "ViewOrScrollTimeline"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""The Audits CDP domain (generated).
|
|
2
|
+
|
|
3
|
+
Importing ``Audits`` from ``parsek_cdp.cdp`` gives a namespace with this
|
|
4
|
+
domain's events and types as attributes (``Audits.SomeEvent`` /
|
|
5
|
+
``Audits.SomeType``); commands run on a target via ``page.cdp.Audits``.
|
|
6
|
+
"""
|
|
7
|
+
from . import events, functions, types
|
|
8
|
+
from .functions import Audits
|
|
9
|
+
from .events import * # noqa: F401,F403 -- expose events on the namespace
|
|
10
|
+
from .types import * # noqa: F401,F403 -- expose types on the namespace
|
|
11
|
+
|
|
12
|
+
#: Protocol domain name (used by features that declare ``domains=(Audits,)``).
|
|
13
|
+
DOMAIN = "Audits"
|
|
14
|
+
|
|
15
|
+
__all__ = ["events", "functions", "types", "Audits", "DOMAIN"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Events for the Audits domain (generated)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Literal, Optional
|
|
6
|
+
|
|
7
|
+
from ..mixins.datatype import FieldMeta
|
|
8
|
+
from ..mixins.event import Event, register_event
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from .types import InspectorIssue
|
|
12
|
+
|
|
13
|
+
@register_event("Audits.issueAdded")
|
|
14
|
+
@dataclass
|
|
15
|
+
class IssueAdded(Event):
|
|
16
|
+
issue: InspectorIssue
|
|
17
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
18
|
+
FieldMeta('issue', 'issue', False, 'object', ref='Audits.InspectorIssue'),
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
__all__ = ["IssueAdded"]
|