chromedeveloperprotocol-client 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 (476) hide show
  1. cdp/__init__.py +4 -0
  2. cdp/domains.py +582 -0
  3. cdp/generator/__init__.py +3 -0
  4. cdp/generator/client_generator.py +246 -0
  5. cdp/generator/constant.py +4 -0
  6. cdp/generator/domain_generator.py +149 -0
  7. cdp/generator/event_generator.py +202 -0
  8. cdp/generator/method_generator.py +215 -0
  9. cdp/generator/service.py +153 -0
  10. cdp/generator/type_generator.py +231 -0
  11. cdp/protocol/__init__.py +0 -0
  12. cdp/protocol/accessibility/__init__.py +0 -0
  13. cdp/protocol/accessibility/events/__init__.py +0 -0
  14. cdp/protocol/accessibility/events/service.py +37 -0
  15. cdp/protocol/accessibility/events/types.py +14 -0
  16. cdp/protocol/accessibility/methods/__init__.py +0 -0
  17. cdp/protocol/accessibility/methods/service.py +109 -0
  18. cdp/protocol/accessibility/methods/types.py +70 -0
  19. cdp/protocol/accessibility/service.py +21 -0
  20. cdp/protocol/accessibility/types.py +89 -0
  21. cdp/protocol/animation/__init__.py +0 -0
  22. cdp/protocol/animation/events/__init__.py +0 -0
  23. cdp/protocol/animation/events/service.py +53 -0
  24. cdp/protocol/animation/events/types.py +20 -0
  25. cdp/protocol/animation/methods/__init__.py +0 -0
  26. cdp/protocol/animation/methods/service.py +131 -0
  27. cdp/protocol/animation/methods/types.py +52 -0
  28. cdp/protocol/animation/service.py +21 -0
  29. cdp/protocol/animation/types.py +79 -0
  30. cdp/protocol/audits/__init__.py +0 -0
  31. cdp/protocol/audits/events/__init__.py +0 -0
  32. cdp/protocol/audits/events/service.py +29 -0
  33. cdp/protocol/audits/events/types.py +10 -0
  34. cdp/protocol/audits/methods/__init__.py +0 -0
  35. cdp/protocol/audits/methods/service.py +76 -0
  36. cdp/protocol/audits/methods/types.py +36 -0
  37. cdp/protocol/audits/service.py +21 -0
  38. cdp/protocol/audits/types.py +293 -0
  39. cdp/protocol/autofill/__init__.py +0 -0
  40. cdp/protocol/autofill/events/__init__.py +0 -0
  41. cdp/protocol/autofill/events/service.py +29 -0
  42. cdp/protocol/autofill/events/types.py +14 -0
  43. cdp/protocol/autofill/methods/__init__.py +0 -0
  44. cdp/protocol/autofill/methods/service.py +65 -0
  45. cdp/protocol/autofill/methods/types.py +22 -0
  46. cdp/protocol/autofill/service.py +21 -0
  47. cdp/protocol/autofill/types.py +54 -0
  48. cdp/protocol/background_service/__init__.py +0 -0
  49. cdp/protocol/background_service/events/__init__.py +0 -0
  50. cdp/protocol/background_service/events/service.py +37 -0
  51. cdp/protocol/background_service/events/types.py +14 -0
  52. cdp/protocol/background_service/methods/__init__.py +0 -0
  53. cdp/protocol/background_service/methods/service.py +65 -0
  54. cdp/protocol/background_service/methods/types.py +17 -0
  55. cdp/protocol/background_service/service.py +21 -0
  56. cdp/protocol/background_service/types.py +32 -0
  57. cdp/protocol/bluetooth_emulation/__init__.py +0 -0
  58. cdp/protocol/bluetooth_emulation/events/__init__.py +0 -0
  59. cdp/protocol/bluetooth_emulation/events/service.py +45 -0
  60. cdp/protocol/bluetooth_emulation/events/types.py +23 -0
  61. cdp/protocol/bluetooth_emulation/methods/__init__.py +0 -0
  62. cdp/protocol/bluetooth_emulation/methods/service.py +186 -0
  63. cdp/protocol/bluetooth_emulation/methods/types.py +81 -0
  64. cdp/protocol/bluetooth_emulation/service.py +21 -0
  65. cdp/protocol/bluetooth_emulation/types.py +45 -0
  66. cdp/protocol/browser/__init__.py +0 -0
  67. cdp/protocol/browser/events/__init__.py +0 -0
  68. cdp/protocol/browser/events/service.py +37 -0
  69. cdp/protocol/browser/events/types.py +28 -0
  70. cdp/protocol/browser/methods/__init__.py +0 -0
  71. cdp/protocol/browser/methods/service.py +230 -0
  72. cdp/protocol/browser/methods/types.py +126 -0
  73. cdp/protocol/browser/service.py +21 -0
  74. cdp/protocol/browser/types.py +57 -0
  75. cdp/protocol/cache_storage/__init__.py +0 -0
  76. cdp/protocol/cache_storage/events/__init__.py +0 -0
  77. cdp/protocol/cache_storage/events/service.py +20 -0
  78. cdp/protocol/cache_storage/events/types.py +3 -0
  79. cdp/protocol/cache_storage/methods/__init__.py +0 -0
  80. cdp/protocol/cache_storage/methods/service.py +76 -0
  81. cdp/protocol/cache_storage/methods/types.py +57 -0
  82. cdp/protocol/cache_storage/service.py +21 -0
  83. cdp/protocol/cache_storage/types.py +49 -0
  84. cdp/protocol/cast/__init__.py +0 -0
  85. cdp/protocol/cast/events/__init__.py +0 -0
  86. cdp/protocol/cast/events/service.py +37 -0
  87. cdp/protocol/cast/events/types.py +12 -0
  88. cdp/protocol/cast/methods/__init__.py +0 -0
  89. cdp/protocol/cast/methods/service.py +87 -0
  90. cdp/protocol/cast/methods/types.py +15 -0
  91. cdp/protocol/cast/service.py +21 -0
  92. cdp/protocol/cast/types.py +9 -0
  93. cdp/protocol/css/__init__.py +0 -0
  94. cdp/protocol/css/events/__init__.py +0 -0
  95. cdp/protocol/css/events/service.py +69 -0
  96. cdp/protocol/css/events/types.py +27 -0
  97. cdp/protocol/css/methods/__init__.py +0 -0
  98. cdp/protocol/css/methods/service.py +428 -0
  99. cdp/protocol/css/methods/types.py +278 -0
  100. cdp/protocol/css/service.py +21 -0
  101. cdp/protocol/css/types.py +451 -0
  102. cdp/protocol/debugger/__init__.py +0 -0
  103. cdp/protocol/debugger/events/__init__.py +0 -0
  104. cdp/protocol/debugger/events/service.py +53 -0
  105. cdp/protocol/debugger/events/types.py +112 -0
  106. cdp/protocol/debugger/methods/__init__.py +0 -0
  107. cdp/protocol/debugger/methods/service.py +362 -0
  108. cdp/protocol/debugger/methods/types.py +250 -0
  109. cdp/protocol/debugger/service.py +21 -0
  110. cdp/protocol/debugger/types.py +91 -0
  111. cdp/protocol/device_access/__init__.py +0 -0
  112. cdp/protocol/device_access/events/__init__.py +0 -0
  113. cdp/protocol/device_access/events/service.py +29 -0
  114. cdp/protocol/device_access/events/types.py +12 -0
  115. cdp/protocol/device_access/methods/__init__.py +0 -0
  116. cdp/protocol/device_access/methods/service.py +65 -0
  117. cdp/protocol/device_access/methods/types.py +16 -0
  118. cdp/protocol/device_access/service.py +21 -0
  119. cdp/protocol/device_access/types.py +13 -0
  120. cdp/protocol/device_orientation/__init__.py +0 -0
  121. cdp/protocol/device_orientation/events/__init__.py +0 -0
  122. cdp/protocol/device_orientation/events/service.py +20 -0
  123. cdp/protocol/device_orientation/events/types.py +3 -0
  124. cdp/protocol/device_orientation/methods/__init__.py +0 -0
  125. cdp/protocol/device_orientation/methods/service.py +43 -0
  126. cdp/protocol/device_orientation/methods/types.py +12 -0
  127. cdp/protocol/device_orientation/service.py +21 -0
  128. cdp/protocol/device_orientation/types.py +3 -0
  129. cdp/protocol/dom/__init__.py +0 -0
  130. cdp/protocol/dom/events/__init__.py +0 -0
  131. cdp/protocol/dom/events/service.py +165 -0
  132. cdp/protocol/dom/events/types.py +97 -0
  133. cdp/protocol/dom/methods/__init__.py +0 -0
  134. cdp/protocol/dom/methods/service.py +593 -0
  135. cdp/protocol/dom/methods/types.py +384 -0
  136. cdp/protocol/dom/service.py +21 -0
  137. cdp/protocol/dom/types.py +151 -0
  138. cdp/protocol/dom_debugger/__init__.py +0 -0
  139. cdp/protocol/dom_debugger/events/__init__.py +0 -0
  140. cdp/protocol/dom_debugger/events/service.py +20 -0
  141. cdp/protocol/dom_debugger/events/types.py +3 -0
  142. cdp/protocol/dom_debugger/methods/__init__.py +0 -0
  143. cdp/protocol/dom_debugger/methods/service.py +109 -0
  144. cdp/protocol/dom_debugger/methods/types.py +51 -0
  145. cdp/protocol/dom_debugger/service.py +21 -0
  146. cdp/protocol/dom_debugger/types.py +36 -0
  147. cdp/protocol/dom_snapshot/__init__.py +0 -0
  148. cdp/protocol/dom_snapshot/events/__init__.py +0 -0
  149. cdp/protocol/dom_snapshot/events/service.py +20 -0
  150. cdp/protocol/dom_snapshot/events/types.py +3 -0
  151. cdp/protocol/dom_snapshot/methods/__init__.py +0 -0
  152. cdp/protocol/dom_snapshot/methods/service.py +54 -0
  153. cdp/protocol/dom_snapshot/methods/types.py +28 -0
  154. cdp/protocol/dom_snapshot/service.py +21 -0
  155. cdp/protocol/dom_snapshot/types.py +220 -0
  156. cdp/protocol/dom_storage/__init__.py +0 -0
  157. cdp/protocol/dom_storage/events/__init__.py +0 -0
  158. cdp/protocol/dom_storage/events/service.py +53 -0
  159. cdp/protocol/dom_storage/events/types.py +22 -0
  160. cdp/protocol/dom_storage/methods/__init__.py +0 -0
  161. cdp/protocol/dom_storage/methods/service.py +87 -0
  162. cdp/protocol/dom_storage/methods/types.py +27 -0
  163. cdp/protocol/dom_storage/service.py +21 -0
  164. cdp/protocol/dom_storage/types.py +15 -0
  165. cdp/protocol/emulation/__init__.py +0 -0
  166. cdp/protocol/emulation/events/__init__.py +0 -0
  167. cdp/protocol/emulation/events/service.py +29 -0
  168. cdp/protocol/emulation/events/types.py +6 -0
  169. cdp/protocol/emulation/methods/__init__.py +0 -0
  170. cdp/protocol/emulation/methods/service.py +494 -0
  171. cdp/protocol/emulation/methods/types.py +261 -0
  172. cdp/protocol/emulation/service.py +21 -0
  173. cdp/protocol/emulation/types.py +132 -0
  174. cdp/protocol/event_breakpoints/__init__.py +0 -0
  175. cdp/protocol/event_breakpoints/events/__init__.py +0 -0
  176. cdp/protocol/event_breakpoints/events/service.py +20 -0
  177. cdp/protocol/event_breakpoints/events/types.py +3 -0
  178. cdp/protocol/event_breakpoints/methods/__init__.py +0 -0
  179. cdp/protocol/event_breakpoints/methods/service.py +54 -0
  180. cdp/protocol/event_breakpoints/methods/types.py +10 -0
  181. cdp/protocol/event_breakpoints/service.py +21 -0
  182. cdp/protocol/event_breakpoints/types.py +3 -0
  183. cdp/protocol/extensions/__init__.py +0 -0
  184. cdp/protocol/extensions/events/__init__.py +0 -0
  185. cdp/protocol/extensions/events/service.py +20 -0
  186. cdp/protocol/extensions/events/types.py +3 -0
  187. cdp/protocol/extensions/methods/__init__.py +0 -0
  188. cdp/protocol/extensions/methods/service.py +87 -0
  189. cdp/protocol/extensions/methods/types.py +46 -0
  190. cdp/protocol/extensions/service.py +21 -0
  191. cdp/protocol/extensions/types.py +6 -0
  192. cdp/protocol/fed_cm/__init__.py +0 -0
  193. cdp/protocol/fed_cm/events/__init__.py +0 -0
  194. cdp/protocol/fed_cm/events/service.py +37 -0
  195. cdp/protocol/fed_cm/events/types.py +18 -0
  196. cdp/protocol/fed_cm/methods/__init__.py +0 -0
  197. cdp/protocol/fed_cm/methods/service.py +98 -0
  198. cdp/protocol/fed_cm/methods/types.py +26 -0
  199. cdp/protocol/fed_cm/service.py +21 -0
  200. cdp/protocol/fed_cm/types.py +25 -0
  201. cdp/protocol/fetch/__init__.py +0 -0
  202. cdp/protocol/fetch/events/__init__.py +0 -0
  203. cdp/protocol/fetch/events/service.py +37 -0
  204. cdp/protocol/fetch/events/types.py +47 -0
  205. cdp/protocol/fetch/methods/__init__.py +0 -0
  206. cdp/protocol/fetch/methods/service.py +120 -0
  207. cdp/protocol/fetch/methods/types.py +85 -0
  208. cdp/protocol/fetch/service.py +21 -0
  209. cdp/protocol/fetch/types.py +41 -0
  210. cdp/protocol/file_system/__init__.py +0 -0
  211. cdp/protocol/file_system/events/__init__.py +0 -0
  212. cdp/protocol/file_system/events/service.py +20 -0
  213. cdp/protocol/file_system/events/types.py +3 -0
  214. cdp/protocol/file_system/methods/__init__.py +0 -0
  215. cdp/protocol/file_system/methods/service.py +32 -0
  216. cdp/protocol/file_system/methods/types.py +14 -0
  217. cdp/protocol/file_system/service.py +21 -0
  218. cdp/protocol/file_system/types.py +28 -0
  219. cdp/protocol/headless_experimental/__init__.py +0 -0
  220. cdp/protocol/headless_experimental/events/__init__.py +0 -0
  221. cdp/protocol/headless_experimental/events/service.py +20 -0
  222. cdp/protocol/headless_experimental/events/types.py +3 -0
  223. cdp/protocol/headless_experimental/methods/__init__.py +0 -0
  224. cdp/protocol/headless_experimental/methods/service.py +32 -0
  225. cdp/protocol/headless_experimental/methods/types.py +22 -0
  226. cdp/protocol/headless_experimental/service.py +21 -0
  227. cdp/protocol/headless_experimental/types.py +12 -0
  228. cdp/protocol/heap_profiler/__init__.py +0 -0
  229. cdp/protocol/heap_profiler/events/__init__.py +0 -0
  230. cdp/protocol/heap_profiler/events/service.py +61 -0
  231. cdp/protocol/heap_profiler/events/types.py +18 -0
  232. cdp/protocol/heap_profiler/methods/__init__.py +0 -0
  233. cdp/protocol/heap_profiler/methods/service.py +153 -0
  234. cdp/protocol/heap_profiler/methods/types.py +73 -0
  235. cdp/protocol/heap_profiler/service.py +21 -0
  236. cdp/protocol/heap_profiler/types.py +32 -0
  237. cdp/protocol/indexed_db/__init__.py +0 -0
  238. cdp/protocol/indexed_db/events/__init__.py +0 -0
  239. cdp/protocol/indexed_db/events/service.py +20 -0
  240. cdp/protocol/indexed_db/events/types.py +3 -0
  241. cdp/protocol/indexed_db/methods/__init__.py +0 -0
  242. cdp/protocol/indexed_db/methods/service.py +120 -0
  243. cdp/protocol/indexed_db/methods/types.py +111 -0
  244. cdp/protocol/indexed_db/service.py +21 -0
  245. cdp/protocol/indexed_db/types.py +74 -0
  246. cdp/protocol/input/__init__.py +0 -0
  247. cdp/protocol/input/events/__init__.py +0 -0
  248. cdp/protocol/input/events/service.py +29 -0
  249. cdp/protocol/input/events/types.py +10 -0
  250. cdp/protocol/input/methods/__init__.py +0 -0
  251. cdp/protocol/input/methods/service.py +164 -0
  252. cdp/protocol/input/methods/types.py +181 -0
  253. cdp/protocol/input/service.py +21 -0
  254. cdp/protocol/input/types.py +46 -0
  255. cdp/protocol/inspector/__init__.py +0 -0
  256. cdp/protocol/inspector/events/__init__.py +0 -0
  257. cdp/protocol/inspector/events/service.py +53 -0
  258. cdp/protocol/inspector/events/types.py +13 -0
  259. cdp/protocol/inspector/methods/__init__.py +0 -0
  260. cdp/protocol/inspector/methods/service.py +43 -0
  261. cdp/protocol/inspector/methods/types.py +3 -0
  262. cdp/protocol/inspector/service.py +21 -0
  263. cdp/protocol/inspector/types.py +3 -0
  264. cdp/protocol/io/__init__.py +0 -0
  265. cdp/protocol/io/events/__init__.py +0 -0
  266. cdp/protocol/io/events/service.py +20 -0
  267. cdp/protocol/io/events/types.py +3 -0
  268. cdp/protocol/io/methods/__init__.py +0 -0
  269. cdp/protocol/io/methods/service.py +54 -0
  270. cdp/protocol/io/methods/types.py +33 -0
  271. cdp/protocol/io/service.py +21 -0
  272. cdp/protocol/io/types.py +6 -0
  273. cdp/protocol/layer_tree/__init__.py +0 -0
  274. cdp/protocol/layer_tree/events/__init__.py +0 -0
  275. cdp/protocol/layer_tree/events/service.py +37 -0
  276. cdp/protocol/layer_tree/events/types.py +18 -0
  277. cdp/protocol/layer_tree/methods/__init__.py +0 -0
  278. cdp/protocol/layer_tree/methods/service.py +120 -0
  279. cdp/protocol/layer_tree/methods/types.py +70 -0
  280. cdp/protocol/layer_tree/service.py +21 -0
  281. cdp/protocol/layer_tree/types.py +73 -0
  282. cdp/protocol/log/__init__.py +0 -0
  283. cdp/protocol/log/events/__init__.py +0 -0
  284. cdp/protocol/log/events/service.py +29 -0
  285. cdp/protocol/log/events/types.py +11 -0
  286. cdp/protocol/log/methods/__init__.py +0 -0
  287. cdp/protocol/log/methods/service.py +76 -0
  288. cdp/protocol/log/methods/types.py +14 -0
  289. cdp/protocol/log/service.py +21 -0
  290. cdp/protocol/log/types.py +40 -0
  291. cdp/protocol/media/__init__.py +0 -0
  292. cdp/protocol/media/events/__init__.py +0 -0
  293. cdp/protocol/media/events/service.py +61 -0
  294. cdp/protocol/media/events/types.py +27 -0
  295. cdp/protocol/media/methods/__init__.py +0 -0
  296. cdp/protocol/media/methods/service.py +43 -0
  297. cdp/protocol/media/methods/types.py +3 -0
  298. cdp/protocol/media/service.py +21 -0
  299. cdp/protocol/media/types.py +42 -0
  300. cdp/protocol/memory/__init__.py +0 -0
  301. cdp/protocol/memory/events/__init__.py +0 -0
  302. cdp/protocol/memory/events/service.py +20 -0
  303. cdp/protocol/memory/events/types.py +3 -0
  304. cdp/protocol/memory/methods/__init__.py +0 -0
  305. cdp/protocol/memory/methods/service.py +142 -0
  306. cdp/protocol/memory/methods/types.py +48 -0
  307. cdp/protocol/memory/service.py +21 -0
  308. cdp/protocol/memory/types.py +34 -0
  309. cdp/protocol/network/__init__.py +0 -0
  310. cdp/protocol/network/events/__init__.py +0 -0
  311. cdp/protocol/network/events/service.py +365 -0
  312. cdp/protocol/network/events/types.py +360 -0
  313. cdp/protocol/network/methods/__init__.py +0 -0
  314. cdp/protocol/network/methods/service.py +384 -0
  315. cdp/protocol/network/methods/types.py +252 -0
  316. cdp/protocol/network/service.py +21 -0
  317. cdp/protocol/network/types.py +691 -0
  318. cdp/protocol/overlay/__init__.py +0 -0
  319. cdp/protocol/overlay/events/__init__.py +0 -0
  320. cdp/protocol/overlay/events/service.py +53 -0
  321. cdp/protocol/overlay/events/types.py +20 -0
  322. cdp/protocol/overlay/methods/__init__.py +0 -0
  323. cdp/protocol/overlay/methods/service.py +307 -0
  324. cdp/protocol/overlay/methods/types.py +144 -0
  325. cdp/protocol/overlay/service.py +21 -0
  326. cdp/protocol/overlay/types.py +198 -0
  327. cdp/protocol/page/__init__.py +0 -0
  328. cdp/protocol/page/events/__init__.py +0 -0
  329. cdp/protocol/page/events/service.py +213 -0
  330. cdp/protocol/page/events/types.py +147 -0
  331. cdp/protocol/page/methods/__init__.py +0 -0
  332. cdp/protocol/page/methods/service.py +560 -0
  333. cdp/protocol/page/methods/types.py +346 -0
  334. cdp/protocol/page/service.py +21 -0
  335. cdp/protocol/page/types.py +379 -0
  336. cdp/protocol/performance/__init__.py +0 -0
  337. cdp/protocol/performance/events/__init__.py +0 -0
  338. cdp/protocol/performance/events/service.py +29 -0
  339. cdp/protocol/performance/events/types.py +13 -0
  340. cdp/protocol/performance/methods/__init__.py +0 -0
  341. cdp/protocol/performance/methods/service.py +54 -0
  342. cdp/protocol/performance/methods/types.py +18 -0
  343. cdp/protocol/performance/service.py +21 -0
  344. cdp/protocol/performance/types.py +10 -0
  345. cdp/protocol/performance_timeline/__init__.py +0 -0
  346. cdp/protocol/performance_timeline/events/__init__.py +0 -0
  347. cdp/protocol/performance_timeline/events/service.py +29 -0
  348. cdp/protocol/performance_timeline/events/types.py +10 -0
  349. cdp/protocol/performance_timeline/methods/__init__.py +0 -0
  350. cdp/protocol/performance_timeline/methods/service.py +32 -0
  351. cdp/protocol/performance_timeline/methods/types.py +7 -0
  352. cdp/protocol/performance_timeline/service.py +21 -0
  353. cdp/protocol/performance_timeline/types.py +46 -0
  354. cdp/protocol/preload/__init__.py +0 -0
  355. cdp/protocol/preload/events/__init__.py +0 -0
  356. cdp/protocol/preload/events/service.py +69 -0
  357. cdp/protocol/preload/events/types.py +49 -0
  358. cdp/protocol/preload/methods/__init__.py +0 -0
  359. cdp/protocol/preload/methods/service.py +43 -0
  360. cdp/protocol/preload/methods/types.py +3 -0
  361. cdp/protocol/preload/service.py +21 -0
  362. cdp/protocol/preload/types.py +56 -0
  363. cdp/protocol/profiler/__init__.py +0 -0
  364. cdp/protocol/profiler/events/__init__.py +0 -0
  365. cdp/protocol/profiler/events/service.py +45 -0
  366. cdp/protocol/profiler/events/types.py +30 -0
  367. cdp/protocol/profiler/methods/__init__.py +0 -0
  368. cdp/protocol/profiler/methods/service.py +120 -0
  369. cdp/protocol/profiler/methods/types.py +45 -0
  370. cdp/protocol/profiler/service.py +21 -0
  371. cdp/protocol/profiler/types.py +65 -0
  372. cdp/protocol/pwa/__init__.py +0 -0
  373. cdp/protocol/pwa/events/__init__.py +0 -0
  374. cdp/protocol/pwa/events/service.py +20 -0
  375. cdp/protocol/pwa/events/types.py +3 -0
  376. cdp/protocol/pwa/methods/__init__.py +0 -0
  377. cdp/protocol/pwa/methods/service.py +98 -0
  378. cdp/protocol/pwa/methods/types.py +43 -0
  379. cdp/protocol/pwa/service.py +21 -0
  380. cdp/protocol/pwa/types.py +15 -0
  381. cdp/protocol/py.typed +0 -0
  382. cdp/protocol/runtime/__init__.py +0 -0
  383. cdp/protocol/runtime/events/__init__.py +0 -0
  384. cdp/protocol/runtime/events/service.py +85 -0
  385. cdp/protocol/runtime/events/types.py +55 -0
  386. cdp/protocol/runtime/methods/__init__.py +0 -0
  387. cdp/protocol/runtime/methods/service.py +274 -0
  388. cdp/protocol/runtime/methods/types.py +226 -0
  389. cdp/protocol/runtime/service.py +21 -0
  390. cdp/protocol/runtime/types.py +194 -0
  391. cdp/protocol/security/__init__.py +0 -0
  392. cdp/protocol/security/events/__init__.py +0 -0
  393. cdp/protocol/security/events/service.py +29 -0
  394. cdp/protocol/security/events/types.py +11 -0
  395. cdp/protocol/security/methods/__init__.py +0 -0
  396. cdp/protocol/security/methods/service.py +54 -0
  397. cdp/protocol/security/methods/types.py +9 -0
  398. cdp/protocol/security/service.py +21 -0
  399. cdp/protocol/security/types.py +102 -0
  400. cdp/protocol/service_worker/__init__.py +0 -0
  401. cdp/protocol/service_worker/events/__init__.py +0 -0
  402. cdp/protocol/service_worker/events/service.py +45 -0
  403. cdp/protocol/service_worker/events/types.py +16 -0
  404. cdp/protocol/service_worker/methods/__init__.py +0 -0
  405. cdp/protocol/service_worker/methods/service.py +153 -0
  406. cdp/protocol/service_worker/methods/types.py +36 -0
  407. cdp/protocol/service_worker/service.py +21 -0
  408. cdp/protocol/service_worker/types.py +38 -0
  409. cdp/protocol/storage/__init__.py +0 -0
  410. cdp/protocol/storage/events/__init__.py +0 -0
  411. cdp/protocol/storage/events/service.py +141 -0
  412. cdp/protocol/storage/events/types.py +139 -0
  413. cdp/protocol/storage/methods/__init__.py +0 -0
  414. cdp/protocol/storage/methods/service.py +428 -0
  415. cdp/protocol/storage/methods/types.py +184 -0
  416. cdp/protocol/storage/service.py +21 -0
  417. cdp/protocol/storage/types.py +236 -0
  418. cdp/protocol/system_info/__init__.py +0 -0
  419. cdp/protocol/system_info/events/__init__.py +0 -0
  420. cdp/protocol/system_info/events/service.py +20 -0
  421. cdp/protocol/system_info/events/types.py +3 -0
  422. cdp/protocol/system_info/methods/__init__.py +0 -0
  423. cdp/protocol/system_info/methods/service.py +54 -0
  424. cdp/protocol/system_info/methods/types.py +27 -0
  425. cdp/protocol/system_info/service.py +21 -0
  426. cdp/protocol/system_info/types.py +71 -0
  427. cdp/protocol/target/__init__.py +0 -0
  428. cdp/protocol/target/events/__init__.py +0 -0
  429. cdp/protocol/target/events/service.py +77 -0
  430. cdp/protocol/target/events/types.py +38 -0
  431. cdp/protocol/target/methods/__init__.py +0 -0
  432. cdp/protocol/target/methods/service.py +219 -0
  433. cdp/protocol/target/methods/types.py +148 -0
  434. cdp/protocol/target/service.py +21 -0
  435. cdp/protocol/target/types.py +44 -0
  436. cdp/protocol/tethering/__init__.py +0 -0
  437. cdp/protocol/tethering/events/__init__.py +0 -0
  438. cdp/protocol/tethering/events/service.py +29 -0
  439. cdp/protocol/tethering/events/types.py +9 -0
  440. cdp/protocol/tethering/methods/__init__.py +0 -0
  441. cdp/protocol/tethering/methods/service.py +43 -0
  442. cdp/protocol/tethering/methods/types.py +10 -0
  443. cdp/protocol/tethering/service.py +21 -0
  444. cdp/protocol/tethering/types.py +3 -0
  445. cdp/protocol/tracing/__init__.py +0 -0
  446. cdp/protocol/tracing/events/__init__.py +0 -0
  447. cdp/protocol/tracing/events/service.py +45 -0
  448. cdp/protocol/tracing/events/types.py +28 -0
  449. cdp/protocol/tracing/methods/__init__.py +0 -0
  450. cdp/protocol/tracing/methods/service.py +87 -0
  451. cdp/protocol/tracing/methods/types.py +54 -0
  452. cdp/protocol/tracing/service.py +21 -0
  453. cdp/protocol/tracing/types.py +34 -0
  454. cdp/protocol/web_audio/__init__.py +0 -0
  455. cdp/protocol/web_audio/events/__init__.py +0 -0
  456. cdp/protocol/web_audio/events/service.py +125 -0
  457. cdp/protocol/web_audio/events/types.py +56 -0
  458. cdp/protocol/web_audio/methods/__init__.py +0 -0
  459. cdp/protocol/web_audio/methods/service.py +54 -0
  460. cdp/protocol/web_audio/methods/types.py +17 -0
  461. cdp/protocol/web_audio/service.py +21 -0
  462. cdp/protocol/web_audio/types.py +66 -0
  463. cdp/protocol/web_authn/__init__.py +0 -0
  464. cdp/protocol/web_authn/events/__init__.py +0 -0
  465. cdp/protocol/web_authn/events/service.py +53 -0
  466. cdp/protocol/web_authn/events/types.py +21 -0
  467. cdp/protocol/web_authn/methods/__init__.py +0 -0
  468. cdp/protocol/web_authn/methods/service.py +164 -0
  469. cdp/protocol/web_authn/methods/types.py +61 -0
  470. cdp/protocol/web_authn/service.py +21 -0
  471. cdp/protocol/web_authn/types.py +54 -0
  472. cdp/py.typed +0 -0
  473. cdp/service.py +184 -0
  474. chromedeveloperprotocol_client-0.1.0.dist-info/METADATA +15 -0
  475. chromedeveloperprotocol_client-0.1.0.dist-info/RECORD +476 -0
  476. chromedeveloperprotocol_client-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,384 @@
