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,261 @@
|
|
|
1
|
+
"""CDP Emulation 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 RGBA
|
|
8
|
+
from cdp.protocol.emulation.types import DevicePosture
|
|
9
|
+
from cdp.protocol.emulation.types import DisabledImageType
|
|
10
|
+
from cdp.protocol.emulation.types import DisplayFeature
|
|
11
|
+
from cdp.protocol.emulation.types import MediaFeature
|
|
12
|
+
from cdp.protocol.emulation.types import PressureMetadata
|
|
13
|
+
from cdp.protocol.emulation.types import PressureSource
|
|
14
|
+
from cdp.protocol.emulation.types import PressureState
|
|
15
|
+
from cdp.protocol.emulation.types import SafeAreaInsets
|
|
16
|
+
from cdp.protocol.emulation.types import ScreenId
|
|
17
|
+
from cdp.protocol.emulation.types import ScreenInfo
|
|
18
|
+
from cdp.protocol.emulation.types import ScreenOrientation
|
|
19
|
+
from cdp.protocol.emulation.types import SensorMetadata
|
|
20
|
+
from cdp.protocol.emulation.types import SensorReading
|
|
21
|
+
from cdp.protocol.emulation.types import SensorType
|
|
22
|
+
from cdp.protocol.emulation.types import UserAgentMetadata
|
|
23
|
+
from cdp.protocol.emulation.types import VirtualTimePolicy
|
|
24
|
+
from cdp.protocol.emulation.types import WorkAreaInsets
|
|
25
|
+
from cdp.protocol.network.types import TimeSinceEpoch
|
|
26
|
+
from cdp.protocol.page.types import Viewport
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class setFocusEmulationEnabledParameters(TypedDict, total=True):
|
|
32
|
+
enabled: 'bool'
|
|
33
|
+
"""Whether to enable to disable focus emulation."""
|
|
34
|
+
class setAutoDarkModeOverrideParameters(TypedDict, total=False):
|
|
35
|
+
enabled: NotRequired['bool']
|
|
36
|
+
"""Whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared."""
|
|
37
|
+
class setCPUThrottlingRateParameters(TypedDict, total=True):
|
|
38
|
+
rate: 'float'
|
|
39
|
+
"""Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)."""
|
|
40
|
+
class setDefaultBackgroundColorOverrideParameters(TypedDict, total=False):
|
|
41
|
+
color: NotRequired['RGBA']
|
|
42
|
+
"""RGBA of the default background color. If not specified, any existing override will be cleared."""
|
|
43
|
+
class setSafeAreaInsetsOverrideParameters(TypedDict, total=True):
|
|
44
|
+
insets: 'SafeAreaInsets'
|
|
45
|
+
class setDeviceMetricsOverrideParameters(TypedDict, total=True):
|
|
46
|
+
width: 'int'
|
|
47
|
+
"""Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override."""
|
|
48
|
+
height: 'int'
|
|
49
|
+
"""Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override."""
|
|
50
|
+
deviceScaleFactor: 'float'
|
|
51
|
+
"""Overriding device scale factor value. 0 disables the override."""
|
|
52
|
+
mobile: 'bool'
|
|
53
|
+
"""Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more."""
|
|
54
|
+
scale: NotRequired['float']
|
|
55
|
+
"""Scale to apply to resulting view image."""
|
|
56
|
+
screenWidth: NotRequired['int']
|
|
57
|
+
"""Overriding screen width value in pixels (minimum 0, maximum 10000000)."""
|
|
58
|
+
screenHeight: NotRequired['int']
|
|
59
|
+
"""Overriding screen height value in pixels (minimum 0, maximum 10000000)."""
|
|
60
|
+
positionX: NotRequired['int']
|
|
61
|
+
"""Overriding view X position on screen in pixels (minimum 0, maximum 10000000)."""
|
|
62
|
+
positionY: NotRequired['int']
|
|
63
|
+
"""Overriding view Y position on screen in pixels (minimum 0, maximum 10000000)."""
|
|
64
|
+
dontSetVisibleSize: NotRequired['bool']
|
|
65
|
+
"""Do not set visible view size, rely upon explicit setVisibleSize call."""
|
|
66
|
+
screenOrientation: NotRequired['ScreenOrientation']
|
|
67
|
+
"""Screen orientation override."""
|
|
68
|
+
viewport: NotRequired['Viewport']
|
|
69
|
+
"""If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions."""
|
|
70
|
+
displayFeature: NotRequired['DisplayFeature']
|
|
71
|
+
"""If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off. Deprecated, use Emulation.setDisplayFeaturesOverride."""
|
|
72
|
+
devicePosture: NotRequired['DevicePosture']
|
|
73
|
+
"""If set, the posture of a foldable device. If not set the posture is set to continuous. Deprecated, use Emulation.setDevicePostureOverride."""
|
|
74
|
+
class setDevicePostureOverrideParameters(TypedDict, total=True):
|
|
75
|
+
posture: 'DevicePosture'
|
|
76
|
+
|
|
77
|
+
class setDisplayFeaturesOverrideParameters(TypedDict, total=True):
|
|
78
|
+
features: 'List[DisplayFeature]'
|
|
79
|
+
|
|
80
|
+
class setScrollbarsHiddenParameters(TypedDict, total=True):
|
|
81
|
+
hidden: 'bool'
|
|
82
|
+
"""Whether scrollbars should be always hidden."""
|
|
83
|
+
class setDocumentCookieDisabledParameters(TypedDict, total=True):
|
|
84
|
+
disabled: 'bool'
|
|
85
|
+
"""Whether document.coookie API should be disabled."""
|
|
86
|
+
class setEmitTouchEventsForMouseParameters(TypedDict, total=True):
|
|
87
|
+
enabled: 'bool'
|
|
88
|
+
"""Whether touch emulation based on mouse input should be enabled."""
|
|
89
|
+
configuration: NotRequired['Literal["mobile", "desktop"]']
|
|
90
|
+
"""Touch/gesture events configuration. Default: current platform."""
|
|
91
|
+
class setEmulatedMediaParameters(TypedDict, total=False):
|
|
92
|
+
media: NotRequired['str']
|
|
93
|
+
"""Media type to emulate. Empty string disables the override."""
|
|
94
|
+
features: NotRequired['List[MediaFeature]']
|
|
95
|
+
"""Media features to emulate."""
|
|
96
|
+
class setEmulatedVisionDeficiencyParameters(TypedDict, total=True):
|
|
97
|
+
type: 'Literal["none", "blurredVision", "reducedContrast", "achromatopsia", "deuteranopia", "protanopia", "tritanopia"]'
|
|
98
|
+
"""Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies."""
|
|
99
|
+
class setEmulatedOSTextScaleParameters(TypedDict, total=False):
|
|
100
|
+
scale: NotRequired['float']
|
|
101
|
+
class setGeolocationOverrideParameters(TypedDict, total=False):
|
|
102
|
+
latitude: NotRequired['float']
|
|
103
|
+
"""Mock latitude"""
|
|
104
|
+
longitude: NotRequired['float']
|
|
105
|
+
"""Mock longitude"""
|
|
106
|
+
accuracy: NotRequired['float']
|
|
107
|
+
"""Mock accuracy"""
|
|
108
|
+
altitude: NotRequired['float']
|
|
109
|
+
"""Mock altitude"""
|
|
110
|
+
altitudeAccuracy: NotRequired['float']
|
|
111
|
+
"""Mock altitudeAccuracy"""
|
|
112
|
+
heading: NotRequired['float']
|
|
113
|
+
"""Mock heading"""
|
|
114
|
+
speed: NotRequired['float']
|
|
115
|
+
"""Mock speed"""
|
|
116
|
+
class getOverriddenSensorInformationParameters(TypedDict, total=True):
|
|
117
|
+
type: 'SensorType'
|
|
118
|
+
class setSensorOverrideEnabledParameters(TypedDict, total=True):
|
|
119
|
+
enabled: 'bool'
|
|
120
|
+
type: 'SensorType'
|
|
121
|
+
metadata: NotRequired['SensorMetadata']
|
|
122
|
+
class setSensorOverrideReadingsParameters(TypedDict, total=True):
|
|
123
|
+
type: 'SensorType'
|
|
124
|
+
reading: 'SensorReading'
|
|
125
|
+
class setPressureSourceOverrideEnabledParameters(TypedDict, total=True):
|
|
126
|
+
enabled: 'bool'
|
|
127
|
+
source: 'PressureSource'
|
|
128
|
+
metadata: NotRequired['PressureMetadata']
|
|
129
|
+
class setPressureStateOverrideParameters(TypedDict, total=True):
|
|
130
|
+
source: 'PressureSource'
|
|
131
|
+
state: 'PressureState'
|
|
132
|
+
class setPressureDataOverrideParameters(TypedDict, total=True):
|
|
133
|
+
source: 'PressureSource'
|
|
134
|
+
state: 'PressureState'
|
|
135
|
+
ownContributionEstimate: NotRequired['float']
|
|
136
|
+
class setIdleOverrideParameters(TypedDict, total=True):
|
|
137
|
+
isUserActive: 'bool'
|
|
138
|
+
"""Mock isUserActive"""
|
|
139
|
+
isScreenUnlocked: 'bool'
|
|
140
|
+
"""Mock isScreenUnlocked"""
|
|
141
|
+
|
|
142
|
+
class setPageScaleFactorParameters(TypedDict, total=True):
|
|
143
|
+
pageScaleFactor: 'float'
|
|
144
|
+
"""Page scale factor."""
|
|
145
|
+
class setScriptExecutionDisabledParameters(TypedDict, total=True):
|
|
146
|
+
value: 'bool'
|
|
147
|
+
"""Whether script execution should be disabled in the page."""
|
|
148
|
+
class setTouchEmulationEnabledParameters(TypedDict, total=True):
|
|
149
|
+
enabled: 'bool'
|
|
150
|
+
"""Whether the touch event emulation should be enabled."""
|
|
151
|
+
maxTouchPoints: NotRequired['int']
|
|
152
|
+
"""Maximum touch points supported. Defaults to one."""
|
|
153
|
+
class setVirtualTimePolicyParameters(TypedDict, total=True):
|
|
154
|
+
policy: 'VirtualTimePolicy'
|
|
155
|
+
budget: NotRequired['float']
|
|
156
|
+
"""If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent."""
|
|
157
|
+
maxVirtualTimeTaskStarvationCount: NotRequired['int']
|
|
158
|
+
"""If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock."""
|
|
159
|
+
initialVirtualTime: NotRequired['TimeSinceEpoch']
|
|
160
|
+
"""If set, base::Time::Now will be overridden to initially return this value."""
|
|
161
|
+
class setLocaleOverrideParameters(TypedDict, total=False):
|
|
162
|
+
locale: NotRequired['str']
|
|
163
|
+
"""ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale."""
|
|
164
|
+
class setTimezoneOverrideParameters(TypedDict, total=True):
|
|
165
|
+
timezoneId: 'str'
|
|
166
|
+
"""The timezone identifier. List of supported timezones: https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt If empty, disables the override and restores default host system timezone."""
|
|
167
|
+
class setDisabledImageTypesParameters(TypedDict, total=True):
|
|
168
|
+
imageTypes: 'List[DisabledImageType]'
|
|
169
|
+
"""Image types to disable."""
|
|
170
|
+
class setDataSaverOverrideParameters(TypedDict, total=False):
|
|
171
|
+
dataSaverEnabled: NotRequired['bool']
|
|
172
|
+
"""Override value. Omitting the parameter disables the override."""
|
|
173
|
+
class setHardwareConcurrencyOverrideParameters(TypedDict, total=True):
|
|
174
|
+
hardwareConcurrency: 'int'
|
|
175
|
+
"""Hardware concurrency to report"""
|
|
176
|
+
class setUserAgentOverrideParameters(TypedDict, total=True):
|
|
177
|
+
userAgent: 'str'
|
|
178
|
+
"""User agent to use."""
|
|
179
|
+
acceptLanguage: NotRequired['str']
|
|
180
|
+
"""Browser language to emulate."""
|
|
181
|
+
platform: NotRequired['str']
|
|
182
|
+
"""The platform navigator.platform should return."""
|
|
183
|
+
userAgentMetadata: NotRequired['UserAgentMetadata']
|
|
184
|
+
"""To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData"""
|
|
185
|
+
class setAutomationOverrideParameters(TypedDict, total=True):
|
|
186
|
+
enabled: 'bool'
|
|
187
|
+
"""Whether the override should be enabled."""
|
|
188
|
+
class setSmallViewportHeightDifferenceOverrideParameters(TypedDict, total=True):
|
|
189
|
+
difference: 'int'
|
|
190
|
+
"""This will cause an element of size 100svh to be difference pixels smaller than an element of size 100lvh."""
|
|
191
|
+
|
|
192
|
+
class addScreenParameters(TypedDict, total=True):
|
|
193
|
+
left: 'int'
|
|
194
|
+
"""Offset of the left edge of the screen in pixels."""
|
|
195
|
+
top: 'int'
|
|
196
|
+
"""Offset of the top edge of the screen in pixels."""
|
|
197
|
+
width: 'int'
|
|
198
|
+
"""The width of the screen in pixels."""
|
|
199
|
+
height: 'int'
|
|
200
|
+
"""The height of the screen in pixels."""
|
|
201
|
+
workAreaInsets: NotRequired['WorkAreaInsets']
|
|
202
|
+
"""Specifies the screen's work area. Default is entire screen."""
|
|
203
|
+
devicePixelRatio: NotRequired['float']
|
|
204
|
+
"""Specifies the screen's device pixel ratio. Default is 1."""
|
|
205
|
+
rotation: NotRequired['int']
|
|
206
|
+
"""Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270. Default is 0."""
|
|
207
|
+
colorDepth: NotRequired['int']
|
|
208
|
+
"""Specifies the screen's color depth in bits. Default is 24."""
|
|
209
|
+
label: NotRequired['str']
|
|
210
|
+
"""Specifies the descriptive label for the screen. Default is none."""
|
|
211
|
+
isInternal: NotRequired['bool']
|
|
212
|
+
"""Indicates whether the screen is internal to the device or external, attached to the device. Default is false."""
|
|
213
|
+
class removeScreenParameters(TypedDict, total=True):
|
|
214
|
+
screenId: 'ScreenId'
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
class getOverriddenSensorInformationReturns(TypedDict):
|
|
236
|
+
requestedSamplingFrequency: 'float'
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
class setVirtualTimePolicyReturns(TypedDict):
|
|
248
|
+
virtualTimeTicksBase: 'float'
|
|
249
|
+
"""Absolute timestamp at which virtual time was first enabled (up time in milliseconds)."""
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
class getScreenInfosReturns(TypedDict):
|
|
259
|
+
screenInfos: 'List[ScreenInfo]'
|
|
260
|
+
class addScreenReturns(TypedDict):
|
|
261
|
+
screenInfo: 'ScreenInfo'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""CDP Emulation Domain"""
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
from .methods.service import EmulationMethods
|
|
4
|
+
from .events.service import EmulationEvents
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ...service import Client
|
|
8
|
+
|
|
9
|
+
class Emulation(EmulationMethods, EmulationEvents):
|
|
10
|
+
"""
|
|
11
|
+
This domain emulates different environments for the page.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the Emulation domain.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
EmulationMethods.__init__(self, client)
|
|
21
|
+
EmulationEvents.__init__(self, client)
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"""CDP Emulation Types"""
|
|
2
|
+
|
|
3
|
+
from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
|
|
4
|
+
|
|
5
|
+
class SafeAreaInsets(TypedDict, total=False):
|
|
6
|
+
top: NotRequired['int']
|
|
7
|
+
"""Overrides safe-area-inset-top."""
|
|
8
|
+
topMax: NotRequired['int']
|
|
9
|
+
"""Overrides safe-area-max-inset-top."""
|
|
10
|
+
left: NotRequired['int']
|
|
11
|
+
"""Overrides safe-area-inset-left."""
|
|
12
|
+
leftMax: NotRequired['int']
|
|
13
|
+
"""Overrides safe-area-max-inset-left."""
|
|
14
|
+
bottom: NotRequired['int']
|
|
15
|
+
"""Overrides safe-area-inset-bottom."""
|
|
16
|
+
bottomMax: NotRequired['int']
|
|
17
|
+
"""Overrides safe-area-max-inset-bottom."""
|
|
18
|
+
right: NotRequired['int']
|
|
19
|
+
"""Overrides safe-area-inset-right."""
|
|
20
|
+
rightMax: NotRequired['int']
|
|
21
|
+
"""Overrides safe-area-max-inset-right."""
|
|
22
|
+
class ScreenOrientation(TypedDict, total=True):
|
|
23
|
+
"""Screen orientation."""
|
|
24
|
+
type: 'Literal["portraitPrimary", "portraitSecondary", "landscapePrimary", "landscapeSecondary"]'
|
|
25
|
+
"""Orientation type."""
|
|
26
|
+
angle: 'int'
|
|
27
|
+
"""Orientation angle."""
|
|
28
|
+
class DisplayFeature(TypedDict, total=True):
|
|
29
|
+
orientation: 'Literal["vertical", "horizontal"]'
|
|
30
|
+
"""Orientation of a display feature in relation to screen"""
|
|
31
|
+
offset: 'int'
|
|
32
|
+
"""The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction."""
|
|
33
|
+
maskLength: 'int'
|
|
34
|
+
"""A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length."""
|
|
35
|
+
class DevicePosture(TypedDict, total=True):
|
|
36
|
+
type: 'Literal["continuous", "folded"]'
|
|
37
|
+
"""Current posture of the device"""
|
|
38
|
+
class MediaFeature(TypedDict, total=True):
|
|
39
|
+
name: 'str'
|
|
40
|
+
value: 'str'
|
|
41
|
+
VirtualTimePolicy = Literal['advance','pause','pauseIfNetworkFetchesPending']
|
|
42
|
+
"""advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches."""
|
|
43
|
+
class UserAgentBrandVersion(TypedDict, total=True):
|
|
44
|
+
"""Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints"""
|
|
45
|
+
brand: 'str'
|
|
46
|
+
version: 'str'
|
|
47
|
+
class UserAgentMetadata(TypedDict, total=True):
|
|
48
|
+
"""Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use."""
|
|
49
|
+
platform: 'str'
|
|
50
|
+
platformVersion: 'str'
|
|
51
|
+
architecture: 'str'
|
|
52
|
+
model: 'str'
|
|
53
|
+
mobile: 'bool'
|
|
54
|
+
brands: NotRequired['List[UserAgentBrandVersion]']
|
|
55
|
+
"""Brands appearing in Sec-CH-UA."""
|
|
56
|
+
fullVersionList: NotRequired['List[UserAgentBrandVersion]']
|
|
57
|
+
"""Brands appearing in Sec-CH-UA-Full-Version-List."""
|
|
58
|
+
bitness: NotRequired['str']
|
|
59
|
+
wow64: NotRequired['bool']
|
|
60
|
+
formFactors: NotRequired['List[str]']
|
|
61
|
+
"""Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors"""
|
|
62
|
+
SensorType = Literal['absolute-orientation','accelerometer','ambient-light','gravity','gyroscope','linear-acceleration','magnetometer','relative-orientation']
|
|
63
|
+
"""Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information."""
|
|
64
|
+
class SensorMetadata(TypedDict, total=False):
|
|
65
|
+
available: NotRequired['bool']
|
|
66
|
+
minimumFrequency: NotRequired['float']
|
|
67
|
+
maximumFrequency: NotRequired['float']
|
|
68
|
+
class SensorReadingSingle(TypedDict, total=True):
|
|
69
|
+
value: 'float'
|
|
70
|
+
class SensorReadingXYZ(TypedDict, total=True):
|
|
71
|
+
x: 'float'
|
|
72
|
+
y: 'float'
|
|
73
|
+
z: 'float'
|
|
74
|
+
class SensorReadingQuaternion(TypedDict, total=True):
|
|
75
|
+
x: 'float'
|
|
76
|
+
y: 'float'
|
|
77
|
+
z: 'float'
|
|
78
|
+
w: 'float'
|
|
79
|
+
class SensorReading(TypedDict, total=False):
|
|
80
|
+
single: NotRequired['SensorReadingSingle']
|
|
81
|
+
xyz: NotRequired['SensorReadingXYZ']
|
|
82
|
+
quaternion: NotRequired['SensorReadingQuaternion']
|
|
83
|
+
PressureSource = Literal['cpu']
|
|
84
|
+
PressureState = Literal['nominal','fair','serious','critical']
|
|
85
|
+
class PressureMetadata(TypedDict, total=False):
|
|
86
|
+
available: NotRequired['bool']
|
|
87
|
+
class WorkAreaInsets(TypedDict, total=False):
|
|
88
|
+
top: NotRequired['int']
|
|
89
|
+
"""Work area top inset in pixels. Default is 0;"""
|
|
90
|
+
left: NotRequired['int']
|
|
91
|
+
"""Work area left inset in pixels. Default is 0;"""
|
|
92
|
+
bottom: NotRequired['int']
|
|
93
|
+
"""Work area bottom inset in pixels. Default is 0;"""
|
|
94
|
+
right: NotRequired['int']
|
|
95
|
+
"""Work area right inset in pixels. Default is 0;"""
|
|
96
|
+
ScreenId = str
|
|
97
|
+
class ScreenInfo(TypedDict, total=True):
|
|
98
|
+
"""Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed."""
|
|
99
|
+
left: 'int'
|
|
100
|
+
"""Offset of the left edge of the screen."""
|
|
101
|
+
top: 'int'
|
|
102
|
+
"""Offset of the top edge of the screen."""
|
|
103
|
+
width: 'int'
|
|
104
|
+
"""Width of the screen."""
|
|
105
|
+
height: 'int'
|
|
106
|
+
"""Height of the screen."""
|
|
107
|
+
availLeft: 'int'
|
|
108
|
+
"""Offset of the left edge of the available screen area."""
|
|
109
|
+
availTop: 'int'
|
|
110
|
+
"""Offset of the top edge of the available screen area."""
|
|
111
|
+
availWidth: 'int'
|
|
112
|
+
"""Width of the available screen area."""
|
|
113
|
+
availHeight: 'int'
|
|
114
|
+
"""Height of the available screen area."""
|
|
115
|
+
devicePixelRatio: 'float'
|
|
116
|
+
"""Specifies the screen's device pixel ratio."""
|
|
117
|
+
orientation: 'ScreenOrientation'
|
|
118
|
+
"""Specifies the screen's orientation."""
|
|
119
|
+
colorDepth: 'int'
|
|
120
|
+
"""Specifies the screen's color depth in bits."""
|
|
121
|
+
isExtended: 'bool'
|
|
122
|
+
"""Indicates whether the device has multiple screens."""
|
|
123
|
+
isInternal: 'bool'
|
|
124
|
+
"""Indicates whether the screen is internal to the device or external, attached to the device."""
|
|
125
|
+
isPrimary: 'bool'
|
|
126
|
+
"""Indicates whether the screen is set as the the operating system primary screen."""
|
|
127
|
+
label: 'str'
|
|
128
|
+
"""Specifies the descriptive label for the screen."""
|
|
129
|
+
id: 'ScreenId'
|
|
130
|
+
"""Specifies the unique identifier of the screen."""
|
|
131
|
+
DisabledImageType = Literal['avif','webp']
|
|
132
|
+
"""Enum of image types that can be disabled."""
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""CDP EventBreakpoints 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 EventBreakpointsEvents:
|
|
10
|
+
"""
|
|
11
|
+
Events for the EventBreakpoints domain.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the EventBreakpoints events.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
self.client = client
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""CDP EventBreakpoints 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 EventBreakpointsMethods:
|
|
10
|
+
"""
|
|
11
|
+
Methods for the EventBreakpoints domain.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the EventBreakpoints methods.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
self.client = client
|
|
21
|
+
|
|
22
|
+
async def set_instrumentation_breakpoint(self, params: Optional[setInstrumentationBreakpointParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
23
|
+
"""
|
|
24
|
+
Sets breakpoint on particular native event.
|
|
25
|
+
Args:
|
|
26
|
+
params (setInstrumentationBreakpointParameters, optional): Parameters for the setInstrumentationBreakpoint method.
|
|
27
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
Dict[str, Any]: The result of the setInstrumentationBreakpoint call.
|
|
31
|
+
"""
|
|
32
|
+
return await self.client.send(method="EventBreakpoints.setInstrumentationBreakpoint", params=params,session_id=session_id)
|
|
33
|
+
async def remove_instrumentation_breakpoint(self, params: Optional[removeInstrumentationBreakpointParameters]=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
34
|
+
"""
|
|
35
|
+
Removes breakpoint on particular native event.
|
|
36
|
+
Args:
|
|
37
|
+
params (removeInstrumentationBreakpointParameters, optional): Parameters for the removeInstrumentationBreakpoint method.
|
|
38
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
Dict[str, Any]: The result of the removeInstrumentationBreakpoint call.
|
|
42
|
+
"""
|
|
43
|
+
return await self.client.send(method="EventBreakpoints.removeInstrumentationBreakpoint", params=params,session_id=session_id)
|
|
44
|
+
async def disable(self, params: None=None,session_id: Optional[str] = None) -> Dict[str, Any]:
|
|
45
|
+
"""
|
|
46
|
+
Removes all breakpoints
|
|
47
|
+
Args:
|
|
48
|
+
params (None, optional): Parameters for the disable method.
|
|
49
|
+
session_id (str, optional): Target session ID for flat protocol usage.
|
|
50
|
+
|
|
51
|
+
Returns:
|
|
52
|
+
Dict[str, Any]: The result of the disable call.
|
|
53
|
+
"""
|
|
54
|
+
return await self.client.send(method="EventBreakpoints.disable", params=params,session_id=session_id)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""CDP EventBreakpoints Methods Types"""
|
|
2
|
+
|
|
3
|
+
from typing import TypedDict, NotRequired, Required, Literal, Any, Dict, Union, Optional, List, Set, Tuple
|
|
4
|
+
|
|
5
|
+
class setInstrumentationBreakpointParameters(TypedDict, total=True):
|
|
6
|
+
eventName: 'str'
|
|
7
|
+
"""Instrumentation name to stop on."""
|
|
8
|
+
class removeInstrumentationBreakpointParameters(TypedDict, total=True):
|
|
9
|
+
eventName: 'str'
|
|
10
|
+
"""Instrumentation name to stop on."""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""CDP EventBreakpoints Domain"""
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
3
|
+
from .methods.service import EventBreakpointsMethods
|
|
4
|
+
from .events.service import EventBreakpointsEvents
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ...service import Client
|
|
8
|
+
|
|
9
|
+
class EventBreakpoints(EventBreakpointsMethods, EventBreakpointsEvents):
|
|
10
|
+
"""
|
|
11
|
+
EventBreakpoints permits setting JavaScript breakpoints on operations and events occurring in native code invoked from JavaScript. Once breakpoint is hit, it is reported through Debugger domain, similarly to regular breakpoints being hit.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the EventBreakpoints domain.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
EventBreakpointsMethods.__init__(self, client)
|
|
21
|
+
EventBreakpointsEvents.__init__(self, client)
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""CDP Extensions 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 ExtensionsEvents:
|
|
10
|
+
"""
|
|
11
|
+
Events for the Extensions domain.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, client: "Client"):
|
|
14
|
+
"""
|
|
15
|
+
Initialize the Extensions events.
|
|
16
|
+
|
|
17
|
+
Args:
|
|
18
|
+
client ("Client"): The parent CDP client instance.
|
|
19
|
+
"""
|
|
20
|
+
self.client = client
|
|
File without changes
|