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.
- cdp/__init__.py +4 -0
- cdp/domains.py +582 -0
- cdp/generator/__init__.py +3 -0
- cdp/generator/client_generator.py +246 -0
- cdp/generator/constant.py +4 -0
- cdp/generator/domain_generator.py +149 -0
- cdp/generator/event_generator.py +202 -0
- cdp/generator/method_generator.py +215 -0
- cdp/generator/service.py +153 -0
- cdp/generator/type_generator.py +231 -0
- cdp/protocol/__init__.py +0 -0
- cdp/protocol/accessibility/__init__.py +0 -0
- cdp/protocol/accessibility/events/__init__.py +0 -0
- cdp/protocol/accessibility/events/service.py +37 -0
- cdp/protocol/accessibility/events/types.py +14 -0
- cdp/protocol/accessibility/methods/__init__.py +0 -0
- cdp/protocol/accessibility/methods/service.py +109 -0
- cdp/protocol/accessibility/methods/types.py +70 -0
- cdp/protocol/accessibility/service.py +21 -0
- cdp/protocol/accessibility/types.py +89 -0
- cdp/protocol/animation/__init__.py +0 -0
- cdp/protocol/animation/events/__init__.py +0 -0
- cdp/protocol/animation/events/service.py +53 -0
- cdp/protocol/animation/events/types.py +20 -0
- cdp/protocol/animation/methods/__init__.py +0 -0
- cdp/protocol/animation/methods/service.py +131 -0
- cdp/protocol/animation/methods/types.py +52 -0
- cdp/protocol/animation/service.py +21 -0
- cdp/protocol/animation/types.py +79 -0
- cdp/protocol/audits/__init__.py +0 -0
- cdp/protocol/audits/events/__init__.py +0 -0
- cdp/protocol/audits/events/service.py +29 -0
- cdp/protocol/audits/events/types.py +10 -0
- cdp/protocol/audits/methods/__init__.py +0 -0
- cdp/protocol/audits/methods/service.py +76 -0
- cdp/protocol/audits/methods/types.py +36 -0
- cdp/protocol/audits/service.py +21 -0
- cdp/protocol/audits/types.py +293 -0
- cdp/protocol/autofill/__init__.py +0 -0
- cdp/protocol/autofill/events/__init__.py +0 -0
- cdp/protocol/autofill/events/service.py +29 -0
- cdp/protocol/autofill/events/types.py +14 -0
- cdp/protocol/autofill/methods/__init__.py +0 -0
- cdp/protocol/autofill/methods/service.py +65 -0
- cdp/protocol/autofill/methods/types.py +22 -0
- cdp/protocol/autofill/service.py +21 -0
- cdp/protocol/autofill/types.py +54 -0
- cdp/protocol/background_service/__init__.py +0 -0
- cdp/protocol/background_service/events/__init__.py +0 -0
- cdp/protocol/background_service/events/service.py +37 -0
- cdp/protocol/background_service/events/types.py +14 -0
- cdp/protocol/background_service/methods/__init__.py +0 -0
- cdp/protocol/background_service/methods/service.py +65 -0
- cdp/protocol/background_service/methods/types.py +17 -0
- cdp/protocol/background_service/service.py +21 -0
- cdp/protocol/background_service/types.py +32 -0
- cdp/protocol/bluetooth_emulation/__init__.py +0 -0
- cdp/protocol/bluetooth_emulation/events/__init__.py +0 -0
- cdp/protocol/bluetooth_emulation/events/service.py +45 -0
- cdp/protocol/bluetooth_emulation/events/types.py +23 -0
- cdp/protocol/bluetooth_emulation/methods/__init__.py +0 -0
- cdp/protocol/bluetooth_emulation/methods/service.py +186 -0
- cdp/protocol/bluetooth_emulation/methods/types.py +81 -0
- cdp/protocol/bluetooth_emulation/service.py +21 -0
- cdp/protocol/bluetooth_emulation/types.py +45 -0
- cdp/protocol/browser/__init__.py +0 -0
- cdp/protocol/browser/events/__init__.py +0 -0
- cdp/protocol/browser/events/service.py +37 -0
- cdp/protocol/browser/events/types.py +28 -0
- cdp/protocol/browser/methods/__init__.py +0 -0
- cdp/protocol/browser/methods/service.py +230 -0
- cdp/protocol/browser/methods/types.py +126 -0
- cdp/protocol/browser/service.py +21 -0
- cdp/protocol/browser/types.py +57 -0
- cdp/protocol/cache_storage/__init__.py +0 -0
- cdp/protocol/cache_storage/events/__init__.py +0 -0
- cdp/protocol/cache_storage/events/service.py +20 -0
- cdp/protocol/cache_storage/events/types.py +3 -0
- cdp/protocol/cache_storage/methods/__init__.py +0 -0
- cdp/protocol/cache_storage/methods/service.py +76 -0
- cdp/protocol/cache_storage/methods/types.py +57 -0
- cdp/protocol/cache_storage/service.py +21 -0
- cdp/protocol/cache_storage/types.py +49 -0
- cdp/protocol/cast/__init__.py +0 -0
- cdp/protocol/cast/events/__init__.py +0 -0
- cdp/protocol/cast/events/service.py +37 -0
- cdp/protocol/cast/events/types.py +12 -0
- cdp/protocol/cast/methods/__init__.py +0 -0
- cdp/protocol/cast/methods/service.py +87 -0
- cdp/protocol/cast/methods/types.py +15 -0
- cdp/protocol/cast/service.py +21 -0
- cdp/protocol/cast/types.py +9 -0
- cdp/protocol/css/__init__.py +0 -0
- cdp/protocol/css/events/__init__.py +0 -0
- cdp/protocol/css/events/service.py +69 -0
- cdp/protocol/css/events/types.py +27 -0
- cdp/protocol/css/methods/__init__.py +0 -0
- cdp/protocol/css/methods/service.py +428 -0
- cdp/protocol/css/methods/types.py +278 -0
- cdp/protocol/css/service.py +21 -0
- cdp/protocol/css/types.py +451 -0
- cdp/protocol/debugger/__init__.py +0 -0
- cdp/protocol/debugger/events/__init__.py +0 -0
- cdp/protocol/debugger/events/service.py +53 -0
- cdp/protocol/debugger/events/types.py +112 -0
- cdp/protocol/debugger/methods/__init__.py +0 -0
- cdp/protocol/debugger/methods/service.py +362 -0
- cdp/protocol/debugger/methods/types.py +250 -0
- cdp/protocol/debugger/service.py +21 -0
- cdp/protocol/debugger/types.py +91 -0
- cdp/protocol/device_access/__init__.py +0 -0
- cdp/protocol/device_access/events/__init__.py +0 -0
- cdp/protocol/device_access/events/service.py +29 -0
- cdp/protocol/device_access/events/types.py +12 -0
- cdp/protocol/device_access/methods/__init__.py +0 -0
- cdp/protocol/device_access/methods/service.py +65 -0
- cdp/protocol/device_access/methods/types.py +16 -0
- cdp/protocol/device_access/service.py +21 -0
- cdp/protocol/device_access/types.py +13 -0
- cdp/protocol/device_orientation/__init__.py +0 -0
- cdp/protocol/device_orientation/events/__init__.py +0 -0
- cdp/protocol/device_orientation/events/service.py +20 -0
- cdp/protocol/device_orientation/events/types.py +3 -0
- cdp/protocol/device_orientation/methods/__init__.py +0 -0
- cdp/protocol/device_orientation/methods/service.py +43 -0
- cdp/protocol/device_orientation/methods/types.py +12 -0
- cdp/protocol/device_orientation/service.py +21 -0
- cdp/protocol/device_orientation/types.py +3 -0
- cdp/protocol/dom/__init__.py +0 -0
- cdp/protocol/dom/events/__init__.py +0 -0
- cdp/protocol/dom/events/service.py +165 -0
- cdp/protocol/dom/events/types.py +97 -0
- cdp/protocol/dom/methods/__init__.py +0 -0
- cdp/protocol/dom/methods/service.py +593 -0
- cdp/protocol/dom/methods/types.py +384 -0
- cdp/protocol/dom/service.py +21 -0
- cdp/protocol/dom/types.py +151 -0
- cdp/protocol/dom_debugger/__init__.py +0 -0
- cdp/protocol/dom_debugger/events/__init__.py +0 -0
- cdp/protocol/dom_debugger/events/service.py +20 -0
- cdp/protocol/dom_debugger/events/types.py +3 -0
- cdp/protocol/dom_debugger/methods/__init__.py +0 -0
- cdp/protocol/dom_debugger/methods/service.py +109 -0
- cdp/protocol/dom_debugger/methods/types.py +51 -0
- cdp/protocol/dom_debugger/service.py +21 -0
- cdp/protocol/dom_debugger/types.py +36 -0
- cdp/protocol/dom_snapshot/__init__.py +0 -0
- cdp/protocol/dom_snapshot/events/__init__.py +0 -0
- cdp/protocol/dom_snapshot/events/service.py +20 -0
- cdp/protocol/dom_snapshot/events/types.py +3 -0
- cdp/protocol/dom_snapshot/methods/__init__.py +0 -0
- cdp/protocol/dom_snapshot/methods/service.py +54 -0
- cdp/protocol/dom_snapshot/methods/types.py +28 -0
- cdp/protocol/dom_snapshot/service.py +21 -0
- cdp/protocol/dom_snapshot/types.py +220 -0
- cdp/protocol/dom_storage/__init__.py +0 -0
- cdp/protocol/dom_storage/events/__init__.py +0 -0
- cdp/protocol/dom_storage/events/service.py +53 -0
- cdp/protocol/dom_storage/events/types.py +22 -0
- cdp/protocol/dom_storage/methods/__init__.py +0 -0
- cdp/protocol/dom_storage/methods/service.py +87 -0
- cdp/protocol/dom_storage/methods/types.py +27 -0
- cdp/protocol/dom_storage/service.py +21 -0
- cdp/protocol/dom_storage/types.py +15 -0
- cdp/protocol/emulation/__init__.py +0 -0
- cdp/protocol/emulation/events/__init__.py +0 -0
- cdp/protocol/emulation/events/service.py +29 -0
- cdp/protocol/emulation/events/types.py +6 -0
- cdp/protocol/emulation/methods/__init__.py +0 -0
- cdp/protocol/emulation/methods/service.py +494 -0
- cdp/protocol/emulation/methods/types.py +261 -0
- cdp/protocol/emulation/service.py +21 -0
- cdp/protocol/emulation/types.py +132 -0
- cdp/protocol/event_breakpoints/__init__.py +0 -0
- cdp/protocol/event_breakpoints/events/__init__.py +0 -0
- cdp/protocol/event_breakpoints/events/service.py +20 -0
- cdp/protocol/event_breakpoints/events/types.py +3 -0
- cdp/protocol/event_breakpoints/methods/__init__.py +0 -0
- cdp/protocol/event_breakpoints/methods/service.py +54 -0
- cdp/protocol/event_breakpoints/methods/types.py +10 -0
- cdp/protocol/event_breakpoints/service.py +21 -0
- cdp/protocol/event_breakpoints/types.py +3 -0
- cdp/protocol/extensions/__init__.py +0 -0
- cdp/protocol/extensions/events/__init__.py +0 -0
- cdp/protocol/extensions/events/service.py +20 -0
- cdp/protocol/extensions/events/types.py +3 -0
- cdp/protocol/extensions/methods/__init__.py +0 -0
- cdp/protocol/extensions/methods/service.py +87 -0
- cdp/protocol/extensions/methods/types.py +46 -0
- cdp/protocol/extensions/service.py +21 -0
- cdp/protocol/extensions/types.py +6 -0
- cdp/protocol/fed_cm/__init__.py +0 -0
- cdp/protocol/fed_cm/events/__init__.py +0 -0
- cdp/protocol/fed_cm/events/service.py +37 -0
- cdp/protocol/fed_cm/events/types.py +18 -0
- cdp/protocol/fed_cm/methods/__init__.py +0 -0
- cdp/protocol/fed_cm/methods/service.py +98 -0
- cdp/protocol/fed_cm/methods/types.py +26 -0
- cdp/protocol/fed_cm/service.py +21 -0
- cdp/protocol/fed_cm/types.py +25 -0
- cdp/protocol/fetch/__init__.py +0 -0
- cdp/protocol/fetch/events/__init__.py +0 -0
- cdp/protocol/fetch/events/service.py +37 -0
- cdp/protocol/fetch/events/types.py +47 -0
- cdp/protocol/fetch/methods/__init__.py +0 -0
- cdp/protocol/fetch/methods/service.py +120 -0
- cdp/protocol/fetch/methods/types.py +85 -0
- cdp/protocol/fetch/service.py +21 -0
- cdp/protocol/fetch/types.py +41 -0
- cdp/protocol/file_system/__init__.py +0 -0
- cdp/protocol/file_system/events/__init__.py +0 -0
- cdp/protocol/file_system/events/service.py +20 -0
- cdp/protocol/file_system/events/types.py +3 -0
- cdp/protocol/file_system/methods/__init__.py +0 -0
- cdp/protocol/file_system/methods/service.py +32 -0
- cdp/protocol/file_system/methods/types.py +14 -0
- cdp/protocol/file_system/service.py +21 -0
- cdp/protocol/file_system/types.py +28 -0
- cdp/protocol/headless_experimental/__init__.py +0 -0
- cdp/protocol/headless_experimental/events/__init__.py +0 -0
- cdp/protocol/headless_experimental/events/service.py +20 -0
- cdp/protocol/headless_experimental/events/types.py +3 -0
- cdp/protocol/headless_experimental/methods/__init__.py +0 -0
- cdp/protocol/headless_experimental/methods/service.py +32 -0
- cdp/protocol/headless_experimental/methods/types.py +22 -0
- cdp/protocol/headless_experimental/service.py +21 -0
- cdp/protocol/headless_experimental/types.py +12 -0
- cdp/protocol/heap_profiler/__init__.py +0 -0
- cdp/protocol/heap_profiler/events/__init__.py +0 -0
- cdp/protocol/heap_profiler/events/service.py +61 -0
- cdp/protocol/heap_profiler/events/types.py +18 -0
- cdp/protocol/heap_profiler/methods/__init__.py +0 -0
- cdp/protocol/heap_profiler/methods/service.py +153 -0
- cdp/protocol/heap_profiler/methods/types.py +73 -0
- cdp/protocol/heap_profiler/service.py +21 -0
- cdp/protocol/heap_profiler/types.py +32 -0
- cdp/protocol/indexed_db/__init__.py +0 -0
- cdp/protocol/indexed_db/events/__init__.py +0 -0
- cdp/protocol/indexed_db/events/service.py +20 -0
- cdp/protocol/indexed_db/events/types.py +3 -0
- cdp/protocol/indexed_db/methods/__init__.py +0 -0
- cdp/protocol/indexed_db/methods/service.py +120 -0
- cdp/protocol/indexed_db/methods/types.py +111 -0
- cdp/protocol/indexed_db/service.py +21 -0
- cdp/protocol/indexed_db/types.py +74 -0
- cdp/protocol/input/__init__.py +0 -0
- cdp/protocol/input/events/__init__.py +0 -0
- cdp/protocol/input/events/service.py +29 -0
- cdp/protocol/input/events/types.py +10 -0
- cdp/protocol/input/methods/__init__.py +0 -0
- cdp/protocol/input/methods/service.py +164 -0
- cdp/protocol/input/methods/types.py +181 -0
- cdp/protocol/input/service.py +21 -0
- cdp/protocol/input/types.py +46 -0
- cdp/protocol/inspector/__init__.py +0 -0
- cdp/protocol/inspector/events/__init__.py +0 -0
- cdp/protocol/inspector/events/service.py +53 -0
- cdp/protocol/inspector/events/types.py +13 -0
- cdp/protocol/inspector/methods/__init__.py +0 -0
- cdp/protocol/inspector/methods/service.py +43 -0
- cdp/protocol/inspector/methods/types.py +3 -0
- cdp/protocol/inspector/service.py +21 -0
- cdp/protocol/inspector/types.py +3 -0
- cdp/protocol/io/__init__.py +0 -0
- cdp/protocol/io/events/__init__.py +0 -0
- cdp/protocol/io/events/service.py +20 -0
- cdp/protocol/io/events/types.py +3 -0
- cdp/protocol/io/methods/__init__.py +0 -0
- cdp/protocol/io/methods/service.py +54 -0
- cdp/protocol/io/methods/types.py +33 -0
- cdp/protocol/io/service.py +21 -0
- cdp/protocol/io/types.py +6 -0
- cdp/protocol/layer_tree/__init__.py +0 -0
- cdp/protocol/layer_tree/events/__init__.py +0 -0
- cdp/protocol/layer_tree/events/service.py +37 -0
- cdp/protocol/layer_tree/events/types.py +18 -0
- cdp/protocol/layer_tree/methods/__init__.py +0 -0
- cdp/protocol/layer_tree/methods/service.py +120 -0
- cdp/protocol/layer_tree/methods/types.py +70 -0
- cdp/protocol/layer_tree/service.py +21 -0
- cdp/protocol/layer_tree/types.py +73 -0
- cdp/protocol/log/__init__.py +0 -0
- cdp/protocol/log/events/__init__.py +0 -0
- cdp/protocol/log/events/service.py +29 -0
- cdp/protocol/log/events/types.py +11 -0
- cdp/protocol/log/methods/__init__.py +0 -0
- cdp/protocol/log/methods/service.py +76 -0
- cdp/protocol/log/methods/types.py +14 -0
- cdp/protocol/log/service.py +21 -0
- cdp/protocol/log/types.py +40 -0
- cdp/protocol/media/__init__.py +0 -0
- cdp/protocol/media/events/__init__.py +0 -0
- cdp/protocol/media/events/service.py +61 -0
- cdp/protocol/media/events/types.py +27 -0
- cdp/protocol/media/methods/__init__.py +0 -0
- cdp/protocol/media/methods/service.py +43 -0
- cdp/protocol/media/methods/types.py +3 -0
- cdp/protocol/media/service.py +21 -0
- cdp/protocol/media/types.py +42 -0
- cdp/protocol/memory/__init__.py +0 -0
- cdp/protocol/memory/events/__init__.py +0 -0
- cdp/protocol/memory/events/service.py +20 -0
- cdp/protocol/memory/events/types.py +3 -0
- cdp/protocol/memory/methods/__init__.py +0 -0
- cdp/protocol/memory/methods/service.py +142 -0
- cdp/protocol/memory/methods/types.py +48 -0
- cdp/protocol/memory/service.py +21 -0
- cdp/protocol/memory/types.py +34 -0
- cdp/protocol/network/__init__.py +0 -0
- cdp/protocol/network/events/__init__.py +0 -0
- cdp/protocol/network/events/service.py +365 -0
- cdp/protocol/network/events/types.py +360 -0
- cdp/protocol/network/methods/__init__.py +0 -0
- cdp/protocol/network/methods/service.py +384 -0
- cdp/protocol/network/methods/types.py +252 -0
- cdp/protocol/network/service.py +21 -0
- cdp/protocol/network/types.py +691 -0
- cdp/protocol/overlay/__init__.py +0 -0
- cdp/protocol/overlay/events/__init__.py +0 -0
- cdp/protocol/overlay/events/service.py +53 -0
- cdp/protocol/overlay/events/types.py +20 -0
- cdp/protocol/overlay/methods/__init__.py +0 -0
- cdp/protocol/overlay/methods/service.py +307 -0
- cdp/protocol/overlay/methods/types.py +144 -0
- cdp/protocol/overlay/service.py +21 -0
- cdp/protocol/overlay/types.py +198 -0
- cdp/protocol/page/__init__.py +0 -0
- cdp/protocol/page/events/__init__.py +0 -0
- cdp/protocol/page/events/service.py +213 -0
- cdp/protocol/page/events/types.py +147 -0
- cdp/protocol/page/methods/__init__.py +0 -0
- cdp/protocol/page/methods/service.py +560 -0
- cdp/protocol/page/methods/types.py +346 -0
- cdp/protocol/page/service.py +21 -0
- cdp/protocol/page/types.py +379 -0
- cdp/protocol/performance/__init__.py +0 -0
- cdp/protocol/performance/events/__init__.py +0 -0
- cdp/protocol/performance/events/service.py +29 -0
- cdp/protocol/performance/events/types.py +13 -0
- cdp/protocol/performance/methods/__init__.py +0 -0
- cdp/protocol/performance/methods/service.py +54 -0
- cdp/protocol/performance/methods/types.py +18 -0
- cdp/protocol/performance/service.py +21 -0
- cdp/protocol/performance/types.py +10 -0
- cdp/protocol/performance_timeline/__init__.py +0 -0
- cdp/protocol/performance_timeline/events/__init__.py +0 -0
- cdp/protocol/performance_timeline/events/service.py +29 -0
- cdp/protocol/performance_timeline/events/types.py +10 -0
- cdp/protocol/performance_timeline/methods/__init__.py +0 -0
- cdp/protocol/performance_timeline/methods/service.py +32 -0
- cdp/protocol/performance_timeline/methods/types.py +7 -0
- cdp/protocol/performance_timeline/service.py +21 -0
- cdp/protocol/performance_timeline/types.py +46 -0
- cdp/protocol/preload/__init__.py +0 -0
- cdp/protocol/preload/events/__init__.py +0 -0
- cdp/protocol/preload/events/service.py +69 -0
- cdp/protocol/preload/events/types.py +49 -0
- cdp/protocol/preload/methods/__init__.py +0 -0
- cdp/protocol/preload/methods/service.py +43 -0
- cdp/protocol/preload/methods/types.py +3 -0
- cdp/protocol/preload/service.py +21 -0
- cdp/protocol/preload/types.py +56 -0
- cdp/protocol/profiler/__init__.py +0 -0
- cdp/protocol/profiler/events/__init__.py +0 -0
- cdp/protocol/profiler/events/service.py +45 -0
- cdp/protocol/profiler/events/types.py +30 -0
- cdp/protocol/profiler/methods/__init__.py +0 -0
- cdp/protocol/profiler/methods/service.py +120 -0
- cdp/protocol/profiler/methods/types.py +45 -0
- cdp/protocol/profiler/service.py +21 -0
- cdp/protocol/profiler/types.py +65 -0
- cdp/protocol/pwa/__init__.py +0 -0
- cdp/protocol/pwa/events/__init__.py +0 -0
- cdp/protocol/pwa/events/service.py +20 -0
- cdp/protocol/pwa/events/types.py +3 -0
- cdp/protocol/pwa/methods/__init__.py +0 -0
- cdp/protocol/pwa/methods/service.py +98 -0
- cdp/protocol/pwa/methods/types.py +43 -0
- cdp/protocol/pwa/service.py +21 -0
- cdp/protocol/pwa/types.py +15 -0
- cdp/protocol/py.typed +0 -0
- cdp/protocol/runtime/__init__.py +0 -0
- cdp/protocol/runtime/events/__init__.py +0 -0
- cdp/protocol/runtime/events/service.py +85 -0
- cdp/protocol/runtime/events/types.py +55 -0
- cdp/protocol/runtime/methods/__init__.py +0 -0
- cdp/protocol/runtime/methods/service.py +274 -0
- cdp/protocol/runtime/methods/types.py +226 -0
- cdp/protocol/runtime/service.py +21 -0
- cdp/protocol/runtime/types.py +194 -0
- cdp/protocol/security/__init__.py +0 -0
- cdp/protocol/security/events/__init__.py +0 -0
- cdp/protocol/security/events/service.py +29 -0
- cdp/protocol/security/events/types.py +11 -0
- cdp/protocol/security/methods/__init__.py +0 -0
- cdp/protocol/security/methods/service.py +54 -0
- cdp/protocol/security/methods/types.py +9 -0
- cdp/protocol/security/service.py +21 -0
- cdp/protocol/security/types.py +102 -0
- cdp/protocol/service_worker/__init__.py +0 -0
- cdp/protocol/service_worker/events/__init__.py +0 -0
- cdp/protocol/service_worker/events/service.py +45 -0
- cdp/protocol/service_worker/events/types.py +16 -0
- cdp/protocol/service_worker/methods/__init__.py +0 -0
- cdp/protocol/service_worker/methods/service.py +153 -0
- cdp/protocol/service_worker/methods/types.py +36 -0
- cdp/protocol/service_worker/service.py +21 -0
- cdp/protocol/service_worker/types.py +38 -0
- cdp/protocol/storage/__init__.py +0 -0
- cdp/protocol/storage/events/__init__.py +0 -0
- cdp/protocol/storage/events/service.py +141 -0
- cdp/protocol/storage/events/types.py +139 -0
- cdp/protocol/storage/methods/__init__.py +0 -0
- cdp/protocol/storage/methods/service.py +428 -0
- cdp/protocol/storage/methods/types.py +184 -0
- cdp/protocol/storage/service.py +21 -0
- cdp/protocol/storage/types.py +236 -0
- cdp/protocol/system_info/__init__.py +0 -0
- cdp/protocol/system_info/events/__init__.py +0 -0
- cdp/protocol/system_info/events/service.py +20 -0
- cdp/protocol/system_info/events/types.py +3 -0
- cdp/protocol/system_info/methods/__init__.py +0 -0
- cdp/protocol/system_info/methods/service.py +54 -0
- cdp/protocol/system_info/methods/types.py +27 -0
- cdp/protocol/system_info/service.py +21 -0
- cdp/protocol/system_info/types.py +71 -0
- cdp/protocol/target/__init__.py +0 -0
- cdp/protocol/target/events/__init__.py +0 -0
- cdp/protocol/target/events/service.py +77 -0
- cdp/protocol/target/events/types.py +38 -0
- cdp/protocol/target/methods/__init__.py +0 -0
- cdp/protocol/target/methods/service.py +219 -0
- cdp/protocol/target/methods/types.py +148 -0
- cdp/protocol/target/service.py +21 -0
- cdp/protocol/target/types.py +44 -0
- cdp/protocol/tethering/__init__.py +0 -0
- cdp/protocol/tethering/events/__init__.py +0 -0
- cdp/protocol/tethering/events/service.py +29 -0
- cdp/protocol/tethering/events/types.py +9 -0
- cdp/protocol/tethering/methods/__init__.py +0 -0
- cdp/protocol/tethering/methods/service.py +43 -0
- cdp/protocol/tethering/methods/types.py +10 -0
- cdp/protocol/tethering/service.py +21 -0
- cdp/protocol/tethering/types.py +3 -0
- cdp/protocol/tracing/__init__.py +0 -0
- cdp/protocol/tracing/events/__init__.py +0 -0
- cdp/protocol/tracing/events/service.py +45 -0
- cdp/protocol/tracing/events/types.py +28 -0
- cdp/protocol/tracing/methods/__init__.py +0 -0
- cdp/protocol/tracing/methods/service.py +87 -0
- cdp/protocol/tracing/methods/types.py +54 -0
- cdp/protocol/tracing/service.py +21 -0
- cdp/protocol/tracing/types.py +34 -0
- cdp/protocol/web_audio/__init__.py +0 -0
- cdp/protocol/web_audio/events/__init__.py +0 -0
- cdp/protocol/web_audio/events/service.py +125 -0
- cdp/protocol/web_audio/events/types.py +56 -0
- cdp/protocol/web_audio/methods/__init__.py +0 -0
- cdp/protocol/web_audio/methods/service.py +54 -0
- cdp/protocol/web_audio/methods/types.py +17 -0
- cdp/protocol/web_audio/service.py +21 -0
- cdp/protocol/web_audio/types.py +66 -0
- cdp/protocol/web_authn/__init__.py +0 -0
- cdp/protocol/web_authn/events/__init__.py +0 -0
- cdp/protocol/web_authn/events/service.py +53 -0
- cdp/protocol/web_authn/events/types.py +21 -0
- cdp/protocol/web_authn/methods/__init__.py +0 -0
- cdp/protocol/web_authn/methods/service.py +164 -0
- cdp/protocol/web_authn/methods/types.py +61 -0
- cdp/protocol/web_authn/service.py +21 -0
- cdp/protocol/web_authn/types.py +54 -0
- cdp/py.typed +0 -0
- cdp/service.py +184 -0
- chromedeveloperprotocol_client-0.1.0.dist-info/METADATA +15 -0
- chromedeveloperprotocol_client-0.1.0.dist-info/RECORD +476 -0
- chromedeveloperprotocol_client-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"""CDP Runtime Domain Methods"""
|
|
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 RuntimeMethods:
|
|
10
|
+
"""
|
|
11
|
+
Methods for the Runtime domain.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the Runtime methods.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
self.client = client
|
|
21
|
+
|
|
22
|
+
async def await_promise(self, params: Optional[awaitPromiseParameters]=None,session_id: Optional[str] = None) -> awaitPromiseReturns:
|
|
23
|
+
"""
|
|
24
|
+
Add handler to promise with given promise object id.
|
|
25
|
+
Args:
|
|
26
|
+
params (awaitPromiseParameters, optional): Parameters for the awaitPromise method.
|
|
27
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
awaitPromiseReturns: The result of the awaitPromise call.
|
|
31
|
+
"""
|
|
32
|
+
return await self.client.send(method="Runtime.awaitPromise", params=params,session_id=session_id)
|
|
33
|
+
async def call_function_on(self, params: Optional[callFunctionOnParameters]=None,session_id: Optional[str] = None) -> callFunctionOnReturns:
|
|
34
|
+
"""
|
|
35
|
+
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
|
|
36
|
+
Args:
|
|
37
|
+
params (callFunctionOnParameters, optional): Parameters for the callFunctionOn method.
|
|
38
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
callFunctionOnReturns: The result of the callFunctionOn call.
|
|
42
|
+
"""
|
|
43
|
+
return await self.client.send(method="Runtime.callFunctionOn", params=params,session_id=session_id)
|
|
44
|
+
async def compile_script(self, params: Optional[compileScriptParameters]=None,session_id: Optional[str] = None) -> compileScriptReturns:
|
|
45
|
+
"""
|
|
46
|
+
Compiles expression.
|
|
47
|
+
Args:
|
|
48
|
+
params (compileScriptParameters, optional): Parameters for the compileScript method.
|
|
49
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
compileScriptReturns: The result of the compileScript call.
|
|
53
|
+
"""
|
|
54
|
+
return await self.client.send(method="Runtime.compileScript", params=params,session_id=session_id)
|
|
55
|
+
async def disable(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
56
|
+
"""
|
|
57
|
+
Disables reporting of execution contexts creation.
|
|
58
|
+
Args:
|
|
59
|
+
params (None, optional): Parameters for the disable method.
|
|
60
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
61
|
+
|
|
62
|
+
Returns:
|
|
63
|
+
Dict[str, Any]: The result of the disable call.
|
|
64
|
+
"""
|
|
65
|
+
return await self.client.send(method="Runtime.disable", params=params,session_id=session_id)
|
|
66
|
+
async def discard_console_entries(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
67
|
+
"""
|
|
68
|
+
Discards collected exceptions and console API calls.
|
|
69
|
+
Args:
|
|
70
|
+
params (None, optional): Parameters for the discardConsoleEntries method.
|
|
71
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
72
|
+
|
|
73
|
+
Returns:
|
|
74
|
+
Dict[str, Any]: The result of the discardConsoleEntries call.
|
|
75
|
+
"""
|
|
76
|
+
return await self.client.send(method="Runtime.discardConsoleEntries", params=params,session_id=session_id)
|
|
77
|
+
async def enable(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
78
|
+
"""
|
|
79
|
+
Enables reporting of execution contexts creation by means of `executionContextCreated` event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
|
|
80
|
+
Args:
|
|
81
|
+
params (None, optional): Parameters for the enable method.
|
|
82
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
83
|
+
|
|
84
|
+
Returns:
|
|
85
|
+
Dict[str, Any]: The result of the enable call.
|
|
86
|
+
"""
|
|
87
|
+
return await self.client.send(method="Runtime.enable", params=params,session_id=session_id)
|
|
88
|
+
async def evaluate(self, params: Optional[evaluateParameters]=None,session_id: Optional[str] = None) -> evaluateReturns:
|
|
89
|
+
"""
|
|
90
|
+
Evaluates expression on global object.
|
|
91
|
+
Args:
|
|
92
|
+
params (evaluateParameters, optional): Parameters for the evaluate method.
|
|
93
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
94
|
+
|
|
95
|
+
Returns:
|
|
96
|
+
evaluateReturns: The result of the evaluate call.
|
|
97
|
+
"""
|
|
98
|
+
return await self.client.send(method="Runtime.evaluate", params=params,session_id=session_id)
|
|
99
|
+
async def get_isolate_id(self, params: None=None,session_id: Optional[str] = None) -> getIsolateIdReturns:
|
|
100
|
+
"""
|
|
101
|
+
Returns the isolate id.
|
|
102
|
+
Args:
|
|
103
|
+
params (None, optional): Parameters for the getIsolateId method.
|
|
104
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
105
|
+
|
|
106
|
+
Returns:
|
|
107
|
+
getIsolateIdReturns: The result of the getIsolateId call.
|
|
108
|
+
"""
|
|
109
|
+
return await self.client.send(method="Runtime.getIsolateId", params=params,session_id=session_id)
|
|
110
|
+
async def get_heap_usage(self, params: None=None,session_id: Optional[str] = None) -> getHeapUsageReturns:
|
|
111
|
+
"""
|
|
112
|
+
Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
|
|
113
|
+
Args:
|
|
114
|
+
params (None, optional): Parameters for the getHeapUsage method.
|
|
115
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
116
|
+
|
|
117
|
+
Returns:
|
|
118
|
+
getHeapUsageReturns: The result of the getHeapUsage call.
|
|
119
|
+
"""
|
|
120
|
+
return await self.client.send(method="Runtime.getHeapUsage", params=params,session_id=session_id)
|
|
121
|
+
async def get_properties(self, params: Optional[getPropertiesParameters]=None,session_id: Optional[str] = None) -> getPropertiesReturns:
|
|
122
|
+
"""
|
|
123
|
+
Returns properties of a given object. Object group of the result is inherited from the target object.
|
|
124
|
+
Args:
|
|
125
|
+
params (getPropertiesParameters, optional): Parameters for the getProperties method.
|
|
126
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
getPropertiesReturns: The result of the getProperties call.
|
|
130
|
+
"""
|
|
131
|
+
return await self.client.send(method="Runtime.getProperties", params=params,session_id=session_id)
|
|
132
|
+
async def global_lexical_scope_names(self, params: Optional[globalLexicalScopeNamesParameters]=None,session_id: Optional[str] = None) -> globalLexicalScopeNamesReturns:
|
|
133
|
+
"""
|
|
134
|
+
Returns all let, const and class variables from global scope.
|
|
135
|
+
Args:
|
|
136
|
+
params (globalLexicalScopeNamesParameters, optional): Parameters for the globalLexicalScopeNames method.
|
|
137
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
globalLexicalScopeNamesReturns: The result of the globalLexicalScopeNames call.
|
|
141
|
+
"""
|
|
142
|
+
return await self.client.send(method="Runtime.globalLexicalScopeNames", params=params,session_id=session_id)
|
|
143
|
+
async def query_objects(self, params: Optional[queryObjectsParameters]=None,session_id: Optional[str] = None) -> queryObjectsReturns:
|
|
144
|
+
"""
|
|
145
|
+
No description available for queryObjects.
|
|
146
|
+
Args:
|
|
147
|
+
params (queryObjectsParameters, optional): Parameters for the queryObjects method.
|
|
148
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
queryObjectsReturns: The result of the queryObjects call.
|
|
152
|
+
"""
|
|
153
|
+
return await self.client.send(method="Runtime.queryObjects", params=params,session_id=session_id)
|
|
154
|
+
async def release_object(self, params: Optional[releaseObjectParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
155
|
+
"""
|
|
156
|
+
Releases remote object with given id.
|
|
157
|
+
Args:
|
|
158
|
+
params (releaseObjectParameters, optional): Parameters for the releaseObject method.
|
|
159
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Dict[str, Any]: The result of the releaseObject call.
|
|
163
|
+
"""
|
|
164
|
+
return await self.client.send(method="Runtime.releaseObject", params=params,session_id=session_id)
|
|
165
|
+
async def release_object_group(self, params: Optional[releaseObjectGroupParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
166
|
+
"""
|
|
167
|
+
Releases all remote objects that belong to a given group.
|
|
168
|
+
Args:
|
|
169
|
+
params (releaseObjectGroupParameters, optional): Parameters for the releaseObjectGroup method.
|
|
170
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
171
|
+
|
|
172
|
+
Returns:
|
|
173
|
+
Dict[str, Any]: The result of the releaseObjectGroup call.
|
|
174
|
+
"""
|
|
175
|
+
return await self.client.send(method="Runtime.releaseObjectGroup", params=params,session_id=session_id)
|
|
176
|
+
async def run_if_waiting_for_debugger(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
177
|
+
"""
|
|
178
|
+
Tells inspected instance to run if it was waiting for debugger to attach.
|
|
179
|
+
Args:
|
|
180
|
+
params (None, optional): Parameters for the runIfWaitingForDebugger method.
|
|
181
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
182
|
+
|
|
183
|
+
Returns:
|
|
184
|
+
Dict[str, Any]: The result of the runIfWaitingForDebugger call.
|
|
185
|
+
"""
|
|
186
|
+
return await self.client.send(method="Runtime.runIfWaitingForDebugger", params=params,session_id=session_id)
|
|
187
|
+
async def run_script(self, params: Optional[runScriptParameters]=None,session_id: Optional[str] = None) -> runScriptReturns:
|
|
188
|
+
"""
|
|
189
|
+
Runs script with given id in a given context.
|
|
190
|
+
Args:
|
|
191
|
+
params (runScriptParameters, optional): Parameters for the runScript method.
|
|
192
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
193
|
+
|
|
194
|
+
Returns:
|
|
195
|
+
runScriptReturns: The result of the runScript call.
|
|
196
|
+
"""
|
|
197
|
+
return await self.client.send(method="Runtime.runScript", params=params,session_id=session_id)
|
|
198
|
+
async def set_async_call_stack_depth(self, params: Optional[setAsyncCallStackDepthParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
199
|
+
"""
|
|
200
|
+
Enables or disables async call stacks tracking.
|
|
201
|
+
Args:
|
|
202
|
+
params (setAsyncCallStackDepthParameters, optional): Parameters for the setAsyncCallStackDepth method.
|
|
203
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
Dict[str, Any]: The result of the setAsyncCallStackDepth call.
|
|
207
|
+
"""
|
|
208
|
+
return await self.client.send(method="Runtime.setAsyncCallStackDepth", params=params,session_id=session_id)
|
|
209
|
+
async def set_custom_object_formatter_enabled(self, params: Optional[setCustomObjectFormatterEnabledParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
210
|
+
"""
|
|
211
|
+
No description available for setCustomObjectFormatterEnabled.
|
|
212
|
+
Args:
|
|
213
|
+
params (setCustomObjectFormatterEnabledParameters, optional): Parameters for the setCustomObjectFormatterEnabled method.
|
|
214
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
Dict[str, Any]: The result of the setCustomObjectFormatterEnabled call.
|
|
218
|
+
"""
|
|
219
|
+
return await self.client.send(method="Runtime.setCustomObjectFormatterEnabled", params=params,session_id=session_id)
|
|
220
|
+
async def set_max_call_stack_size_to_capture(self, params: Optional[setMaxCallStackSizeToCaptureParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
221
|
+
"""
|
|
222
|
+
No description available for setMaxCallStackSizeToCapture.
|
|
223
|
+
Args:
|
|
224
|
+
params (setMaxCallStackSizeToCaptureParameters, optional): Parameters for the setMaxCallStackSizeToCapture method.
|
|
225
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
226
|
+
|
|
227
|
+
Returns:
|
|
228
|
+
Dict[str, Any]: The result of the setMaxCallStackSizeToCapture call.
|
|
229
|
+
"""
|
|
230
|
+
return await self.client.send(method="Runtime.setMaxCallStackSizeToCapture", params=params,session_id=session_id)
|
|
231
|
+
async def terminate_execution(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
232
|
+
"""
|
|
233
|
+
Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.
|
|
234
|
+
Args:
|
|
235
|
+
params (None, optional): Parameters for the terminateExecution method.
|
|
236
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
237
|
+
|
|
238
|
+
Returns:
|
|
239
|
+
Dict[str, Any]: The result of the terminateExecution call.
|
|
240
|
+
"""
|
|
241
|
+
return await self.client.send(method="Runtime.terminateExecution", params=params,session_id=session_id)
|
|
242
|
+
async def add_binding(self, params: Optional[addBindingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
243
|
+
"""
|
|
244
|
+
If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.
|
|
245
|
+
Args:
|
|
246
|
+
params (addBindingParameters, optional): Parameters for the addBinding method.
|
|
247
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
248
|
+
|
|
249
|
+
Returns:
|
|
250
|
+
Dict[str, Any]: The result of the addBinding call.
|
|
251
|
+
"""
|
|
252
|
+
return await self.client.send(method="Runtime.addBinding", params=params,session_id=session_id)
|
|
253
|
+
async def remove_binding(self, params: Optional[removeBindingParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
254
|
+
"""
|
|
255
|
+
This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.
|
|
256
|
+
Args:
|
|
257
|
+
params (removeBindingParameters, optional): Parameters for the removeBinding method.
|
|
258
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
259
|
+
|
|
260
|
+
Returns:
|
|
261
|
+
Dict[str, Any]: The result of the removeBinding call.
|
|
262
|
+
"""
|
|
263
|
+
return await self.client.send(method="Runtime.removeBinding", params=params,session_id=session_id)
|
|
264
|
+
async def get_exception_details(self, params: Optional[getExceptionDetailsParameters]=None,session_id: Optional[str] = None) -> getExceptionDetailsReturns:
|
|
265
|
+
"""
|
|
266
|
+
This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown.
|
|
267
|
+
Args:
|
|
268
|
+
params (getExceptionDetailsParameters, optional): Parameters for the getExceptionDetails method.
|
|
269
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
270
|
+
|
|
271
|
+
Returns:
|
|
272
|
+
getExceptionDetailsReturns: The result of the getExceptionDetails call.
|
|
273
|
+
"""
|
|
274
|
+
return await self.client.send(method="Runtime.getExceptionDetails", params=params,session_id=session_id)
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"""CDP Runtime 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.runtime.types import CallArgument
|
|
8
|
+
from cdp.protocol.runtime.types import ExceptionDetails
|
|
9
|
+
from cdp.protocol.runtime.types import ExecutionContextId
|
|
10
|
+
from cdp.protocol.runtime.types import InternalPropertyDescriptor
|
|
11
|
+
from cdp.protocol.runtime.types import PrivatePropertyDescriptor
|
|
12
|
+
from cdp.protocol.runtime.types import PropertyDescriptor
|
|
13
|
+
from cdp.protocol.runtime.types import RemoteObject
|
|
14
|
+
from cdp.protocol.runtime.types import RemoteObjectId
|
|
15
|
+
from cdp.protocol.runtime.types import ScriptId
|
|
16
|
+
from cdp.protocol.runtime.types import SerializationOptions
|
|
17
|
+
from cdp.protocol.runtime.types import TimeDelta
|
|
18
|
+
|
|
19
|
+
class awaitPromiseParameters(TypedDict, total=True):
|
|
20
|
+
promiseObjectId: 'RemoteObjectId'
|
|
21
|
+
"""Identifier of the promise."""
|
|
22
|
+
returnByValue: NotRequired['bool']
|
|
23
|
+
"""Whether the result is expected to be a JSON object that should be sent by value."""
|
|
24
|
+
generatePreview: NotRequired['bool']
|
|
25
|
+
"""Whether preview should be generated for the result."""
|
|
26
|
+
class callFunctionOnParameters(TypedDict, total=True):
|
|
27
|
+
functionDeclaration: 'str'
|
|
28
|
+
"""Declaration of the function to call."""
|
|
29
|
+
objectId: NotRequired['RemoteObjectId']
|
|
30
|
+
"""Identifier of the object to call function on. Either objectId or executionContextId should be specified."""
|
|
31
|
+
arguments: NotRequired['List[CallArgument]']
|
|
32
|
+
"""Call arguments. All call arguments must belong to the same JavaScript world as the target object."""
|
|
33
|
+
silent: NotRequired['bool']
|
|
34
|
+
"""In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state."""
|
|
35
|
+
returnByValue: NotRequired['bool']
|
|
36
|
+
"""Whether the result is expected to be a JSON object which should be sent by value. Can be overriden by serializationOptions."""
|
|
37
|
+
generatePreview: NotRequired['bool']
|
|
38
|
+
"""Whether preview should be generated for the result."""
|
|
39
|
+
userGesture: NotRequired['bool']
|
|
40
|
+
"""Whether execution should be treated as initiated by user in the UI."""
|
|
41
|
+
awaitPromise: NotRequired['bool']
|
|
42
|
+
"""Whether execution should await for resulting value and return once awaited promise is resolved."""
|
|
43
|
+
executionContextId: NotRequired['ExecutionContextId']
|
|
44
|
+
"""Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified."""
|
|
45
|
+
objectGroup: NotRequired['str']
|
|
46
|
+
"""Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object."""
|
|
47
|
+
throwOnSideEffect: NotRequired['bool']
|
|
48
|
+
"""Whether to throw an exception if side effect cannot be ruled out during evaluation."""
|
|
49
|
+
uniqueContextId: NotRequired['str']
|
|
50
|
+
"""An alternative way to specify the execution context to call function on. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental function call in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with executionContextId."""
|
|
51
|
+
serializationOptions: NotRequired['SerializationOptions']
|
|
52
|
+
"""Specifies the result serialization. If provided, overrides generatePreview and returnByValue."""
|
|
53
|
+
class compileScriptParameters(TypedDict, total=True):
|
|
54
|
+
expression: 'str'
|
|
55
|
+
"""Expression to compile."""
|
|
56
|
+
sourceURL: 'str'
|
|
57
|
+
"""Source url to be set for the script."""
|
|
58
|
+
persistScript: 'bool'
|
|
59
|
+
"""Specifies whether the compiled script should be persisted."""
|
|
60
|
+
executionContextId: NotRequired['ExecutionContextId']
|
|
61
|
+
"""Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page."""
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class evaluateParameters(TypedDict, total=True):
|
|
66
|
+
expression: 'str'
|
|
67
|
+
"""Expression to evaluate."""
|
|
68
|
+
objectGroup: NotRequired['str']
|
|
69
|
+
"""Symbolic group name that can be used to release multiple objects."""
|
|
70
|
+
includeCommandLineAPI: NotRequired['bool']
|
|
71
|
+
"""Determines whether Command Line API should be available during the evaluation."""
|
|
72
|
+
silent: NotRequired['bool']
|
|
73
|
+
"""In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state."""
|
|
74
|
+
contextId: NotRequired['ExecutionContextId']
|
|
75
|
+
"""Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. This is mutually exclusive with uniqueContextId, which offers an alternative way to identify the execution context that is more reliable in a multi-process environment."""
|
|
76
|
+
returnByValue: NotRequired['bool']
|
|
77
|
+
"""Whether the result is expected to be a JSON object that should be sent by value."""
|
|
78
|
+
generatePreview: NotRequired['bool']
|
|
79
|
+
"""Whether preview should be generated for the result."""
|
|
80
|
+
userGesture: NotRequired['bool']
|
|
81
|
+
"""Whether execution should be treated as initiated by user in the UI."""
|
|
82
|
+
awaitPromise: NotRequired['bool']
|
|
83
|
+
"""Whether execution should await for resulting value and return once awaited promise is resolved."""
|
|
84
|
+
throwOnSideEffect: NotRequired['bool']
|
|
85
|
+
"""Whether to throw an exception if side effect cannot be ruled out during evaluation. This implies disableBreaks below."""
|
|
86
|
+
timeout: NotRequired['TimeDelta']
|
|
87
|
+
"""Terminate execution after timing out (number of milliseconds)."""
|
|
88
|
+
disableBreaks: NotRequired['bool']
|
|
89
|
+
"""Disable breakpoints during execution."""
|
|
90
|
+
replMode: NotRequired['bool']
|
|
91
|
+
"""Setting this flag to true enables let re-declaration and top-level await. Note that let variables can only be re-declared if they originate from replMode themselves."""
|
|
92
|
+
allowUnsafeEvalBlockedByCSP: NotRequired['bool']
|
|
93
|
+
"""The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments. This flag bypasses CSP for this evaluation and allows unsafe-eval. Defaults to true."""
|
|
94
|
+
uniqueContextId: NotRequired['str']
|
|
95
|
+
"""An alternative way to specify the execution context to evaluate in. Compared to contextId that may be reused across processes, this is guaranteed to be system-unique, so it can be used to prevent accidental evaluation of the expression in context different than intended (e.g. as a result of navigation across process boundaries). This is mutually exclusive with contextId."""
|
|
96
|
+
serializationOptions: NotRequired['SerializationOptions']
|
|
97
|
+
"""Specifies the result serialization. If provided, overrides generatePreview and returnByValue."""
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class getPropertiesParameters(TypedDict, total=True):
|
|
101
|
+
objectId: 'RemoteObjectId'
|
|
102
|
+
"""Identifier of the object to return properties for."""
|
|
103
|
+
ownProperties: NotRequired['bool']
|
|
104
|
+
"""If true, returns properties belonging only to the element itself, not to its prototype chain."""
|
|
105
|
+
accessorPropertiesOnly: NotRequired['bool']
|
|
106
|
+
"""If true, returns accessor properties (with getter/setter) only; internal properties are not returned either."""
|
|
107
|
+
generatePreview: NotRequired['bool']
|
|
108
|
+
"""Whether preview should be generated for the results."""
|
|
109
|
+
nonIndexedPropertiesOnly: NotRequired['bool']
|
|
110
|
+
"""If true, returns non-indexed properties only."""
|
|
111
|
+
class globalLexicalScopeNamesParameters(TypedDict, total=False):
|
|
112
|
+
executionContextId: NotRequired['ExecutionContextId']
|
|
113
|
+
"""Specifies in which execution context to lookup global scope variables."""
|
|
114
|
+
class queryObjectsParameters(TypedDict, total=True):
|
|
115
|
+
prototypeObjectId: 'RemoteObjectId'
|
|
116
|
+
"""Identifier of the prototype to return objects for."""
|
|
117
|
+
objectGroup: NotRequired['str']
|
|
118
|
+
"""Symbolic group name that can be used to release the results."""
|
|
119
|
+
class releaseObjectParameters(TypedDict, total=True):
|
|
120
|
+
objectId: 'RemoteObjectId'
|
|
121
|
+
"""Identifier of the object to release."""
|
|
122
|
+
class releaseObjectGroupParameters(TypedDict, total=True):
|
|
123
|
+
objectGroup: 'str'
|
|
124
|
+
"""Symbolic object group name."""
|
|
125
|
+
|
|
126
|
+
class runScriptParameters(TypedDict, total=True):
|
|
127
|
+
scriptId: 'ScriptId'
|
|
128
|
+
"""Id of the script to run."""
|
|
129
|
+
executionContextId: NotRequired['ExecutionContextId']
|
|
130
|
+
"""Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page."""
|
|
131
|
+
objectGroup: NotRequired['str']
|
|
132
|
+
"""Symbolic group name that can be used to release multiple objects."""
|
|
133
|
+
silent: NotRequired['bool']
|
|
134
|
+
"""In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state."""
|
|
135
|
+
includeCommandLineAPI: NotRequired['bool']
|
|
136
|
+
"""Determines whether Command Line API should be available during the evaluation."""
|
|
137
|
+
returnByValue: NotRequired['bool']
|
|
138
|
+
"""Whether the result is expected to be a JSON object which should be sent by value."""
|
|
139
|
+
generatePreview: NotRequired['bool']
|
|
140
|
+
"""Whether preview should be generated for the result."""
|
|
141
|
+
awaitPromise: NotRequired['bool']
|
|
142
|
+
"""Whether execution should await for resulting value and return once awaited promise is resolved."""
|
|
143
|
+
class setAsyncCallStackDepthParameters(TypedDict, total=True):
|
|
144
|
+
maxDepth: 'int'
|
|
145
|
+
"""Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default)."""
|
|
146
|
+
class setCustomObjectFormatterEnabledParameters(TypedDict, total=True):
|
|
147
|
+
enabled: 'bool'
|
|
148
|
+
class setMaxCallStackSizeToCaptureParameters(TypedDict, total=True):
|
|
149
|
+
size: 'int'
|
|
150
|
+
|
|
151
|
+
class addBindingParameters(TypedDict, total=True):
|
|
152
|
+
name: 'str'
|
|
153
|
+
executionContextId: NotRequired['ExecutionContextId']
|
|
154
|
+
"""If specified, the binding would only be exposed to the specified execution context. If omitted and executionContextName is not set, the binding is exposed to all execution contexts of the target. This parameter is mutually exclusive with executionContextName. Deprecated in favor of executionContextName due to an unclear use case and bugs in implementation (crbug.com/1169639). executionContextId will be removed in the future."""
|
|
155
|
+
executionContextName: NotRequired['str']
|
|
156
|
+
"""If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added. See also ExecutionContext.name and worldName parameter to Page.addScriptToEvaluateOnNewDocument. This parameter is mutually exclusive with executionContextId."""
|
|
157
|
+
class removeBindingParameters(TypedDict, total=True):
|
|
158
|
+
name: 'str'
|
|
159
|
+
class getExceptionDetailsParameters(TypedDict, total=True):
|
|
160
|
+
errorObjectId: 'RemoteObjectId'
|
|
161
|
+
"""The error object for which to resolve the exception details."""
|
|
162
|
+
class awaitPromiseReturns(TypedDict):
|
|
163
|
+
result: 'RemoteObject'
|
|
164
|
+
"""Promise result. Will contain rejected value if promise was rejected."""
|
|
165
|
+
exceptionDetails: 'ExceptionDetails'
|
|
166
|
+
"""Exception details if stack strace is available."""
|
|
167
|
+
class callFunctionOnReturns(TypedDict):
|
|
168
|
+
result: 'RemoteObject'
|
|
169
|
+
"""Call result."""
|
|
170
|
+
exceptionDetails: 'ExceptionDetails'
|
|
171
|
+
"""Exception details."""
|
|
172
|
+
class compileScriptReturns(TypedDict):
|
|
173
|
+
scriptId: 'ScriptId'
|
|
174
|
+
"""Id of the script."""
|
|
175
|
+
exceptionDetails: 'ExceptionDetails'
|
|
176
|
+
"""Exception details."""
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
class evaluateReturns(TypedDict):
|
|
181
|
+
result: 'RemoteObject'
|
|
182
|
+
"""Evaluation result."""
|
|
183
|
+
exceptionDetails: 'ExceptionDetails'
|
|
184
|
+
"""Exception details."""
|
|
185
|
+
class getIsolateIdReturns(TypedDict):
|
|
186
|
+
id: 'str'
|
|
187
|
+
"""The isolate id."""
|
|
188
|
+
class getHeapUsageReturns(TypedDict):
|
|
189
|
+
usedSize: 'float'
|
|
190
|
+
"""Used JavaScript heap size in bytes."""
|
|
191
|
+
totalSize: 'float'
|
|
192
|
+
"""Allocated JavaScript heap size in bytes."""
|
|
193
|
+
embedderHeapUsedSize: 'float'
|
|
194
|
+
"""Used size in bytes in the embedder's garbage-collected heap."""
|
|
195
|
+
backingStorageSize: 'float'
|
|
196
|
+
"""Size in bytes of backing storage for array buffers and external strings."""
|
|
197
|
+
class getPropertiesReturns(TypedDict):
|
|
198
|
+
result: 'List[PropertyDescriptor]'
|
|
199
|
+
"""Object properties."""
|
|
200
|
+
internalProperties: 'List[InternalPropertyDescriptor]'
|
|
201
|
+
"""Internal object properties (only of the element itself)."""
|
|
202
|
+
privateProperties: 'List[PrivatePropertyDescriptor]'
|
|
203
|
+
"""Object private properties."""
|
|
204
|
+
exceptionDetails: 'ExceptionDetails'
|
|
205
|
+
"""Exception details."""
|
|
206
|
+
class globalLexicalScopeNamesReturns(TypedDict):
|
|
207
|
+
names: 'List[str]'
|
|
208
|
+
class queryObjectsReturns(TypedDict):
|
|
209
|
+
objects: 'RemoteObject'
|
|
210
|
+
"""Array with objects."""
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
class runScriptReturns(TypedDict):
|
|
215
|
+
result: 'RemoteObject'
|
|
216
|
+
"""Run result."""
|
|
217
|
+
exceptionDetails: 'ExceptionDetails'
|
|
218
|
+
"""Exception details."""
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class getExceptionDetailsReturns(TypedDict):
|
|
226
|
+
exceptionDetails: 'ExceptionDetails'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""CDP Runtime Domain"""
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
from .methods.service import RuntimeMethods
|
|
4
|
+
from .events.service import RuntimeEvents
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ...service import Client
|
|
8
|
+
|
|
9
|
+
class Runtime(RuntimeMethods, RuntimeEvents):
|
|
10
|
+
"""
|
|
11
|
+
Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the Runtime domain.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
RuntimeMethods.__init__(self, client)
|
|
21
|
+
RuntimeEvents.__init__(self, client)
|