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.
Files changed (242) hide show
  1. parsek_cdp/__init__.py +55 -0
  2. parsek_cdp/_logging.py +49 -0
  3. parsek_cdp/cdp/__init__.py +247 -0
  4. parsek_cdp/cdp/accessibility/__init__.py +15 -0
  5. parsek_cdp/cdp/accessibility/events.py +35 -0
  6. parsek_cdp/cdp/accessibility/functions.py +202 -0
  7. parsek_cdp/cdp/accessibility/types.py +235 -0
  8. parsek_cdp/cdp/animation/__init__.py +15 -0
  9. parsek_cdp/cdp/animation/events.py +52 -0
  10. parsek_cdp/cdp/animation/functions.py +140 -0
  11. parsek_cdp/cdp/animation/types.py +113 -0
  12. parsek_cdp/cdp/audits/__init__.py +15 -0
  13. parsek_cdp/cdp/audits/events.py +21 -0
  14. parsek_cdp/cdp/audits/functions.py +95 -0
  15. parsek_cdp/cdp/audits/types.py +1051 -0
  16. parsek_cdp/cdp/autofill/__init__.py +15 -0
  17. parsek_cdp/cdp/autofill/events.py +27 -0
  18. parsek_cdp/cdp/autofill/functions.py +64 -0
  19. parsek_cdp/cdp/autofill/types.py +108 -0
  20. parsek_cdp/cdp/backgroundservice/__init__.py +15 -0
  21. parsek_cdp/cdp/backgroundservice/events.py +40 -0
  22. parsek_cdp/cdp/backgroundservice/functions.py +59 -0
  23. parsek_cdp/cdp/backgroundservice/types.py +63 -0
  24. parsek_cdp/cdp/bluetoothemulation/__init__.py +15 -0
  25. parsek_cdp/cdp/bluetoothemulation/events.py +70 -0
  26. parsek_cdp/cdp/bluetoothemulation/functions.py +247 -0
  27. parsek_cdp/cdp/bluetoothemulation/types.py +120 -0
  28. parsek_cdp/cdp/browser/__init__.py +15 -0
  29. parsek_cdp/cdp/browser/events.py +46 -0
  30. parsek_cdp/cdp/browser/functions.py +350 -0
  31. parsek_cdp/cdp/browser/types.py +158 -0
  32. parsek_cdp/cdp/cachestorage/__init__.py +15 -0
  33. parsek_cdp/cdp/cachestorage/events.py +13 -0
  34. parsek_cdp/cdp/cachestorage/functions.py +126 -0
  35. parsek_cdp/cdp/cachestorage/types.py +89 -0
  36. parsek_cdp/cdp/cast/__init__.py +15 -0
  37. parsek_cdp/cdp/cast/events.py +38 -0
  38. parsek_cdp/cdp/cast/functions.py +77 -0
  39. parsek_cdp/cdp/cast/types.py +23 -0
  40. parsek_cdp/cdp/console/__init__.py +15 -0
  41. parsek_cdp/cdp/console/events.py +22 -0
  42. parsek_cdp/cdp/console/functions.py +36 -0
  43. parsek_cdp/cdp/console/types.py +30 -0
  44. parsek_cdp/cdp/css/__init__.py +15 -0
  45. parsek_cdp/cdp/css/events.py +79 -0
  46. parsek_cdp/cdp/css/functions.py +788 -0
  47. parsek_cdp/cdp/css/types.py +742 -0
  48. parsek_cdp/cdp/debugger/__init__.py +15 -0
  49. parsek_cdp/cdp/debugger/events.py +164 -0
  50. parsek_cdp/cdp/debugger/functions.py +663 -0
  51. parsek_cdp/cdp/debugger/types.py +171 -0
  52. parsek_cdp/cdp/deviceaccess/__init__.py +15 -0
  53. parsek_cdp/cdp/deviceaccess/events.py +30 -0
  54. parsek_cdp/cdp/deviceaccess/functions.py +54 -0
  55. parsek_cdp/cdp/deviceaccess/types.py +28 -0
  56. parsek_cdp/cdp/deviceorientation/__init__.py +15 -0
  57. parsek_cdp/cdp/deviceorientation/events.py +13 -0
  58. parsek_cdp/cdp/deviceorientation/functions.py +35 -0
  59. parsek_cdp/cdp/deviceorientation/types.py +10 -0
  60. parsek_cdp/cdp/dom/__init__.py +15 -0
  61. parsek_cdp/cdp/dom/events.py +228 -0
  62. parsek_cdp/cdp/dom/functions.py +1033 -0
  63. parsek_cdp/cdp/dom/types.py +293 -0
  64. parsek_cdp/cdp/domdebugger/__init__.py +15 -0
  65. parsek_cdp/cdp/domdebugger/events.py +13 -0
  66. parsek_cdp/cdp/domdebugger/functions.py +155 -0
  67. parsek_cdp/cdp/domdebugger/types.py +57 -0
  68. parsek_cdp/cdp/domsnapshot/__init__.py +15 -0
  69. parsek_cdp/cdp/domsnapshot/events.py +13 -0
  70. parsek_cdp/cdp/domsnapshot/functions.py +111 -0
  71. parsek_cdp/cdp/domsnapshot/types.py +312 -0
  72. parsek_cdp/cdp/domstorage/__init__.py +15 -0
  73. parsek_cdp/cdp/domstorage/events.py +60 -0
  74. parsek_cdp/cdp/domstorage/functions.py +79 -0
  75. parsek_cdp/cdp/domstorage/types.py +30 -0
  76. parsek_cdp/cdp/emulation/__init__.py +15 -0
  77. parsek_cdp/cdp/emulation/events.py +17 -0
  78. parsek_cdp/cdp/emulation/functions.py +688 -0
  79. parsek_cdp/cdp/emulation/types.py +305 -0
  80. parsek_cdp/cdp/eventbreakpoints/__init__.py +15 -0
  81. parsek_cdp/cdp/eventbreakpoints/events.py +13 -0
  82. parsek_cdp/cdp/eventbreakpoints/functions.py +41 -0
  83. parsek_cdp/cdp/eventbreakpoints/types.py +10 -0
  84. parsek_cdp/cdp/extensions/__init__.py +15 -0
  85. parsek_cdp/cdp/extensions/events.py +13 -0
  86. parsek_cdp/cdp/extensions/functions.py +118 -0
  87. parsek_cdp/cdp/extensions/types.py +19 -0
  88. parsek_cdp/cdp/fedcm/__init__.py +15 -0
  89. parsek_cdp/cdp/fedcm/events.py +45 -0
  90. parsek_cdp/cdp/fedcm/functions.py +93 -0
  91. parsek_cdp/cdp/fedcm/types.py +72 -0
  92. parsek_cdp/cdp/fetch/__init__.py +15 -0
  93. parsek_cdp/cdp/fetch/events.py +82 -0
  94. parsek_cdp/cdp/fetch/functions.py +215 -0
  95. parsek_cdp/cdp/fetch/types.py +81 -0
  96. parsek_cdp/cdp/filesystem/__init__.py +15 -0
  97. parsek_cdp/cdp/filesystem/events.py +13 -0
  98. parsek_cdp/cdp/filesystem/functions.py +36 -0
  99. parsek_cdp/cdp/filesystem/types.py +54 -0
  100. parsek_cdp/cdp/headlessexperimental/__init__.py +15 -0
  101. parsek_cdp/cdp/headlessexperimental/events.py +13 -0
  102. parsek_cdp/cdp/headlessexperimental/functions.py +77 -0
  103. parsek_cdp/cdp/headlessexperimental/types.py +24 -0
  104. parsek_cdp/cdp/heapprofiler/__init__.py +15 -0
  105. parsek_cdp/cdp/heapprofiler/events.py +65 -0
  106. parsek_cdp/cdp/heapprofiler/functions.py +193 -0
  107. parsek_cdp/cdp/heapprofiler/types.py +57 -0
  108. parsek_cdp/cdp/indexeddb/__init__.py +15 -0
  109. parsek_cdp/cdp/indexeddb/events.py +13 -0
  110. parsek_cdp/cdp/indexeddb/functions.py +232 -0
  111. parsek_cdp/cdp/indexeddb/types.py +120 -0
  112. parsek_cdp/cdp/input/__init__.py +15 -0
  113. parsek_cdp/cdp/input/events.py +25 -0
  114. parsek_cdp/cdp/input/functions.py +361 -0
  115. parsek_cdp/cdp/input/types.py +87 -0
  116. parsek_cdp/cdp/inspector/__init__.py +15 -0
  117. parsek_cdp/cdp/inspector/events.py +41 -0
  118. parsek_cdp/cdp/inspector/functions.py +27 -0
  119. parsek_cdp/cdp/inspector/types.py +10 -0
  120. parsek_cdp/cdp/io/__init__.py +15 -0
  121. parsek_cdp/cdp/io/events.py +13 -0
  122. parsek_cdp/cdp/io/functions.py +77 -0
  123. parsek_cdp/cdp/io/types.py +13 -0
  124. parsek_cdp/cdp/layertree/__init__.py +15 -0
  125. parsek_cdp/cdp/layertree/events.py +36 -0
  126. parsek_cdp/cdp/layertree/functions.py +178 -0
  127. parsek_cdp/cdp/layertree/types.py +104 -0
  128. parsek_cdp/cdp/log/__init__.py +15 -0
  129. parsek_cdp/cdp/log/events.py +22 -0
  130. parsek_cdp/cdp/log/functions.py +54 -0
  131. parsek_cdp/cdp/log/types.py +57 -0
  132. parsek_cdp/cdp/media/__init__.py +15 -0
  133. parsek_cdp/cdp/media/events.py +87 -0
  134. parsek_cdp/cdp/media/functions.py +27 -0
  135. parsek_cdp/cdp/media/types.py +101 -0
  136. parsek_cdp/cdp/memory/__init__.py +15 -0
  137. parsek_cdp/cdp/memory/events.py +13 -0
  138. parsek_cdp/cdp/memory/functions.py +164 -0
  139. parsek_cdp/cdp/memory/types.py +71 -0
  140. parsek_cdp/cdp/mixins/__init__.py +21 -0
  141. parsek_cdp/cdp/mixins/datatype.py +123 -0
  142. parsek_cdp/cdp/mixins/event.py +78 -0
  143. parsek_cdp/cdp/mixins/namespace.py +31 -0
  144. parsek_cdp/cdp/network/__init__.py +15 -0
  145. parsek_cdp/cdp/network/events.py +726 -0
  146. parsek_cdp/cdp/network/functions.py +734 -0
  147. parsek_cdp/cdp/network/types.py +1247 -0
  148. parsek_cdp/cdp/overlay/__init__.py +15 -0
  149. parsek_cdp/cdp/overlay/events.py +54 -0
  150. parsek_cdp/cdp/overlay/functions.py +407 -0
  151. parsek_cdp/cdp/overlay/types.py +328 -0
  152. parsek_cdp/cdp/page/__init__.py +15 -0
  153. parsek_cdp/cdp/page/events.py +416 -0
  154. parsek_cdp/cdp/page/functions.py +1081 -0
  155. parsek_cdp/cdp/page/types.py +1088 -0
  156. parsek_cdp/cdp/performance/__init__.py +15 -0
  157. parsek_cdp/cdp/performance/events.py +24 -0
  158. parsek_cdp/cdp/performance/functions.py +63 -0
  159. parsek_cdp/cdp/performance/types.py +22 -0
  160. parsek_cdp/cdp/performancetimeline/__init__.py +15 -0
  161. parsek_cdp/cdp/performancetimeline/events.py +22 -0
  162. parsek_cdp/cdp/performancetimeline/functions.py +30 -0
  163. parsek_cdp/cdp/performancetimeline/types.py +85 -0
  164. parsek_cdp/cdp/preload/__init__.py +15 -0
  165. parsek_cdp/cdp/preload/events.py +116 -0
  166. parsek_cdp/cdp/preload/functions.py +25 -0
  167. parsek_cdp/cdp/preload/types.py +267 -0
  168. parsek_cdp/cdp/profiler/__init__.py +15 -0
  169. parsek_cdp/cdp/profiler/events.py +64 -0
  170. parsek_cdp/cdp/profiler/functions.py +134 -0
  171. parsek_cdp/cdp/profiler/types.py +105 -0
  172. parsek_cdp/cdp/pwa/__init__.py +15 -0
  173. parsek_cdp/cdp/pwa/events.py +13 -0
  174. parsek_cdp/cdp/pwa/functions.py +196 -0
  175. parsek_cdp/cdp/pwa/types.py +45 -0
  176. parsek_cdp/cdp/runtime/__init__.py +15 -0
  177. parsek_cdp/cdp/runtime/events.py +123 -0
  178. parsek_cdp/cdp/runtime/functions.py +552 -0
  179. parsek_cdp/cdp/runtime/types.py +319 -0
  180. parsek_cdp/cdp/schema/__init__.py +15 -0
  181. parsek_cdp/cdp/schema/events.py +13 -0
  182. parsek_cdp/cdp/schema/functions.py +32 -0
  183. parsek_cdp/cdp/schema/types.py +22 -0
  184. parsek_cdp/cdp/security/__init__.py +15 -0
  185. parsek_cdp/cdp/security/events.py +64 -0
  186. parsek_cdp/cdp/security/functions.py +66 -0
  187. parsek_cdp/cdp/security/types.py +168 -0
  188. parsek_cdp/cdp/serviceworker/__init__.py +15 -0
  189. parsek_cdp/cdp/serviceworker/events.py +43 -0
  190. parsek_cdp/cdp/serviceworker/functions.py +115 -0
  191. parsek_cdp/cdp/serviceworker/types.py +95 -0
  192. parsek_cdp/cdp/storage/__init__.py +15 -0
  193. parsek_cdp/cdp/storage/events.py +288 -0
  194. parsek_cdp/cdp/storage/functions.py +571 -0
  195. parsek_cdp/cdp/storage/types.py +656 -0
  196. parsek_cdp/cdp/systeminfo/__init__.py +15 -0
  197. parsek_cdp/cdp/systeminfo/events.py +13 -0
  198. parsek_cdp/cdp/systeminfo/functions.py +75 -0
  199. parsek_cdp/cdp/systeminfo/types.py +132 -0
  200. parsek_cdp/cdp/target/__init__.py +15 -0
  201. parsek_cdp/cdp/target/events.py +109 -0
  202. parsek_cdp/cdp/target/functions.py +424 -0
  203. parsek_cdp/cdp/target/types.py +83 -0
  204. parsek_cdp/cdp/tethering/__init__.py +15 -0
  205. parsek_cdp/cdp/tethering/events.py +22 -0
  206. parsek_cdp/cdp/tethering/functions.py +35 -0
  207. parsek_cdp/cdp/tethering/types.py +10 -0
  208. parsek_cdp/cdp/tracing/__init__.py +15 -0
  209. parsek_cdp/cdp/tracing/events.py +61 -0
  210. parsek_cdp/cdp/tracing/functions.py +119 -0
  211. parsek_cdp/cdp/tracing/types.py +81 -0
  212. parsek_cdp/cdp/webaudio/__init__.py +15 -0
  213. parsek_cdp/cdp/webaudio/events.py +184 -0
  214. parsek_cdp/cdp/webaudio/functions.py +51 -0
  215. parsek_cdp/cdp/webaudio/types.py +155 -0
  216. parsek_cdp/cdp/webauthn/__init__.py +15 -0
  217. parsek_cdp/cdp/webauthn/events.py +69 -0
  218. parsek_cdp/cdp/webauthn/functions.py +214 -0
  219. parsek_cdp/cdp/webauthn/types.py +96 -0
  220. parsek_cdp/core/__init__.py +18 -0
  221. parsek_cdp/core/browser.py +240 -0
  222. parsek_cdp/core/browser_context.py +58 -0
  223. parsek_cdp/core/element.py +405 -0
  224. parsek_cdp/core/feature.py +376 -0
  225. parsek_cdp/core/frame.py +351 -0
  226. parsek_cdp/core/pagable.py +175 -0
  227. parsek_cdp/core/page.py +163 -0
  228. parsek_cdp/core/target.py +490 -0
  229. parsek_cdp/features/__init__.py +14 -0
  230. parsek_cdp/features/request_listener/__init__.py +256 -0
  231. parsek_cdp/features/request_listener/events.py +48 -0
  232. parsek_cdp/features/request_listener/types.py +235 -0
  233. parsek_cdp/generate.py +642 -0
  234. parsek_cdp/parsek/__init__.py +18 -0
  235. parsek_cdp/parsek/events.py +38 -0
  236. parsek_cdp/parsek/types.py +36 -0
  237. parsek_cdp/py.typed +0 -0
  238. parsek_cdp-0.1.0.dist-info/METADATA +277 -0
  239. parsek_cdp-0.1.0.dist-info/RECORD +242 -0
  240. parsek_cdp-0.1.0.dist-info/WHEEL +5 -0
  241. parsek_cdp-0.1.0.dist-info/licenses/LICENSE +201 -0
  242. parsek_cdp-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,361 @@
