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,328 @@
|
|
|
1
|
+
"""Custom types and enums for the Overlay 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 NodeId as DOM_NodeId
|
|
12
|
+
from ..dom.types import RGBA as DOM_RGBA
|
|
13
|
+
from ..dom.types import Rect as DOM_Rect
|
|
14
|
+
|
|
15
|
+
@register("Overlay.SourceOrderConfig")
|
|
16
|
+
@dataclass
|
|
17
|
+
class SourceOrderConfig(DataType):
|
|
18
|
+
"""Configuration data for drawing the source order of an elements children."""
|
|
19
|
+
parent_outline_color: DOM_RGBA
|
|
20
|
+
child_outline_color: DOM_RGBA
|
|
21
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
22
|
+
FieldMeta('parent_outline_color', 'parentOutlineColor', False, 'object', ref='DOM.RGBA'),
|
|
23
|
+
FieldMeta('child_outline_color', 'childOutlineColor', False, 'object', ref='DOM.RGBA'),
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@register("Overlay.GridHighlightConfig")
|
|
28
|
+
@dataclass
|
|
29
|
+
class GridHighlightConfig(DataType):
|
|
30
|
+
"""Configuration data for the highlighting of Grid elements."""
|
|
31
|
+
show_grid_extension_lines: Optional[bool] = None
|
|
32
|
+
show_positive_line_numbers: Optional[bool] = None
|
|
33
|
+
show_negative_line_numbers: Optional[bool] = None
|
|
34
|
+
show_area_names: Optional[bool] = None
|
|
35
|
+
show_line_names: Optional[bool] = None
|
|
36
|
+
show_track_sizes: Optional[bool] = None
|
|
37
|
+
grid_border_color: Optional[DOM_RGBA] = None
|
|
38
|
+
cell_border_color: Optional[DOM_RGBA] = None
|
|
39
|
+
row_line_color: Optional[DOM_RGBA] = None
|
|
40
|
+
column_line_color: Optional[DOM_RGBA] = None
|
|
41
|
+
grid_border_dash: Optional[bool] = None
|
|
42
|
+
cell_border_dash: Optional[bool] = None
|
|
43
|
+
row_line_dash: Optional[bool] = None
|
|
44
|
+
column_line_dash: Optional[bool] = None
|
|
45
|
+
row_gap_color: Optional[DOM_RGBA] = None
|
|
46
|
+
row_hatch_color: Optional[DOM_RGBA] = None
|
|
47
|
+
column_gap_color: Optional[DOM_RGBA] = None
|
|
48
|
+
column_hatch_color: Optional[DOM_RGBA] = None
|
|
49
|
+
area_border_color: Optional[DOM_RGBA] = None
|
|
50
|
+
grid_background_color: Optional[DOM_RGBA] = None
|
|
51
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
52
|
+
FieldMeta('show_grid_extension_lines', 'showGridExtensionLines', True, 'primitive'),
|
|
53
|
+
FieldMeta('show_positive_line_numbers', 'showPositiveLineNumbers', True, 'primitive'),
|
|
54
|
+
FieldMeta('show_negative_line_numbers', 'showNegativeLineNumbers', True, 'primitive'),
|
|
55
|
+
FieldMeta('show_area_names', 'showAreaNames', True, 'primitive'),
|
|
56
|
+
FieldMeta('show_line_names', 'showLineNames', True, 'primitive'),
|
|
57
|
+
FieldMeta('show_track_sizes', 'showTrackSizes', True, 'primitive'),
|
|
58
|
+
FieldMeta('grid_border_color', 'gridBorderColor', True, 'object', ref='DOM.RGBA'),
|
|
59
|
+
FieldMeta('cell_border_color', 'cellBorderColor', True, 'object', ref='DOM.RGBA'),
|
|
60
|
+
FieldMeta('row_line_color', 'rowLineColor', True, 'object', ref='DOM.RGBA'),
|
|
61
|
+
FieldMeta('column_line_color', 'columnLineColor', True, 'object', ref='DOM.RGBA'),
|
|
62
|
+
FieldMeta('grid_border_dash', 'gridBorderDash', True, 'primitive'),
|
|
63
|
+
FieldMeta('cell_border_dash', 'cellBorderDash', True, 'primitive'),
|
|
64
|
+
FieldMeta('row_line_dash', 'rowLineDash', True, 'primitive'),
|
|
65
|
+
FieldMeta('column_line_dash', 'columnLineDash', True, 'primitive'),
|
|
66
|
+
FieldMeta('row_gap_color', 'rowGapColor', True, 'object', ref='DOM.RGBA'),
|
|
67
|
+
FieldMeta('row_hatch_color', 'rowHatchColor', True, 'object', ref='DOM.RGBA'),
|
|
68
|
+
FieldMeta('column_gap_color', 'columnGapColor', True, 'object', ref='DOM.RGBA'),
|
|
69
|
+
FieldMeta('column_hatch_color', 'columnHatchColor', True, 'object', ref='DOM.RGBA'),
|
|
70
|
+
FieldMeta('area_border_color', 'areaBorderColor', True, 'object', ref='DOM.RGBA'),
|
|
71
|
+
FieldMeta('grid_background_color', 'gridBackgroundColor', True, 'object', ref='DOM.RGBA'),
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@register("Overlay.FlexContainerHighlightConfig")
|
|
76
|
+
@dataclass
|
|
77
|
+
class FlexContainerHighlightConfig(DataType):
|
|
78
|
+
"""Configuration data for the highlighting of Flex container elements."""
|
|
79
|
+
container_border: Optional[LineStyle] = None
|
|
80
|
+
line_separator: Optional[LineStyle] = None
|
|
81
|
+
item_separator: Optional[LineStyle] = None
|
|
82
|
+
main_distributed_space: Optional[BoxStyle] = None
|
|
83
|
+
cross_distributed_space: Optional[BoxStyle] = None
|
|
84
|
+
row_gap_space: Optional[BoxStyle] = None
|
|
85
|
+
column_gap_space: Optional[BoxStyle] = None
|
|
86
|
+
cross_alignment: Optional[LineStyle] = None
|
|
87
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
88
|
+
FieldMeta('container_border', 'containerBorder', True, 'object', ref='Overlay.LineStyle'),
|
|
89
|
+
FieldMeta('line_separator', 'lineSeparator', True, 'object', ref='Overlay.LineStyle'),
|
|
90
|
+
FieldMeta('item_separator', 'itemSeparator', True, 'object', ref='Overlay.LineStyle'),
|
|
91
|
+
FieldMeta('main_distributed_space', 'mainDistributedSpace', True, 'object', ref='Overlay.BoxStyle'),
|
|
92
|
+
FieldMeta('cross_distributed_space', 'crossDistributedSpace', True, 'object', ref='Overlay.BoxStyle'),
|
|
93
|
+
FieldMeta('row_gap_space', 'rowGapSpace', True, 'object', ref='Overlay.BoxStyle'),
|
|
94
|
+
FieldMeta('column_gap_space', 'columnGapSpace', True, 'object', ref='Overlay.BoxStyle'),
|
|
95
|
+
FieldMeta('cross_alignment', 'crossAlignment', True, 'object', ref='Overlay.LineStyle'),
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
@register("Overlay.FlexItemHighlightConfig")
|
|
100
|
+
@dataclass
|
|
101
|
+
class FlexItemHighlightConfig(DataType):
|
|
102
|
+
"""Configuration data for the highlighting of Flex item elements."""
|
|
103
|
+
base_size_box: Optional[BoxStyle] = None
|
|
104
|
+
base_size_border: Optional[LineStyle] = None
|
|
105
|
+
flexibility_arrow: Optional[LineStyle] = None
|
|
106
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
107
|
+
FieldMeta('base_size_box', 'baseSizeBox', True, 'object', ref='Overlay.BoxStyle'),
|
|
108
|
+
FieldMeta('base_size_border', 'baseSizeBorder', True, 'object', ref='Overlay.LineStyle'),
|
|
109
|
+
FieldMeta('flexibility_arrow', 'flexibilityArrow', True, 'object', ref='Overlay.LineStyle'),
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
@register("Overlay.LineStyle")
|
|
114
|
+
@dataclass
|
|
115
|
+
class LineStyle(DataType):
|
|
116
|
+
"""Style information for drawing a line."""
|
|
117
|
+
color: Optional[DOM_RGBA] = None
|
|
118
|
+
pattern: Optional[Literal['dashed', 'dotted']] = None
|
|
119
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
120
|
+
FieldMeta('color', 'color', True, 'object', ref='DOM.RGBA'),
|
|
121
|
+
FieldMeta('pattern', 'pattern', True, 'primitive'),
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@register("Overlay.BoxStyle")
|
|
126
|
+
@dataclass
|
|
127
|
+
class BoxStyle(DataType):
|
|
128
|
+
"""Style information for drawing a box."""
|
|
129
|
+
fill_color: Optional[DOM_RGBA] = None
|
|
130
|
+
hatch_color: Optional[DOM_RGBA] = None
|
|
131
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
132
|
+
FieldMeta('fill_color', 'fillColor', True, 'object', ref='DOM.RGBA'),
|
|
133
|
+
FieldMeta('hatch_color', 'hatchColor', True, 'object', ref='DOM.RGBA'),
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
@register("Overlay.ContrastAlgorithm")
|
|
138
|
+
class ContrastAlgorithm(str, Enum):
|
|
139
|
+
AA = 'aa'
|
|
140
|
+
AAA = 'aaa'
|
|
141
|
+
APCA = 'apca'
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
@register("Overlay.HighlightConfig")
|
|
145
|
+
@dataclass
|
|
146
|
+
class HighlightConfig(DataType):
|
|
147
|
+
"""Configuration data for the highlighting of page elements."""
|
|
148
|
+
show_info: Optional[bool] = None
|
|
149
|
+
show_styles: Optional[bool] = None
|
|
150
|
+
show_rulers: Optional[bool] = None
|
|
151
|
+
show_accessibility_info: Optional[bool] = None
|
|
152
|
+
show_extension_lines: Optional[bool] = None
|
|
153
|
+
content_color: Optional[DOM_RGBA] = None
|
|
154
|
+
padding_color: Optional[DOM_RGBA] = None
|
|
155
|
+
border_color: Optional[DOM_RGBA] = None
|
|
156
|
+
margin_color: Optional[DOM_RGBA] = None
|
|
157
|
+
event_target_color: Optional[DOM_RGBA] = None
|
|
158
|
+
shape_color: Optional[DOM_RGBA] = None
|
|
159
|
+
shape_margin_color: Optional[DOM_RGBA] = None
|
|
160
|
+
css_grid_color: Optional[DOM_RGBA] = None
|
|
161
|
+
color_format: Optional[ColorFormat] = None
|
|
162
|
+
grid_highlight_config: Optional[GridHighlightConfig] = None
|
|
163
|
+
flex_container_highlight_config: Optional[FlexContainerHighlightConfig] = None
|
|
164
|
+
flex_item_highlight_config: Optional[FlexItemHighlightConfig] = None
|
|
165
|
+
contrast_algorithm: Optional[ContrastAlgorithm] = None
|
|
166
|
+
container_query_container_highlight_config: Optional[ContainerQueryContainerHighlightConfig] = None
|
|
167
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
168
|
+
FieldMeta('show_info', 'showInfo', True, 'primitive'),
|
|
169
|
+
FieldMeta('show_styles', 'showStyles', True, 'primitive'),
|
|
170
|
+
FieldMeta('show_rulers', 'showRulers', True, 'primitive'),
|
|
171
|
+
FieldMeta('show_accessibility_info', 'showAccessibilityInfo', True, 'primitive'),
|
|
172
|
+
FieldMeta('show_extension_lines', 'showExtensionLines', True, 'primitive'),
|
|
173
|
+
FieldMeta('content_color', 'contentColor', True, 'object', ref='DOM.RGBA'),
|
|
174
|
+
FieldMeta('padding_color', 'paddingColor', True, 'object', ref='DOM.RGBA'),
|
|
175
|
+
FieldMeta('border_color', 'borderColor', True, 'object', ref='DOM.RGBA'),
|
|
176
|
+
FieldMeta('margin_color', 'marginColor', True, 'object', ref='DOM.RGBA'),
|
|
177
|
+
FieldMeta('event_target_color', 'eventTargetColor', True, 'object', ref='DOM.RGBA'),
|
|
178
|
+
FieldMeta('shape_color', 'shapeColor', True, 'object', ref='DOM.RGBA'),
|
|
179
|
+
FieldMeta('shape_margin_color', 'shapeMarginColor', True, 'object', ref='DOM.RGBA'),
|
|
180
|
+
FieldMeta('css_grid_color', 'cssGridColor', True, 'object', ref='DOM.RGBA'),
|
|
181
|
+
FieldMeta('color_format', 'colorFormat', True, 'enum', ref='Overlay.ColorFormat'),
|
|
182
|
+
FieldMeta('grid_highlight_config', 'gridHighlightConfig', True, 'object', ref='Overlay.GridHighlightConfig'),
|
|
183
|
+
FieldMeta('flex_container_highlight_config', 'flexContainerHighlightConfig', True, 'object', ref='Overlay.FlexContainerHighlightConfig'),
|
|
184
|
+
FieldMeta('flex_item_highlight_config', 'flexItemHighlightConfig', True, 'object', ref='Overlay.FlexItemHighlightConfig'),
|
|
185
|
+
FieldMeta('contrast_algorithm', 'contrastAlgorithm', True, 'enum', ref='Overlay.ContrastAlgorithm'),
|
|
186
|
+
FieldMeta('container_query_container_highlight_config', 'containerQueryContainerHighlightConfig', True, 'object', ref='Overlay.ContainerQueryContainerHighlightConfig'),
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
@register("Overlay.ColorFormat")
|
|
191
|
+
class ColorFormat(str, Enum):
|
|
192
|
+
RGB = 'rgb'
|
|
193
|
+
HSL = 'hsl'
|
|
194
|
+
HWB = 'hwb'
|
|
195
|
+
HEX = 'hex'
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@register("Overlay.GridNodeHighlightConfig")
|
|
199
|
+
@dataclass
|
|
200
|
+
class GridNodeHighlightConfig(DataType):
|
|
201
|
+
"""Configurations for Persistent Grid Highlight"""
|
|
202
|
+
grid_highlight_config: GridHighlightConfig
|
|
203
|
+
node_id: DOM_NodeId
|
|
204
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
205
|
+
FieldMeta('grid_highlight_config', 'gridHighlightConfig', False, 'object', ref='Overlay.GridHighlightConfig'),
|
|
206
|
+
FieldMeta('node_id', 'nodeId', False, 'primitive'),
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
@register("Overlay.FlexNodeHighlightConfig")
|
|
211
|
+
@dataclass
|
|
212
|
+
class FlexNodeHighlightConfig(DataType):
|
|
213
|
+
flex_container_highlight_config: FlexContainerHighlightConfig
|
|
214
|
+
node_id: DOM_NodeId
|
|
215
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
216
|
+
FieldMeta('flex_container_highlight_config', 'flexContainerHighlightConfig', False, 'object', ref='Overlay.FlexContainerHighlightConfig'),
|
|
217
|
+
FieldMeta('node_id', 'nodeId', False, 'primitive'),
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
@register("Overlay.ScrollSnapContainerHighlightConfig")
|
|
222
|
+
@dataclass
|
|
223
|
+
class ScrollSnapContainerHighlightConfig(DataType):
|
|
224
|
+
snapport_border: Optional[LineStyle] = None
|
|
225
|
+
snap_area_border: Optional[LineStyle] = None
|
|
226
|
+
scroll_margin_color: Optional[DOM_RGBA] = None
|
|
227
|
+
scroll_padding_color: Optional[DOM_RGBA] = None
|
|
228
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
229
|
+
FieldMeta('snapport_border', 'snapportBorder', True, 'object', ref='Overlay.LineStyle'),
|
|
230
|
+
FieldMeta('snap_area_border', 'snapAreaBorder', True, 'object', ref='Overlay.LineStyle'),
|
|
231
|
+
FieldMeta('scroll_margin_color', 'scrollMarginColor', True, 'object', ref='DOM.RGBA'),
|
|
232
|
+
FieldMeta('scroll_padding_color', 'scrollPaddingColor', True, 'object', ref='DOM.RGBA'),
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
@register("Overlay.ScrollSnapHighlightConfig")
|
|
237
|
+
@dataclass
|
|
238
|
+
class ScrollSnapHighlightConfig(DataType):
|
|
239
|
+
scroll_snap_container_highlight_config: ScrollSnapContainerHighlightConfig
|
|
240
|
+
node_id: DOM_NodeId
|
|
241
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
242
|
+
FieldMeta('scroll_snap_container_highlight_config', 'scrollSnapContainerHighlightConfig', False, 'object', ref='Overlay.ScrollSnapContainerHighlightConfig'),
|
|
243
|
+
FieldMeta('node_id', 'nodeId', False, 'primitive'),
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
@register("Overlay.HingeConfig")
|
|
248
|
+
@dataclass
|
|
249
|
+
class HingeConfig(DataType):
|
|
250
|
+
"""Configuration for dual screen hinge"""
|
|
251
|
+
rect: DOM_Rect
|
|
252
|
+
content_color: Optional[DOM_RGBA] = None
|
|
253
|
+
outline_color: Optional[DOM_RGBA] = None
|
|
254
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
255
|
+
FieldMeta('rect', 'rect', False, 'object', ref='DOM.Rect'),
|
|
256
|
+
FieldMeta('content_color', 'contentColor', True, 'object', ref='DOM.RGBA'),
|
|
257
|
+
FieldMeta('outline_color', 'outlineColor', True, 'object', ref='DOM.RGBA'),
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
@register("Overlay.WindowControlsOverlayConfig")
|
|
262
|
+
@dataclass
|
|
263
|
+
class WindowControlsOverlayConfig(DataType):
|
|
264
|
+
"""Configuration for Window Controls Overlay"""
|
|
265
|
+
show_css: bool
|
|
266
|
+
selected_platform: str
|
|
267
|
+
theme_color: str
|
|
268
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
269
|
+
FieldMeta('show_css', 'showCSS', False, 'primitive'),
|
|
270
|
+
FieldMeta('selected_platform', 'selectedPlatform', False, 'primitive'),
|
|
271
|
+
FieldMeta('theme_color', 'themeColor', False, 'primitive'),
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
@register("Overlay.ContainerQueryHighlightConfig")
|
|
276
|
+
@dataclass
|
|
277
|
+
class ContainerQueryHighlightConfig(DataType):
|
|
278
|
+
container_query_container_highlight_config: ContainerQueryContainerHighlightConfig
|
|
279
|
+
node_id: DOM_NodeId
|
|
280
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
281
|
+
FieldMeta('container_query_container_highlight_config', 'containerQueryContainerHighlightConfig', False, 'object', ref='Overlay.ContainerQueryContainerHighlightConfig'),
|
|
282
|
+
FieldMeta('node_id', 'nodeId', False, 'primitive'),
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
@register("Overlay.ContainerQueryContainerHighlightConfig")
|
|
287
|
+
@dataclass
|
|
288
|
+
class ContainerQueryContainerHighlightConfig(DataType):
|
|
289
|
+
container_border: Optional[LineStyle] = None
|
|
290
|
+
descendant_border: Optional[LineStyle] = None
|
|
291
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
292
|
+
FieldMeta('container_border', 'containerBorder', True, 'object', ref='Overlay.LineStyle'),
|
|
293
|
+
FieldMeta('descendant_border', 'descendantBorder', True, 'object', ref='Overlay.LineStyle'),
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
@register("Overlay.IsolatedElementHighlightConfig")
|
|
298
|
+
@dataclass
|
|
299
|
+
class IsolatedElementHighlightConfig(DataType):
|
|
300
|
+
isolation_mode_highlight_config: IsolationModeHighlightConfig
|
|
301
|
+
node_id: DOM_NodeId
|
|
302
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
303
|
+
FieldMeta('isolation_mode_highlight_config', 'isolationModeHighlightConfig', False, 'object', ref='Overlay.IsolationModeHighlightConfig'),
|
|
304
|
+
FieldMeta('node_id', 'nodeId', False, 'primitive'),
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
@register("Overlay.IsolationModeHighlightConfig")
|
|
309
|
+
@dataclass
|
|
310
|
+
class IsolationModeHighlightConfig(DataType):
|
|
311
|
+
resizer_color: Optional[DOM_RGBA] = None
|
|
312
|
+
resizer_handle_color: Optional[DOM_RGBA] = None
|
|
313
|
+
mask_color: Optional[DOM_RGBA] = None
|
|
314
|
+
__FIELDS__: ClassVar[tuple] = (
|
|
315
|
+
FieldMeta('resizer_color', 'resizerColor', True, 'object', ref='DOM.RGBA'),
|
|
316
|
+
FieldMeta('resizer_handle_color', 'resizerHandleColor', True, 'object', ref='DOM.RGBA'),
|
|
317
|
+
FieldMeta('mask_color', 'maskColor', True, 'object', ref='DOM.RGBA'),
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
@register("Overlay.InspectMode")
|
|
322
|
+
class InspectMode(str, Enum):
|
|
323
|
+
SEARCHFORNODE = 'searchForNode'
|
|
324
|
+
SEARCHFORUASHADOWDOM = 'searchForUAShadowDOM'
|
|
325
|
+
CAPTUREAREASCREENSHOT = 'captureAreaScreenshot'
|
|
326
|
+
NONE = 'none'
|
|
327
|
+
|
|
328
|
+
__all__ = ["BoxStyle", "ColorFormat", "ContainerQueryContainerHighlightConfig", "ContainerQueryHighlightConfig", "ContrastAlgorithm", "FlexContainerHighlightConfig", "FlexItemHighlightConfig", "FlexNodeHighlightConfig", "GridHighlightConfig", "GridNodeHighlightConfig", "HighlightConfig", "HingeConfig", "InspectMode", "IsolatedElementHighlightConfig", "IsolationModeHighlightConfig", "LineStyle", "ScrollSnapContainerHighlightConfig", "ScrollSnapHighlightConfig", "SourceOrderConfig", "WindowControlsOverlayConfig"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""The Page CDP domain (generated).
|
|
2
|
+
|
|
3
|
+
Importing ``Page`` from ``parsek_cdp.cdp`` gives a namespace with this
|
|
4
|
+
domain's events and types as attributes (``Page.SomeEvent`` /
|
|
5
|
+
``Page.SomeType``); commands run on a target via ``page.cdp.Page``.
|
|
6
|
+
"""
|
|
7
|
+
from . import events, functions, types
|
|
8
|
+
from .functions import Page
|
|
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=(Page,)``).
|
|
13
|
+
DOMAIN = "Page"
|
|
14
|
+
|
|
15
|
+
__all__ = ["events", "functions", "types", "Page", "DOMAIN"]
|