1
+ """CDP DOM Methods Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ from typing import TYPE_CHECKING
6
+ if TYPE_CHECKING:
7
+ from cdp.protocol.dom.types import BackendNodeId
8
+ from cdp.protocol.dom.types import BoxModel
9
+ from cdp.protocol.dom.types import CSSComputedStyleProperty
10
+ from cdp.protocol.dom.types import DetachedElementInfo
11
+ from cdp.protocol.dom.types import LogicalAxes
12
+ from cdp.protocol.dom.types import Node
13
+ from cdp.protocol.dom.types import NodeId
14
+ from cdp.protocol.dom.types import PhysicalAxes
15
+ from cdp.protocol.dom.types import Quad
16
+ from cdp.protocol.dom.types import Rect
17
+ from cdp.protocol.page.types import FrameId
18
+ from cdp.protocol.runtime.types import ExecutionContextId
19
+ from cdp.protocol.runtime.types import RemoteObject
20
+ from cdp.protocol.runtime.types import RemoteObjectId
21
+ from cdp.protocol.runtime.types import StackTrace
22
+
23
+ class collectClassNamesFromSubtreeParameters(TypedDict, total=True):
24
+ nodeId: 'NodeId'
25
+ """Id of the node to collect class names."""
26
+ class copyToParameters(TypedDict, total=True):
27
+ nodeId: 'NodeId'
28
+ """Id of the node to copy."""
29
+ targetNodeId: 'NodeId'
30
+ """Id of the element to drop the copy into."""
31
+ insertBeforeNodeId: NotRequired['NodeId']
32
+ """Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId)."""
33
+ class describeNodeParameters(TypedDict, total=False):
34
+ nodeId: NotRequired['NodeId']
35
+ """Identifier of the node."""
36
+ backendNodeId: NotRequired['BackendNodeId']
37
+ """Identifier of the backend node."""
38
+ objectId: NotRequired['RemoteObjectId']
39
+ """JavaScript object id of the node wrapper."""
40
+ depth: NotRequired['int']
41
+ """The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0."""
42
+ pierce: NotRequired['bool']
43
+ """Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)."""
44
+ class scrollIntoViewIfNeededParameters(TypedDict, total=False):
45
+ nodeId: NotRequired['NodeId']
46
+ """Identifier of the node."""
47
+ backendNodeId: NotRequired['BackendNodeId']
48
+ """Identifier of the backend node."""
49
+ objectId: NotRequired['RemoteObjectId']
50
+ """JavaScript object id of the node wrapper."""
51
+ rect: NotRequired['Rect']
52
+ """The rect to be scrolled into view, relative to the node's border box, in CSS pixels. When omitted, center of the node will be used, similar to Element.scrollIntoView."""
53
+
54
+ class discardSearchResultsParameters(TypedDict, total=True):
55
+ searchId: 'str'
56
+ """Unique search session identifier."""
57
+ class enableParameters(TypedDict, total=False):
58
+ includeWhitespace: NotRequired['Literal["none", "all"]']
59
+ """Whether to include whitespaces in the children array of returned Nodes."""
60
+ class focusParameters(TypedDict, total=False):
61
+ nodeId: NotRequired['NodeId']
62
+ """Identifier of the node."""
63
+ backendNodeId: NotRequired['BackendNodeId']
64
+ """Identifier of the backend node."""
65
+ objectId: NotRequired['RemoteObjectId']
66
+ """JavaScript object id of the node wrapper."""
67
+ class getAttributesParameters(TypedDict, total=True):
68
+ nodeId: 'NodeId'
69
+ """Id of the node to retrieve attributes for."""
70
+ class getBoxModelParameters(TypedDict, total=False):
71
+ nodeId: NotRequired['NodeId']
72
+ """Identifier of the node."""
73
+ backendNodeId: NotRequired['BackendNodeId']
74
+ """Identifier of the backend node."""
75
+ objectId: NotRequired['RemoteObjectId']
76
+ """JavaScript object id of the node wrapper."""
77
+ class getContentQuadsParameters(TypedDict, total=False):
78
+ nodeId: NotRequired['NodeId']
79
+ """Identifier of the node."""
80
+ backendNodeId: NotRequired['BackendNodeId']
81
+ """Identifier of the backend node."""
82
+ objectId: NotRequired['RemoteObjectId']
83
+ """JavaScript object id of the node wrapper."""
84
+ class getDocumentParameters(TypedDict, total=False):
85
+ depth: NotRequired['int']
86
+ """The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0."""
87
+ pierce: NotRequired['bool']
88
+ """Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false)."""
89
+ class getNodesForSubtreeByStyleParameters(TypedDict, total=True):
90
+ nodeId: 'NodeId'
91
+ """Node ID pointing to the root of a subtree."""
92
+ computedStyles: 'List[CSSComputedStyleProperty]'
93
+ """The style to filter nodes by (includes nodes if any of properties matches)."""
94
+ pierce: NotRequired['bool']
95
+ """Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false)."""
96
+ class getNodeForLocationParameters(TypedDict, total=True):
97
+ x: 'int'
98
+ """X coordinate."""
99
+ y: 'int'
100
+ """Y coordinate."""
101
+ includeUserAgentShadowDOM: NotRequired['bool']
102
+ """False to skip to the nearest non-UA shadow root ancestor (default: false)."""
103
+ ignorePointerEventsNone: NotRequired['bool']
104
+ """Whether to ignore pointer-events: none on elements and hit test them."""
105
+ class getOuterHTMLParameters(TypedDict, total=False):
106
+ nodeId: NotRequired['NodeId']
107
+ """Identifier of the node."""
108
+ backendNodeId: NotRequired['BackendNodeId']
109
+ """Identifier of the backend node."""
110
+ objectId: NotRequired['RemoteObjectId']
111
+ """JavaScript object id of the node wrapper."""
112
+ includeShadowDOM: NotRequired['bool']
113
+ """Include all shadow roots. Equals to false if not specified."""
114
+ class getRelayoutBoundaryParameters(TypedDict, total=True):
115
+ nodeId: 'NodeId'
116
+ """Id of the node."""
117
+ class getSearchResultsParameters(TypedDict, total=True):
118
+ searchId: 'str'
119
+ """Unique search session identifier."""
120
+ fromIndex: 'int'
121
+ """Start index of the search result to be returned."""
122
+ toIndex: 'int'
123
+ """End index of the search result to be returned."""
124
+
125
+
126
+
127
+
128
+ class moveToParameters(TypedDict, total=True):
129
+ nodeId: 'NodeId'
130
+ """Id of the node to move."""
131
+ targetNodeId: 'NodeId'
132
+ """Id of the element to drop the moved node into."""
133
+ insertBeforeNodeId: NotRequired['NodeId']
134
+ """Drop node before this one (if absent, the moved node becomes the last child of targetNodeId)."""
135
+ class performSearchParameters(TypedDict, total=True):
136
+ query: 'str'
137
+ """Plain text or query selector or XPath search query."""
138
+ includeUserAgentShadowDOM: NotRequired['bool']
139
+ """True to search in user agent shadow DOM."""
140
+ class pushNodeByPathToFrontendParameters(TypedDict, total=True):
141
+ path: 'str'
142
+ """Path to node in the proprietary format."""
143
+ class pushNodesByBackendIdsToFrontendParameters(TypedDict, total=True):
144
+ backendNodeIds: 'List[BackendNodeId]'
145
+ """The array of backend node ids."""
146
+ class querySelectorParameters(TypedDict, total=True):
147
+ nodeId: 'NodeId'
148
+ """Id of the node to query upon."""
149
+ selector: 'str'
150
+ """Selector string."""
151
+ class querySelectorAllParameters(TypedDict, total=True):
152
+ nodeId: 'NodeId'
153
+ """Id of the node to query upon."""
154
+ selector: 'str'
155
+ """Selector string."""
156
+
157
+ class getElementByRelationParameters(TypedDict, total=True):
158
+ nodeId: 'NodeId'
159
+ """Id of the node from which to query the relation."""
160
+ relation: 'Literal["PopoverTarget", "InterestTarget", "CommandFor"]'
161
+ """Type of relation to get."""
162
+
163
+ class removeAttributeParameters(TypedDict, total=True):
164
+ nodeId: 'NodeId'
165
+ """Id of the element to remove attribute from."""
166
+ name: 'str'
167
+ """Name of the attribute to remove."""
168
+ class removeNodeParameters(TypedDict, total=True):
169
+ nodeId: 'NodeId'
170
+ """Id of the node to remove."""
171
+ class requestChildNodesParameters(TypedDict, total=True):
172
+ nodeId: 'NodeId'
173
+ """Id of the node to get children for."""
174
+ depth: NotRequired['int']
175
+ """The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0."""
176
+ pierce: NotRequired['bool']
177
+ """Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false)."""
178
+ class requestNodeParameters(TypedDict, total=True):
179
+ objectId: 'RemoteObjectId'
180
+ """JavaScript object id to convert into node."""
181
+ class resolveNodeParameters(TypedDict, total=False):
182
+ nodeId: NotRequired['NodeId']
183
+ """Id of the node to resolve."""
184
+ backendNodeId: NotRequired['BackendNodeId']
185
+ """Backend identifier of the node to resolve."""
186
+ objectGroup: NotRequired['str']
187
+ """Symbolic group name that can be used to release multiple objects."""
188
+ executionContextId: NotRequired['ExecutionContextId']
189
+ """Execution context in which to resolve the node."""
190
+ class setAttributeValueParameters(TypedDict, total=True):
191
+ nodeId: 'NodeId'
192
+ """Id of the element to set attribute for."""
193
+ name: 'str'
194
+ """Attribute name."""
195
+ value: 'str'
196
+ """Attribute value."""
197
+ class setAttributesAsTextParameters(TypedDict, total=True):
198
+ nodeId: 'NodeId'
199
+ """Id of the element to set attributes for."""
200
+ text: 'str'
201
+ """Text with a number of attributes. Will parse this text using HTML parser."""
202
+ name: NotRequired['str']
203
+ """Attribute name to replace with new attributes derived from text in case text parsed successfully."""
204
+ class setFileInputFilesParameters(TypedDict, total=True):
205
+ files: 'List[str]'
206
+ """Array of file paths to set."""
207
+ nodeId: NotRequired['NodeId']
208
+ """Identifier of the node."""
209
+ backendNodeId: NotRequired['BackendNodeId']
210
+ """Identifier of the backend node."""
211
+ objectId: NotRequired['RemoteObjectId']
212
+ """JavaScript object id of the node wrapper."""
213
+ class setNodeStackTracesEnabledParameters(TypedDict, total=True):
214
+ enable: 'bool'
215
+ """Enable or disable."""
216
+ class getNodeStackTracesParameters(TypedDict, total=True):
217
+ nodeId: 'NodeId'
218
+ """Id of the node to get stack traces for."""
219
+ class getFileInfoParameters(TypedDict, total=True):
220
+ objectId: 'RemoteObjectId'
221
+ """JavaScript object id of the node wrapper."""
222
+
223
+ class setInspectedNodeParameters(TypedDict, total=True):
224
+ nodeId: 'NodeId'
225
+ """DOM node id to be accessible by means of $x command line API."""
226
+ class setNodeNameParameters(TypedDict, total=True):
227
+ nodeId: 'NodeId'
228
+ """Id of the node to set name for."""
229
+ name: 'str'
230
+ """New node's name."""
231
+ class setNodeValueParameters(TypedDict, total=True):
232
+ nodeId: 'NodeId'
233
+ """Id of the node to set value for."""
234
+ value: 'str'
235
+ """New node's value."""
236
+ class setOuterHTMLParameters(TypedDict, total=True):
237
+ nodeId: 'NodeId'
238
+ """Id of the node to set markup for."""
239
+ outerHTML: 'str'
240
+ """Outer HTML markup to set."""
241
+
242
+ class getFrameOwnerParameters(TypedDict, total=True):
243
+ frameId: 'FrameId'
244
+ class getContainerForNodeParameters(TypedDict, total=True):
245
+ nodeId: 'NodeId'
246
+ containerName: NotRequired['str']
247
+ physicalAxes: NotRequired['PhysicalAxes']
248
+ logicalAxes: NotRequired['LogicalAxes']
249
+ queriesScrollState: NotRequired['bool']
250
+ queriesAnchored: NotRequired['bool']
251
+ class getQueryingDescendantsForContainerParameters(TypedDict, total=True):
252
+ nodeId: 'NodeId'
253
+ """Id of the container node to find querying descendants from."""
254
+ class getAnchorElementParameters(TypedDict, total=True):
255
+ nodeId: 'NodeId'
256
+ """Id of the positioned element from which to find the anchor."""
257
+ anchorSpecifier: NotRequired['str']
258
+ """An optional anchor specifier, as defined in https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier. If not provided, it will return the implicit anchor element for the given positioned element."""
259
+ class forceShowPopoverParameters(TypedDict, total=True):
260
+ nodeId: 'NodeId'
261
+ """Id of the popover HTMLElement"""
262
+ enable: 'bool'
263
+ """If true, opens the popover and keeps it open. If false, closes the popover if it was previously force-opened."""
264
+ class collectClassNamesFromSubtreeReturns(TypedDict):
265
+ classNames: 'List[str]'
266
+ """Class name list."""
267
+ class copyToReturns(TypedDict):
268
+ nodeId: 'NodeId'
269
+ """Id of the node clone."""
270
+ class describeNodeReturns(TypedDict):
271
+ node: 'Node'
272
+ """Node description."""
273
+
274
+
275
+
276
+
277
+
278
+ class getAttributesReturns(TypedDict):
279
+ attributes: 'List[str]'
280
+ """An interleaved array of node attribute names and values."""
281
+ class getBoxModelReturns(TypedDict):
282
+ model: 'BoxModel'
283
+ """Box model for the node."""
284
+ class getContentQuadsReturns(TypedDict):
285
+ quads: 'List[Quad]'
286
+ """Quads that describe node layout relative to viewport."""
287
+ class getDocumentReturns(TypedDict):
288
+ root: 'Node'
289
+ """Resulting node."""
290
+ class getNodesForSubtreeByStyleReturns(TypedDict):
291
+ nodeIds: 'List[NodeId]'
292
+ """Resulting nodes."""
293
+ class getNodeForLocationReturns(TypedDict):
294
+ backendNodeId: 'BackendNodeId'
295
+ """Resulting node."""
296
+ frameId: 'FrameId'
297
+ """Frame this node belongs to."""
298
+ nodeId: 'NodeId'
299
+ """Id of the node at given coordinates, only when enabled and requested document."""
300
+ class getOuterHTMLReturns(TypedDict):
301
+ outerHTML: 'str'
302
+ """Outer HTML markup."""
303
+ class getRelayoutBoundaryReturns(TypedDict):
304
+ nodeId: 'NodeId'
305
+ """Relayout boundary node id for the given node."""
306
+ class getSearchResultsReturns(TypedDict):
307
+ nodeIds: 'List[NodeId]'
308
+ """Ids of the search result nodes."""
309
+
310
+
311
+
312
+
313
+ class moveToReturns(TypedDict):
314
+ nodeId: 'NodeId'
315
+ """New id of the moved node."""
316
+ class performSearchReturns(TypedDict):
317
+ searchId: 'str'
318
+ """Unique search session identifier."""
319
+ resultCount: 'int'
320
+ """Number of search results."""
321
+ class pushNodeByPathToFrontendReturns(TypedDict):
322
+ nodeId: 'NodeId'
323
+ """Id of the node for given path."""
324
+ class pushNodesByBackendIdsToFrontendReturns(TypedDict):
325
+ nodeIds: 'List[NodeId]'
326
+ """The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds."""
327
+ class querySelectorReturns(TypedDict):
328
+ nodeId: 'NodeId'
329
+ """Query selector result."""
330
+ class querySelectorAllReturns(TypedDict):
331
+ nodeIds: 'List[NodeId]'
332
+ """Query selector result."""
333
+ class getTopLayerElementsReturns(TypedDict):
334
+ nodeIds: 'List[NodeId]'
335
+ """NodeIds of top layer elements"""
336
+ class getElementByRelationReturns(TypedDict):
337
+ nodeId: 'NodeId'
338
+ """NodeId of the element matching the queried relation."""
339
+
340
+
341
+
342
+
343
+ class requestNodeReturns(TypedDict):
344
+ nodeId: 'NodeId'
345
+ """Node id for given object."""
346
+ class resolveNodeReturns(TypedDict):
347
+ object: 'RemoteObject'
348
+ """JavaScript object wrapper for given node."""
349
+
350
+
351
+
352
+
353
+ class getNodeStackTracesReturns(TypedDict):
354
+ creation: 'StackTrace'
355
+ """Creation stack trace, if available."""
356
+ class getFileInfoReturns(TypedDict):
357
+ path: 'str'
358
+ class getDetachedDomNodesReturns(TypedDict):
359
+ detachedNodes: 'List[DetachedElementInfo]'
360
+ """The list of detached nodes"""
361
+
362
+ class setNodeNameReturns(TypedDict):
363
+ nodeId: 'NodeId'
364
+ """New node's id."""
365
+
366
+
367
+
368
+ class getFrameOwnerReturns(TypedDict):
369
+ backendNodeId: 'BackendNodeId'
370
+ """Resulting node."""
371
+ nodeId: 'NodeId'
372
+ """Id of the node at given coordinates, only when enabled and requested document."""
373
+ class getContainerForNodeReturns(TypedDict):
374
+ nodeId: 'NodeId'
375
+ """The container node for the given node, or null if not found."""
376
+ class getQueryingDescendantsForContainerReturns(TypedDict):
377
+ nodeIds: 'List[NodeId]'
378
+ """Descendant nodes with container queries against the given container."""
379
+ class getAnchorElementReturns(TypedDict):
380
+ nodeId: 'NodeId'
381
+ """The anchor element of the given anchor query."""
382
+ class forceShowPopoverReturns(TypedDict):
383
+ nodeIds: 'List[NodeId]'
384
+ """List of popovers that were closed in order to respect popover stacking order."""
@@ -0,0 +1,21 @@
1
+ """CDP DOM Domain"""
2
+ from typing import TYPE_CHECKING
3
+ from .methods.service import DOMMethods
4
+ from .events.service import DOMEvents
5
+
6
+ if TYPE_CHECKING:
7
+ from ...service import Client
8
+
9
+ class DOM(DOMMethods, DOMEvents):
10
+ """
11
+ This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an `id`. This `id` can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client. Note that `iframe` owner elements will return corresponding document elements as their child nodes.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the DOM domain.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ DOMMethods.__init__(self, client)
21
+ DOMEvents.__init__(self, client)
@@ -0,0 +1,151 @@
1
+ """CDP DOM Types"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
4
+
5
+ from typing import TYPE_CHECKING
6
+ if TYPE_CHECKING:
7
+ from cdp.protocol.page.types import FrameId
8
+
9
+ NodeId = int
10
+ """Unique DOM node identifier."""
11
+ BackendNodeId = int
12
+ """Unique DOM node identifier used to reference a node that may not have been pushed to the front-end."""
13
+ StyleSheetId = str
14
+ """Unique identifier for a CSS stylesheet."""
15
+ class BackendNode(TypedDict, total=True):
16
+ """Backend node with a friendly name."""
17
+ nodeType: 'int'
18
+ """Node's nodeType."""
19
+ nodeName: 'str'
20
+ """Node's nodeName."""
21
+ backendNodeId: 'BackendNodeId'
22
+ PseudoType = Literal['first-line','first-letter','checkmark','before','after','picker-icon','interest-hint','marker','backdrop','column','selection','search-text','target-text','spelling-error','grammar-error','highlight','first-line-inherited','scroll-marker','scroll-marker-group','scroll-button','scrollbar','scrollbar-thumb','scrollbar-button','scrollbar-track','scrollbar-track-piece','scrollbar-corner','resizer','input-list-button','view-transition','view-transition-group','view-transition-image-pair','view-transition-group-children','view-transition-old','view-transition-new','placeholder','file-selector-button','details-content','picker','permission-icon','overscroll-area-parent']
23
+ """Pseudo element type."""
24
+ ShadowRootType = Literal['user-agent','open','closed']
25
+ """Shadow root type."""
26
+ CompatibilityMode = Literal['QuirksMode','LimitedQuirksMode','NoQuirksMode']
27
+ """Document compatibility mode."""
28
+ PhysicalAxes = Literal['Horizontal','Vertical','Both']
29
+ """ContainerSelector physical axes"""
30
+ LogicalAxes = Literal['Inline','Block','Both']
31
+ """ContainerSelector logical axes"""
32
+ ScrollOrientation = Literal['horizontal','vertical']
33
+ """Physical scroll orientation"""
34
+ class Node(TypedDict, total=True):
35
+ """DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."""
36
+ nodeId: 'NodeId'
37
+ """Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client."""
38
+ backendNodeId: 'BackendNodeId'
39
+ """The BackendNodeId for this node."""
40
+ nodeType: 'int'
41
+ """Node's nodeType."""
42
+ nodeName: 'str'
43
+ """Node's nodeName."""
44
+ localName: 'str'
45
+ """Node's localName."""
46
+ nodeValue: 'str'
47
+ """Node's nodeValue."""
48
+ parentId: NotRequired['NodeId']
49
+ """The id of the parent node if any."""
50
+ childNodeCount: NotRequired['int']
51
+ """Child count for Container nodes."""
52
+ children: NotRequired['List[Node]']
53
+ """Child nodes of this node when requested with children."""
54
+ attributes: NotRequired['List[str]']
55
+ """Attributes of the Element node in the form of flat array [name1, value1, name2, value2]."""
56
+ documentURL: NotRequired['str']
57
+ """Document URL that Document or FrameOwner node points to."""
58
+ baseURL: NotRequired['str']
59
+ """Base URL that Document or FrameOwner node uses for URL completion."""
60
+ publicId: NotRequired['str']
61
+ """DocumentType's publicId."""
62
+ systemId: NotRequired['str']
63
+ """DocumentType's systemId."""
64
+ internalSubset: NotRequired['str']
65
+ """DocumentType's internalSubset."""
66
+ xmlVersion: NotRequired['str']
67
+ """Document's XML version in case of XML documents."""
68
+ name: NotRequired['str']
69
+ """Attr's name."""
70
+ value: NotRequired['str']
71
+ """Attr's value."""
72
+ pseudoType: NotRequired['PseudoType']
73
+ """Pseudo element type for this node."""
74
+ pseudoIdentifier: NotRequired['str']
75
+ """Pseudo element identifier for this node. Only present if there is a valid pseudoType."""
76
+ shadowRootType: NotRequired['ShadowRootType']
77
+ """Shadow root type."""
78
+ frameId: NotRequired['FrameId']
79
+ """Frame ID for frame owner elements."""
80
+ contentDocument: NotRequired['Node']
81
+ """Content document for frame owner elements."""
82
+ shadowRoots: NotRequired['List[Node]']
83
+ """Shadow root list for given element host."""
84
+ templateContent: NotRequired['Node']
85
+ """Content document fragment for template elements."""
86
+ pseudoElements: NotRequired['List[Node]']
87
+ """Pseudo elements associated with this node."""
88
+ distributedNodes: NotRequired['List[BackendNode]']
89
+ """Distributed nodes for given insertion point."""
90
+ isSVG: NotRequired['bool']
91
+ """Whether the node is SVG."""
92
+ compatibilityMode: NotRequired['CompatibilityMode']
93
+ assignedSlot: NotRequired['BackendNode']
94
+ isScrollable: NotRequired['bool']
95
+ affectedByStartingStyles: NotRequired['bool']
96
+ adoptedStyleSheets: NotRequired['List[StyleSheetId]']
97
+ class DetachedElementInfo(TypedDict, total=True):
98
+ """A structure to hold the top-level node of a detached tree and an array of its retained descendants."""
99
+ treeNode: 'Node'
100
+ retainedNodeIds: 'List[NodeId]'
101
+ class RGBA(TypedDict, total=True):
102
+ """A structure holding an RGBA color."""
103
+ r: 'int'
104
+ """The red component, in the [0-255] range."""
105
+ g: 'int'
106
+ """The green component, in the [0-255] range."""
107
+ b: 'int'
108
+ """The blue component, in the [0-255] range."""
109
+ a: NotRequired['float']
110
+ """The alpha component, in the [0-1] range (default: 1)."""
111
+ Quad = List['float']
112
+ """An array of quad vertices, x immediately followed by y for each point, points clock-wise."""
113
+ class BoxModel(TypedDict, total=True):
114
+ """Box model."""
115
+ content: 'Quad'
116
+ """Content box"""
117
+ padding: 'Quad'
118
+ """Padding box"""
119
+ border: 'Quad'
120
+ """Border box"""
121
+ margin: 'Quad'
122
+ """Margin box"""
123
+ width: 'int'
124
+ """Node width"""
125
+ height: 'int'
126
+ """Node height"""
127
+ shapeOutside: NotRequired['ShapeOutsideInfo']
128
+ """Shape outside coordinates"""
129
+ class ShapeOutsideInfo(TypedDict, total=True):
130
+ """CSS Shape Outside details."""
131
+ bounds: 'Quad'
132
+ """Shape bounds"""
133
+ shape: 'List[Any]'
134
+ """Shape coordinate details"""
135
+ marginShape: 'List[Any]'
136
+ """Margin shape bounds"""
137
+ class Rect(TypedDict, total=True):
138
+ """Rectangle."""
139
+ x: 'float'
140
+ """X coordinate"""
141
+ y: 'float'
142
+ """Y coordinate"""
143
+ width: 'float'
144
+ """Rectangle width"""
145
+ height: 'float'
146
+ """Rectangle height"""
147
+ class CSSComputedStyleProperty(TypedDict, total=True):
148
+ name: 'str'
149
+ """Computed style property name."""
150
+ value: 'str'
151
+ """Computed style property value."""
File without changes
File without changes
@@ -0,0 +1,20 @@
1
+ """CDP DOMDebugger Domain Events"""
2
+ from ..types import *
3
+ from .types import *
4
+ from typing import Optional, Dict, Any, Callable, TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from ....service import Client
8
+
9
+ class DOMDebuggerEvents:
10
+ """
11
+ Events for the DOMDebugger domain.
12
+ """
13
+ def __init__(self, client: "Client"):
14
+ """
15
+ Initialize the DOMDebugger events.
16
+
17
+ Args:
18
+ client ("Client"): The parent CDP client instance.
19
+ """
20
+ self.client = client
@@ -0,0 +1,3 @@
1
+ """CDP DOMDebugger Events"""
2
+
3
+ from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
File without changes