1
+ """Commands for the Input 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 .types import (
11
+ DragData,
12
+ GestureSourceType,
13
+ MouseButton,
14
+ TimeSinceEpoch,
15
+ TouchPoint,
16
+ )
17
+
18
+ class Input:
19
+ """Commands of the Input domain, bound to a target."""
20
+
21
+ def __init__(self, target: Any) -> None:
22
+ self._target = target
23
+
24
+
25
+ async def dispatch_drag_event(self, *, type_: Literal['dragEnter', 'dragOver', 'drop', 'dragCancel'], x: float, y: float, data: DragData, modifiers: Optional[int] = None) -> None:
26
+ """
27
+ Dispatches a drag event into the page.
28
+ :param type_: Type of the drag event.
29
+ :param x: X coordinate of the event relative to the main frame's viewport in CSS pixels.
30
+ :param y: Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
31
+ the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
32
+ :param data:
33
+ :param modifiers: Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
34
+ (default: 0).
35
+ """
36
+ _params: Dict[str, Any] = {}
37
+ _params['type'] = encode(FieldMeta('', '', False, 'primitive'), type_)
38
+ _params['x'] = encode(FieldMeta('', '', False, 'primitive'), x)
39
+ _params['y'] = encode(FieldMeta('', '', False, 'primitive'), y)
40
+ _params['data'] = encode(FieldMeta('', '', False, 'object', ref='Input.DragData'), data)
41
+ if modifiers is not None:
42
+ _params['modifiers'] = encode(FieldMeta('', '', False, 'primitive'), modifiers)
43
+ _result = await self._target.send('Input.dispatchDragEvent', _params)
44
+ return None
45
+
46
+ async def dispatch_key_event(self, *, type_: Literal['keyDown', 'keyUp', 'rawKeyDown', 'char'], modifiers: Optional[int] = None, timestamp: Optional[TimeSinceEpoch] = None, text: Optional[str] = None, unmodified_text: Optional[str] = None, key_identifier: Optional[str] = None, code: Optional[str] = None, key: Optional[str] = None, windows_virtual_key_code: Optional[int] = None, native_virtual_key_code: Optional[int] = None, auto_repeat: Optional[bool] = None, is_keypad: Optional[bool] = None, is_system_key: Optional[bool] = None, location: Optional[int] = None, commands: Optional[List[str]] = None) -> None:
47
+ """
48
+ Dispatches a key event to the page.
49
+ :param type_: Type of the key event.
50
+ :param modifiers: Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
51
+ (default: 0).
52
+ :param timestamp: Time at which the event occurred.
53
+ :param text: Text as generated by processing a virtual key code with a keyboard layout. Not needed for
54
+ for `keyUp` and `rawKeyDown` events (default: "")
55
+ :param unmodified_text: Text that would have been generated by the keyboard if no modifiers were pressed (except for
56
+ shift). Useful for shortcut (accelerator) key handling (default: "").
57
+ :param key_identifier: Unique key identifier (e.g., 'U+0041') (default: "").
58
+ :param code: Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
59
+ :param key: Unique DOM defined string value describing the meaning of the key in the context of active
60
+ modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
61
+ :param windows_virtual_key_code: Windows virtual key code (default: 0).
62
+ :param native_virtual_key_code: Native virtual key code (default: 0).
63
+ :param auto_repeat: Whether the event was generated from auto repeat (default: false).
64
+ :param is_keypad: Whether the event was generated from the keypad (default: false).
65
+ :param is_system_key: Whether the event was a system key event (default: false).
66
+ :param location: Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:
67
+ 0).
68
+ :param commands: Editing commands to send with the key event (e.g., 'selectAll') (default: []).
69
+ These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.
70
+ See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
71
+ """
72
+ _params: Dict[str, Any] = {}
73
+ _params['type'] = encode(FieldMeta('', '', False, 'primitive'), type_)
74
+ if modifiers is not None:
75
+ _params['modifiers'] = encode(FieldMeta('', '', False, 'primitive'), modifiers)
76
+ if timestamp is not None:
77
+ _params['timestamp'] = encode(FieldMeta('', '', False, 'primitive'), timestamp)
78
+ if text is not None:
79
+ _params['text'] = encode(FieldMeta('', '', False, 'primitive'), text)
80
+ if unmodified_text is not None:
81
+ _params['unmodifiedText'] = encode(FieldMeta('', '', False, 'primitive'), unmodified_text)
82
+ if key_identifier is not None:
83
+ _params['keyIdentifier'] = encode(FieldMeta('', '', False, 'primitive'), key_identifier)
84
+ if code is not None:
85
+ _params['code'] = encode(FieldMeta('', '', False, 'primitive'), code)
86
+ if key is not None:
87
+ _params['key'] = encode(FieldMeta('', '', False, 'primitive'), key)
88
+ if windows_virtual_key_code is not None:
89
+ _params['windowsVirtualKeyCode'] = encode(FieldMeta('', '', False, 'primitive'), windows_virtual_key_code)
90
+ if native_virtual_key_code is not None:
91
+ _params['nativeVirtualKeyCode'] = encode(FieldMeta('', '', False, 'primitive'), native_virtual_key_code)
92
+ if auto_repeat is not None:
93
+ _params['autoRepeat'] = encode(FieldMeta('', '', False, 'primitive'), auto_repeat)
94
+ if is_keypad is not None:
95
+ _params['isKeypad'] = encode(FieldMeta('', '', False, 'primitive'), is_keypad)
96
+ if is_system_key is not None:
97
+ _params['isSystemKey'] = encode(FieldMeta('', '', False, 'primitive'), is_system_key)
98
+ if location is not None:
99
+ _params['location'] = encode(FieldMeta('', '', False, 'primitive'), location)
100
+ if commands is not None:
101
+ _params['commands'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'primitive')), commands)
102
+ _result = await self._target.send('Input.dispatchKeyEvent', _params)
103
+ return None
104
+
105
+ async def insert_text(self, *, text: str) -> None:
106
+ """
107
+ This method emulates inserting text that doesn't come from a key press,
108
+ for example an emoji keyboard or an IME.
109
+ :param text: The text to insert.
110
+ """
111
+ _params: Dict[str, Any] = {}
112
+ _params['text'] = encode(FieldMeta('', '', False, 'primitive'), text)
113
+ _result = await self._target.send('Input.insertText', _params)
114
+ return None
115
+
116
+ async def ime_set_composition(self, *, text: str, selection_start: int, selection_end: int, replacement_start: Optional[int] = None, replacement_end: Optional[int] = None) -> None:
117
+ """
118
+ This method sets the current candidate text for IME.
119
+ Use imeCommitComposition to commit the final text.
120
+ Use imeSetComposition with empty string as text to cancel composition.
121
+ :param text: The text to insert
122
+ :param selection_start: selection start
123
+ :param selection_end: selection end
124
+ :param replacement_start: replacement start
125
+ :param replacement_end: replacement end
126
+ """
127
+ _params: Dict[str, Any] = {}
128
+ _params['text'] = encode(FieldMeta('', '', False, 'primitive'), text)
129
+ _params['selectionStart'] = encode(FieldMeta('', '', False, 'primitive'), selection_start)
130
+ _params['selectionEnd'] = encode(FieldMeta('', '', False, 'primitive'), selection_end)
131
+ if replacement_start is not None:
132
+ _params['replacementStart'] = encode(FieldMeta('', '', False, 'primitive'), replacement_start)
133
+ if replacement_end is not None:
134
+ _params['replacementEnd'] = encode(FieldMeta('', '', False, 'primitive'), replacement_end)
135
+ _result = await self._target.send('Input.imeSetComposition', _params)
136
+ return None
137
+
138
+ async def dispatch_mouse_event(self, *, type_: Literal['mousePressed', 'mouseReleased', 'mouseMoved', 'mouseWheel'], x: float, y: float, modifiers: Optional[int] = None, timestamp: Optional[TimeSinceEpoch] = None, button: Optional[MouseButton] = None, buttons: Optional[int] = None, click_count: Optional[int] = None, force: Optional[float] = None, tangential_pressure: Optional[float] = None, tilt_x: Optional[float] = None, tilt_y: Optional[float] = None, twist: Optional[int] = None, delta_x: Optional[float] = None, delta_y: Optional[float] = None, pointer_type: Optional[Literal['mouse', 'pen']] = None) -> None:
139
+ """
140
+ Dispatches a mouse event to the page.
141
+ :param type_: Type of the mouse event.
142
+ :param x: X coordinate of the event relative to the main frame's viewport in CSS pixels.
143
+ :param y: Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
144
+ the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
145
+ :param modifiers: Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
146
+ (default: 0).
147
+ :param timestamp: Time at which the event occurred.
148
+ :param button: Mouse button (default: "none").
149
+ :param buttons: A number indicating which buttons are pressed on the mouse when a mouse event is triggered.
150
+ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
151
+ :param click_count: Number of times the mouse button was clicked (default: 0).
152
+ :param force: The normalized pressure, which has a range of [0,1] (default: 0).
153
+ :param tangential_pressure: The normalized tangential pressure, which has a range of [-1,1] (default: 0).
154
+ :param tilt_x: 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).
155
+ :param tilt_y: 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).
156
+ :param twist: The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
157
+ :param delta_x: X delta in CSS pixels for mouse wheel event (default: 0).
158
+ :param delta_y: Y delta in CSS pixels for mouse wheel event (default: 0).
159
+ :param pointer_type: Pointer type (default: "mouse").
160
+ """
161
+ _params: Dict[str, Any] = {}
162
+ _params['type'] = encode(FieldMeta('', '', False, 'primitive'), type_)
163
+ _params['x'] = encode(FieldMeta('', '', False, 'primitive'), x)
164
+ _params['y'] = encode(FieldMeta('', '', False, 'primitive'), y)
165
+ if modifiers is not None:
166
+ _params['modifiers'] = encode(FieldMeta('', '', False, 'primitive'), modifiers)
167
+ if timestamp is not None:
168
+ _params['timestamp'] = encode(FieldMeta('', '', False, 'primitive'), timestamp)
169
+ if button is not None:
170
+ _params['button'] = encode(FieldMeta('', '', False, 'enum', ref='Input.MouseButton'), button)
171
+ if buttons is not None:
172
+ _params['buttons'] = encode(FieldMeta('', '', False, 'primitive'), buttons)
173
+ if click_count is not None:
174
+ _params['clickCount'] = encode(FieldMeta('', '', False, 'primitive'), click_count)
175
+ if force is not None:
176
+ _params['force'] = encode(FieldMeta('', '', False, 'primitive'), force)
177
+ if tangential_pressure is not None:
178
+ _params['tangentialPressure'] = encode(FieldMeta('', '', False, 'primitive'), tangential_pressure)
179
+ if tilt_x is not None:
180
+ _params['tiltX'] = encode(FieldMeta('', '', False, 'primitive'), tilt_x)
181
+ if tilt_y is not None:
182
+ _params['tiltY'] = encode(FieldMeta('', '', False, 'primitive'), tilt_y)
183
+ if twist is not None:
184
+ _params['twist'] = encode(FieldMeta('', '', False, 'primitive'), twist)
185
+ if delta_x is not None:
186
+ _params['deltaX'] = encode(FieldMeta('', '', False, 'primitive'), delta_x)
187
+ if delta_y is not None:
188
+ _params['deltaY'] = encode(FieldMeta('', '', False, 'primitive'), delta_y)
189
+ if pointer_type is not None:
190
+ _params['pointerType'] = encode(FieldMeta('', '', False, 'primitive'), pointer_type)
191
+ _result = await self._target.send('Input.dispatchMouseEvent', _params)
192
+ return None
193
+
194
+ async def dispatch_touch_event(self, *, type_: Literal['touchStart', 'touchEnd', 'touchMove', 'touchCancel'], touch_points: List[TouchPoint], modifiers: Optional[int] = None, timestamp: Optional[TimeSinceEpoch] = None) -> None:
195
+ """
196
+ Dispatches a touch event to the page.
197
+ :param type_: Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while
198
+ TouchStart and TouchMove must contains at least one.
199
+ :param touch_points: Active touch points on the touch device. One event per any changed point (compared to
200
+ previous touch event in a sequence) is generated, emulating pressing/moving/releasing points
201
+ one by one.
202
+ :param modifiers: Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
203
+ (default: 0).
204
+ :param timestamp: Time at which the event occurred.
205
+ """
206
+ _params: Dict[str, Any] = {}
207
+ _params['type'] = encode(FieldMeta('', '', False, 'primitive'), type_)
208
+ _params['touchPoints'] = encode(FieldMeta('', '', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Input.TouchPoint')), touch_points)
209
+ if modifiers is not None:
210
+ _params['modifiers'] = encode(FieldMeta('', '', False, 'primitive'), modifiers)
211
+ if timestamp is not None:
212
+ _params['timestamp'] = encode(FieldMeta('', '', False, 'primitive'), timestamp)
213
+ _result = await self._target.send('Input.dispatchTouchEvent', _params)
214
+ return None
215
+
216
+ async def cancel_dragging(self) -> None:
217
+ """Cancels any active dragging in the page."""
218
+ _params: Dict[str, Any] = {}
219
+ _result = await self._target.send('Input.cancelDragging', _params)
220
+ return None
221
+
222
+ async def emulate_touch_from_mouse_event(self, *, type_: Literal['mousePressed', 'mouseReleased', 'mouseMoved', 'mouseWheel'], x: int, y: int, button: MouseButton, timestamp: Optional[TimeSinceEpoch] = None, delta_x: Optional[float] = None, delta_y: Optional[float] = None, modifiers: Optional[int] = None, click_count: Optional[int] = None) -> None:
223
+ """
224
+ Emulates touch event from the mouse event parameters.
225
+ :param type_: Type of the mouse event.
226
+ :param x: X coordinate of the mouse pointer in DIP.
227
+ :param y: Y coordinate of the mouse pointer in DIP.
228
+ :param button: Mouse button. Only "none", "left", "right" are supported.
229
+ :param timestamp: Time at which the event occurred (default: current time).
230
+ :param delta_x: X delta in DIP for mouse wheel event (default: 0).
231
+ :param delta_y: Y delta in DIP for mouse wheel event (default: 0).
232
+ :param modifiers: Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
233
+ (default: 0).
234
+ :param click_count: Number of times the mouse button was clicked (default: 0).
235
+ """
236
+ _params: Dict[str, Any] = {}
237
+ _params['type'] = encode(FieldMeta('', '', False, 'primitive'), type_)
238
+ _params['x'] = encode(FieldMeta('', '', False, 'primitive'), x)
239
+ _params['y'] = encode(FieldMeta('', '', False, 'primitive'), y)
240
+ _params['button'] = encode(FieldMeta('', '', False, 'enum', ref='Input.MouseButton'), button)
241
+ if timestamp is not None:
242
+ _params['timestamp'] = encode(FieldMeta('', '', False, 'primitive'), timestamp)
243
+ if delta_x is not None:
244
+ _params['deltaX'] = encode(FieldMeta('', '', False, 'primitive'), delta_x)
245
+ if delta_y is not None:
246
+ _params['deltaY'] = encode(FieldMeta('', '', False, 'primitive'), delta_y)
247
+ if modifiers is not None:
248
+ _params['modifiers'] = encode(FieldMeta('', '', False, 'primitive'), modifiers)
249
+ if click_count is not None:
250
+ _params['clickCount'] = encode(FieldMeta('', '', False, 'primitive'), click_count)
251
+ _result = await self._target.send('Input.emulateTouchFromMouseEvent', _params)
252
+ return None
253
+
254
+ async def set_ignore_input_events(self, *, ignore: bool) -> None:
255
+ """
256
+ Ignores input events (useful while auditing page).
257
+ :param ignore: Ignores input events processing when set to true.
258
+ """
259
+ _params: Dict[str, Any] = {}
260
+ _params['ignore'] = encode(FieldMeta('', '', False, 'primitive'), ignore)
261
+ _result = await self._target.send('Input.setIgnoreInputEvents', _params)
262
+ return None
263
+
264
+ async def set_intercept_drags(self, *, enabled: bool) -> None:
265
+ """
266
+ Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events.
267
+ Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.
268
+ :param enabled:
269
+ """
270
+ _params: Dict[str, Any] = {}
271
+ _params['enabled'] = encode(FieldMeta('', '', False, 'primitive'), enabled)
272
+ _result = await self._target.send('Input.setInterceptDrags', _params)
273
+ return None
274
+
275
+ async def synthesize_pinch_gesture(self, *, x: float, y: float, scale_factor: float, relative_speed: Optional[int] = None, gesture_source_type: Optional[GestureSourceType] = None) -> None:
276
+ """
277
+ Synthesizes a pinch gesture over a time period by issuing appropriate touch events.
278
+ :param x: X coordinate of the start of the gesture in CSS pixels.
279
+ :param y: Y coordinate of the start of the gesture in CSS pixels.
280
+ :param scale_factor: Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
281
+ :param relative_speed: Relative pointer speed in pixels per second (default: 800).
282
+ :param gesture_source_type: Which type of input events to be generated (default: 'default', which queries the platform
283
+ for the preferred input type).
284
+ """
285
+ _params: Dict[str, Any] = {}
286
+ _params['x'] = encode(FieldMeta('', '', False, 'primitive'), x)
287
+ _params['y'] = encode(FieldMeta('', '', False, 'primitive'), y)
288
+ _params['scaleFactor'] = encode(FieldMeta('', '', False, 'primitive'), scale_factor)
289
+ if relative_speed is not None:
290
+ _params['relativeSpeed'] = encode(FieldMeta('', '', False, 'primitive'), relative_speed)
291
+ if gesture_source_type is not None:
292
+ _params['gestureSourceType'] = encode(FieldMeta('', '', False, 'enum', ref='Input.GestureSourceType'), gesture_source_type)
293
+ _result = await self._target.send('Input.synthesizePinchGesture', _params)
294
+ return None
295
+
296
+ async def synthesize_scroll_gesture(self, *, x: float, y: float, x_distance: Optional[float] = None, y_distance: Optional[float] = None, x_overscroll: Optional[float] = None, y_overscroll: Optional[float] = None, prevent_fling: Optional[bool] = None, speed: Optional[int] = None, gesture_source_type: Optional[GestureSourceType] = None, repeat_count: Optional[int] = None, repeat_delay_ms: Optional[int] = None, interaction_marker_name: Optional[str] = None) -> None:
297
+ """
298
+ Synthesizes a scroll gesture over a time period by issuing appropriate touch events.
299
+ :param x: X coordinate of the start of the gesture in CSS pixels.
300
+ :param y: Y coordinate of the start of the gesture in CSS pixels.
301
+ :param x_distance: The distance to scroll along the X axis (positive to scroll left).
302
+ :param y_distance: The distance to scroll along the Y axis (positive to scroll up).
303
+ :param x_overscroll: The number of additional pixels to scroll back along the X axis, in addition to the given
304
+ distance.
305
+ :param y_overscroll: The number of additional pixels to scroll back along the Y axis, in addition to the given
306
+ distance.
307
+ :param prevent_fling: Prevent fling (default: true).
308
+ :param speed: Swipe speed in pixels per second (default: 800).
309
+ :param gesture_source_type: Which type of input events to be generated (default: 'default', which queries the platform
310
+ for the preferred input type).
311
+ :param repeat_count: The number of times to repeat the gesture (default: 0).
312
+ :param repeat_delay_ms: The number of milliseconds delay between each repeat. (default: 250).
313
+ :param interaction_marker_name: The name of the interaction markers to generate, if not empty (default: "").
314
+ """
315
+ _params: Dict[str, Any] = {}
316
+ _params['x'] = encode(FieldMeta('', '', False, 'primitive'), x)
317
+ _params['y'] = encode(FieldMeta('', '', False, 'primitive'), y)
318
+ if x_distance is not None:
319
+ _params['xDistance'] = encode(FieldMeta('', '', False, 'primitive'), x_distance)
320
+ if y_distance is not None:
321
+ _params['yDistance'] = encode(FieldMeta('', '', False, 'primitive'), y_distance)
322
+ if x_overscroll is not None:
323
+ _params['xOverscroll'] = encode(FieldMeta('', '', False, 'primitive'), x_overscroll)
324
+ if y_overscroll is not None:
325
+ _params['yOverscroll'] = encode(FieldMeta('', '', False, 'primitive'), y_overscroll)
326
+ if prevent_fling is not None:
327
+ _params['preventFling'] = encode(FieldMeta('', '', False, 'primitive'), prevent_fling)
328
+ if speed is not None:
329
+ _params['speed'] = encode(FieldMeta('', '', False, 'primitive'), speed)
330
+ if gesture_source_type is not None:
331
+ _params['gestureSourceType'] = encode(FieldMeta('', '', False, 'enum', ref='Input.GestureSourceType'), gesture_source_type)
332
+ if repeat_count is not None:
333
+ _params['repeatCount'] = encode(FieldMeta('', '', False, 'primitive'), repeat_count)
334
+ if repeat_delay_ms is not None:
335
+ _params['repeatDelayMs'] = encode(FieldMeta('', '', False, 'primitive'), repeat_delay_ms)
336
+ if interaction_marker_name is not None:
337
+ _params['interactionMarkerName'] = encode(FieldMeta('', '', False, 'primitive'), interaction_marker_name)
338
+ _result = await self._target.send('Input.synthesizeScrollGesture', _params)
339
+ return None
340
+
341
+ async def synthesize_tap_gesture(self, *, x: float, y: float, duration: Optional[int] = None, tap_count: Optional[int] = None, gesture_source_type: Optional[GestureSourceType] = None) -> None:
342
+ """
343
+ Synthesizes a tap gesture over a time period by issuing appropriate touch events.
344
+ :param x: X coordinate of the start of the gesture in CSS pixels.
345
+ :param y: Y coordinate of the start of the gesture in CSS pixels.
346
+ :param duration: Duration between touchdown and touchup events in ms (default: 50).
347
+ :param tap_count: Number of times to perform the tap (e.g. 2 for double tap, default: 1).
348
+ :param gesture_source_type: Which type of input events to be generated (default: 'default', which queries the platform
349
+ for the preferred input type).
350
+ """
351
+ _params: Dict[str, Any] = {}
352
+ _params['x'] = encode(FieldMeta('', '', False, 'primitive'), x)
353
+ _params['y'] = encode(FieldMeta('', '', False, 'primitive'), y)
354
+ if duration is not None:
355
+ _params['duration'] = encode(FieldMeta('', '', False, 'primitive'), duration)
356
+ if tap_count is not None:
357
+ _params['tapCount'] = encode(FieldMeta('', '', False, 'primitive'), tap_count)
358
+ if gesture_source_type is not None:
359
+ _params['gestureSourceType'] = encode(FieldMeta('', '', False, 'enum', ref='Input.GestureSourceType'), gesture_source_type)
360
+ _result = await self._target.send('Input.synthesizeTapGesture', _params)
361
+ return None
@@ -0,0 +1,87 @@
1
+ """Custom types and enums for the Input domain (generated)."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from enum import Enum
6
+ from typing import Any, ClassVar, Dict, List, Literal, Optional
7
+
8
+ from ..mixins.datatype import DataType, FieldMeta, register
9
+
10
+
11
+ @register("Input.TouchPoint")
12
+ @dataclass
13
+ class TouchPoint(DataType):
14
+ x: float
15
+ y: float
16
+ radius_x: Optional[float] = None
17
+ radius_y: Optional[float] = None
18
+ rotation_angle: Optional[float] = None
19
+ force: Optional[float] = None
20
+ tangential_pressure: Optional[float] = None
21
+ tilt_x: Optional[float] = None
22
+ tilt_y: Optional[float] = None
23
+ twist: Optional[int] = None
24
+ id: Optional[float] = None
25
+ __FIELDS__: ClassVar[tuple] = (
26
+ FieldMeta('x', 'x', False, 'primitive'),
27
+ FieldMeta('y', 'y', False, 'primitive'),
28
+ FieldMeta('radius_x', 'radiusX', True, 'primitive'),
29
+ FieldMeta('radius_y', 'radiusY', True, 'primitive'),
30
+ FieldMeta('rotation_angle', 'rotationAngle', True, 'primitive'),
31
+ FieldMeta('force', 'force', True, 'primitive'),
32
+ FieldMeta('tangential_pressure', 'tangentialPressure', True, 'primitive'),
33
+ FieldMeta('tilt_x', 'tiltX', True, 'primitive'),
34
+ FieldMeta('tilt_y', 'tiltY', True, 'primitive'),
35
+ FieldMeta('twist', 'twist', True, 'primitive'),
36
+ FieldMeta('id', 'id', True, 'primitive'),
37
+ )
38
+
39
+
40
+ @register("Input.GestureSourceType")
41
+ class GestureSourceType(str, Enum):
42
+ DEFAULT = 'default'
43
+ TOUCH = 'touch'
44
+ MOUSE = 'mouse'
45
+
46
+
47
+ @register("Input.MouseButton")
48
+ class MouseButton(str, Enum):
49
+ NONE = 'none'
50
+ LEFT = 'left'
51
+ MIDDLE = 'middle'
52
+ RIGHT = 'right'
53
+ BACK = 'back'
54
+ FORWARD = 'forward'
55
+
56
+
57
+ type TimeSinceEpoch = float # UTC time in seconds, counted from January 1, 1970.
58
+
59
+
60
+ @register("Input.DragDataItem")
61
+ @dataclass
62
+ class DragDataItem(DataType):
63
+ mime_type: str
64
+ data: str
65
+ title: Optional[str] = None
66
+ base_url: Optional[str] = None
67
+ __FIELDS__: ClassVar[tuple] = (
68
+ FieldMeta('mime_type', 'mimeType', False, 'primitive'),
69
+ FieldMeta('data', 'data', False, 'primitive'),
70
+ FieldMeta('title', 'title', True, 'primitive'),
71
+ FieldMeta('base_url', 'baseURL', True, 'primitive'),
72
+ )
73
+
74
+
75
+ @register("Input.DragData")
76
+ @dataclass
77
+ class DragData(DataType):
78
+ items: List[DragDataItem]
79
+ drag_operations_mask: int
80
+ files: Optional[List[str]] = None
81
+ __FIELDS__: ClassVar[tuple] = (
82
+ FieldMeta('items', 'items', False, 'array', inner=FieldMeta('', '', False, 'object', ref='Input.DragDataItem')),
83
+ FieldMeta('drag_operations_mask', 'dragOperationsMask', False, 'primitive'),
84
+ FieldMeta('files', 'files', True, 'array', inner=FieldMeta('', '', False, 'primitive')),
85
+ )
86
+
87
+ __all__ = ["DragData", "DragDataItem", "GestureSourceType", "MouseButton", "TimeSinceEpoch", "TouchPoint"]
@@ -0,0 +1,15 @@
1
+ """The Inspector CDP domain (generated).
2
+
3
+ Importing ``Inspector`` from ``parsek_cdp.cdp`` gives a namespace with this
4
+ domain's events and types as attributes (``Inspector.SomeEvent`` /
5
+ ``Inspector.SomeType``); commands run on a target via ``page.cdp.Inspector``.
6
+ """
7
+ from . import events, functions, types
8
+ from .functions import Inspector
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=(Inspector,)``).
13
+ DOMAIN = "Inspector"
14
+
15
+ __all__ = ["events", "functions", "types", "Inspector", "DOMAIN"]
@@ -0,0 +1,41 @@
1
+ """Events for the Inspector domain (generated)."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from typing import Any, ClassVar, Dict, List, Literal, Optional
6
+
7
+ from ..mixins.datatype import FieldMeta
8
+ from ..mixins.event import Event, register_event
9
+
10
+
11
+ @register_event("Inspector.detached")
12
+ @dataclass
13
+ class Detached(Event):
14
+ """Fired when remote debugging connection is about to be terminated. Contains detach reason."""
15
+ reason: str
16
+ __FIELDS__: ClassVar[tuple] = (
17
+ FieldMeta('reason', 'reason', False, 'primitive'),
18
+ )
19
+
20
+
21
+ @register_event("Inspector.targetCrashed")
22
+ @dataclass
23
+ class TargetCrashed(Event):
24
+ """Fired when debugging target has crashed"""
25
+ __FIELDS__: ClassVar[tuple] = ()
26
+
27
+
28
+ @register_event("Inspector.targetReloadedAfterCrash")
29
+ @dataclass
30
+ class TargetReloadedAfterCrash(Event):
31
+ """Fired when debugging target has reloaded after crash"""
32
+ __FIELDS__: ClassVar[tuple] = ()
33
+
34
+
35
+ @register_event("Inspector.workerScriptLoaded")
36
+ @dataclass
37
+ class WorkerScriptLoaded(Event):
38
+ """Fired on worker targets when main worker script and any imported scripts have been evaluated."""
39
+ __FIELDS__: ClassVar[tuple] = ()
40
+
41
+ __all__ = ["Detached", "TargetCrashed", "TargetReloadedAfterCrash", "WorkerScriptLoaded"]
@@ -0,0 +1,27 @@
1
+ """Commands for the Inspector domain (generated)."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from typing import Any, ClassVar, Dict, List, Literal, Optional
6
+
7
+ from ..mixins.datatype import DataType, FieldMeta, encode
8
+
9
+
10
+ class Inspector:
11
+ """Commands of the Inspector domain, bound to a target."""
12
+
13
+ def __init__(self, target: Any) -> None:
14
+ self._target = target
15
+
16
+
17
+ async def disable(self) -> None:
18
+ """Disables inspector domain notifications."""
19
+ _params: Dict[str, Any] = {}
20
+ _result = await self._target.send('Inspector.disable', _params)
21
+ return None
22
+
23
+ async def enable(self) -> None:
24
+ """Enables inspector domain notifications."""
25
+ _params: Dict[str, Any] = {}
26
+ _result = await self._target.send('Inspector.enable', _params)
27
+ return None
@@ -0,0 +1,10 @@
1
+ """Custom types and enums for the Inspector domain (generated)."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from enum import Enum
6
+ from typing import Any, ClassVar, Dict, List, Literal, Optional
7
+
8
+ from ..mixins.datatype import DataType, FieldMeta, register
9
+
10
+ __all__ = []
@@ -0,0 +1,15 @@
1
+ """The IO CDP domain (generated).
2
+
3
+ Importing ``IO`` from ``parsek_cdp.cdp`` gives a namespace with this
4
+ domain's events and types as attributes (``IO.SomeEvent`` /
5
+ ``IO.SomeType``); commands run on a target via ``page.cdp.IO``.
6
+ """
7
+ from . import events, functions, types
8
+ from .functions import IO
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=(IO,)``).
13
+ DOMAIN = "IO"
14
+
15
+ __all__ = ["events", "functions", "types", "IO", "DOMAIN"]
@@ -0,0 +1,13 @@
1
+ """Events for the IO domain (generated)."""
2
+ from __future__ import annotations
3
+
4
+ from dataclasses import dataclass
5
+ from typing import Any, ClassVar, Dict, List, Literal, Optional
6
+
7
+ from ..mixins.datatype import FieldMeta
8
+ from ..mixins.event import Event, register_event
9
+
10
+
11
+ # This domain defines no events.
12
+
13
+ __all__ = []