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
cdp/__init__.py
ADDED
cdp/domains.py
ADDED
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
"""CDP Domains library for interacting with various domains."""
|
|
2
|
+
from typing import TYPE_CHECKING, Any, Dict, Optional
|
|
3
|
+
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from .service import Client
|
|
6
|
+
from .protocol.accessibility.service import Accessibility
|
|
7
|
+
from .protocol.animation.service import Animation
|
|
8
|
+
from .protocol.audits.service import Audits
|
|
9
|
+
from .protocol.autofill.service import Autofill
|
|
10
|
+
from .protocol.background_service.service import BackgroundService
|
|
11
|
+
from .protocol.bluetooth_emulation.service import BluetoothEmulation
|
|
12
|
+
from .protocol.browser.service import Browser
|
|
13
|
+
from .protocol.css.service import CSS
|
|
14
|
+
from .protocol.cache_storage.service import CacheStorage
|
|
15
|
+
from .protocol.cast.service import Cast
|
|
16
|
+
from .protocol.dom.service import DOM
|
|
17
|
+
from .protocol.dom_debugger.service import DOMDebugger
|
|
18
|
+
from .protocol.dom_snapshot.service import DOMSnapshot
|
|
19
|
+
from .protocol.dom_storage.service import DOMStorage
|
|
20
|
+
from .protocol.device_access.service import DeviceAccess
|
|
21
|
+
from .protocol.device_orientation.service import DeviceOrientation
|
|
22
|
+
from .protocol.emulation.service import Emulation
|
|
23
|
+
from .protocol.event_breakpoints.service import EventBreakpoints
|
|
24
|
+
from .protocol.extensions.service import Extensions
|
|
25
|
+
from .protocol.fed_cm.service import FedCm
|
|
26
|
+
from .protocol.fetch.service import Fetch
|
|
27
|
+
from .protocol.file_system.service import FileSystem
|
|
28
|
+
from .protocol.headless_experimental.service import HeadlessExperimental
|
|
29
|
+
from .protocol.io.service import IO
|
|
30
|
+
from .protocol.indexed_db.service import IndexedDB
|
|
31
|
+
from .protocol.input.service import Input
|
|
32
|
+
from .protocol.inspector.service import Inspector
|
|
33
|
+
from .protocol.layer_tree.service import LayerTree
|
|
34
|
+
from .protocol.log.service import Log
|
|
35
|
+
from .protocol.media.service import Media
|
|
36
|
+
from .protocol.memory.service import Memory
|
|
37
|
+
from .protocol.network.service import Network
|
|
38
|
+
from .protocol.overlay.service import Overlay
|
|
39
|
+
from .protocol.pwa.service import PWA
|
|
40
|
+
from .protocol.page.service import Page
|
|
41
|
+
from .protocol.performance.service import Performance
|
|
42
|
+
from .protocol.performance_timeline.service import PerformanceTimeline
|
|
43
|
+
from .protocol.preload.service import Preload
|
|
44
|
+
from .protocol.security.service import Security
|
|
45
|
+
from .protocol.service_worker.service import ServiceWorker
|
|
46
|
+
from .protocol.storage.service import Storage
|
|
47
|
+
from .protocol.system_info.service import SystemInfo
|
|
48
|
+
from .protocol.target.service import Target
|
|
49
|
+
from .protocol.tethering.service import Tethering
|
|
50
|
+
from .protocol.tracing.service import Tracing
|
|
51
|
+
from .protocol.web_audio.service import WebAudio
|
|
52
|
+
from .protocol.web_authn.service import WebAuthn
|
|
53
|
+
from .protocol.debugger.service import Debugger
|
|
54
|
+
from .protocol.heap_profiler.service import HeapProfiler
|
|
55
|
+
from .protocol.profiler.service import Profiler
|
|
56
|
+
from .protocol.runtime.service import Runtime
|
|
57
|
+
|
|
58
|
+
class Domains:
|
|
59
|
+
"""
|
|
60
|
+
Collection of all CDP domains.
|
|
61
|
+
|
|
62
|
+
This class acts as a container for all available CDP domain services.
|
|
63
|
+
Each domain is lazily initialized when first accessed.
|
|
64
|
+
"""
|
|
65
|
+
def __init__(self, client: "Client"):
|
|
66
|
+
"""
|
|
67
|
+
Initialize the Domains container.
|
|
68
|
+
|
|
69
|
+
Args:
|
|
70
|
+
client ("Client"): The parent CDP client instance.
|
|
71
|
+
"""
|
|
72
|
+
self.client = client
|
|
73
|
+
self._accessibility: Optional['Accessibility'] = None
|
|
74
|
+
self._animation: Optional['Animation'] = None
|
|
75
|
+
self._audits: Optional['Audits'] = None
|
|
76
|
+
self._autofill: Optional['Autofill'] = None
|
|
77
|
+
self._background_service: Optional['BackgroundService'] = None
|
|
78
|
+
self._bluetooth_emulation: Optional['BluetoothEmulation'] = None
|
|
79
|
+
self._browser: Optional['Browser'] = None
|
|
80
|
+
self._css: Optional['CSS'] = None
|
|
81
|
+
self._cache_storage: Optional['CacheStorage'] = None
|
|
82
|
+
self._cast: Optional['Cast'] = None
|
|
83
|
+
self._dom: Optional['DOM'] = None
|
|
84
|
+
self._dom_debugger: Optional['DOMDebugger'] = None
|
|
85
|
+
self._dom_snapshot: Optional['DOMSnapshot'] = None
|
|
86
|
+
self._dom_storage: Optional['DOMStorage'] = None
|
|
87
|
+
self._device_access: Optional['DeviceAccess'] = None
|
|
88
|
+
self._device_orientation: Optional['DeviceOrientation'] = None
|
|
89
|
+
self._emulation: Optional['Emulation'] = None
|
|
90
|
+
self._event_breakpoints: Optional['EventBreakpoints'] = None
|
|
91
|
+
self._extensions: Optional['Extensions'] = None
|
|
92
|
+
self._fed_cm: Optional['FedCm'] = None
|
|
93
|
+
self._fetch: Optional['Fetch'] = None
|
|
94
|
+
self._file_system: Optional['FileSystem'] = None
|
|
95
|
+
self._headless_experimental: Optional['HeadlessExperimental'] = None
|
|
96
|
+
self._io: Optional['IO'] = None
|
|
97
|
+
self._indexed_db: Optional['IndexedDB'] = None
|
|
98
|
+
self._input: Optional['Input'] = None
|
|
99
|
+
self._inspector: Optional['Inspector'] = None
|
|
100
|
+
self._layer_tree: Optional['LayerTree'] = None
|
|
101
|
+
self._log: Optional['Log'] = None
|
|
102
|
+
self._media: Optional['Media'] = None
|
|
103
|
+
self._memory: Optional['Memory'] = None
|
|
104
|
+
self._network: Optional['Network'] = None
|
|
105
|
+
self._overlay: Optional['Overlay'] = None
|
|
106
|
+
self._pwa: Optional['PWA'] = None
|
|
107
|
+
self._page: Optional['Page'] = None
|
|
108
|
+
self._performance: Optional['Performance'] = None
|
|
109
|
+
self._performance_timeline: Optional['PerformanceTimeline'] = None
|
|
110
|
+
self._preload: Optional['Preload'] = None
|
|
111
|
+
self._security: Optional['Security'] = None
|
|
112
|
+
self._service_worker: Optional['ServiceWorker'] = None
|
|
113
|
+
self._storage: Optional['Storage'] = None
|
|
114
|
+
self._system_info: Optional['SystemInfo'] = None
|
|
115
|
+
self._target: Optional['Target'] = None
|
|
116
|
+
self._tethering: Optional['Tethering'] = None
|
|
117
|
+
self._tracing: Optional['Tracing'] = None
|
|
118
|
+
self._web_audio: Optional['WebAudio'] = None
|
|
119
|
+
self._web_authn: Optional['WebAuthn'] = None
|
|
120
|
+
self._debugger: Optional['Debugger'] = None
|
|
121
|
+
self._heap_profiler: Optional['HeapProfiler'] = None
|
|
122
|
+
self._profiler: Optional['Profiler'] = None
|
|
123
|
+
self._runtime: Optional['Runtime'] = None
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def accessibility(self) -> 'Accessibility':
|
|
127
|
+
"""
|
|
128
|
+
Access the Accessibility domain. """
|
|
129
|
+
if self._accessibility is None:
|
|
130
|
+
from .protocol.accessibility.service import Accessibility
|
|
131
|
+
self._accessibility = Accessibility(client=self.client)
|
|
132
|
+
return self._accessibility
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def animation(self) -> 'Animation':
|
|
136
|
+
"""
|
|
137
|
+
Access the Animation domain. """
|
|
138
|
+
if self._animation is None:
|
|
139
|
+
from .protocol.animation.service import Animation
|
|
140
|
+
self._animation = Animation(client=self.client)
|
|
141
|
+
return self._animation
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def audits(self) -> 'Audits':
|
|
145
|
+
"""
|
|
146
|
+
Audits domain allows investigation of page violations and possible improvements. """
|
|
147
|
+
if self._audits is None:
|
|
148
|
+
from .protocol.audits.service import Audits
|
|
149
|
+
self._audits = Audits(client=self.client)
|
|
150
|
+
return self._audits
|
|
151
|
+
|
|
152
|
+
@property
|
|
153
|
+
def autofill(self) -> 'Autofill':
|
|
154
|
+
"""
|
|
155
|
+
Defines commands and events for Autofill. """
|
|
156
|
+
if self._autofill is None:
|
|
157
|
+
from .protocol.autofill.service import Autofill
|
|
158
|
+
self._autofill = Autofill(client=self.client)
|
|
159
|
+
return self._autofill
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
def background_service(self) -> 'BackgroundService':
|
|
163
|
+
"""
|
|
164
|
+
Defines events for background web platform features. """
|
|
165
|
+
if self._background_service is None:
|
|
166
|
+
from .protocol.background_service.service import BackgroundService
|
|
167
|
+
self._background_service = BackgroundService(client=self.client)
|
|
168
|
+
return self._background_service
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def bluetooth_emulation(self) -> 'BluetoothEmulation':
|
|
172
|
+
"""
|
|
173
|
+
This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API. """
|
|
174
|
+
if self._bluetooth_emulation is None:
|
|
175
|
+
from .protocol.bluetooth_emulation.service import BluetoothEmulation
|
|
176
|
+
self._bluetooth_emulation = BluetoothEmulation(client=self.client)
|
|
177
|
+
return self._bluetooth_emulation
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def browser(self) -> 'Browser':
|
|
181
|
+
"""
|
|
182
|
+
The Browser domain defines methods and events for browser managing. """
|
|
183
|
+
if self._browser is None:
|
|
184
|
+
from .protocol.browser.service import Browser
|
|
185
|
+
self._browser = Browser(client=self.client)
|
|
186
|
+
return self._browser
|
|
187
|
+
|
|
188
|
+
@property
|
|
189
|
+
def css(self) -> 'CSS':
|
|
190
|
+
"""
|
|
191
|
+
This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated `id` used in subsequent operations on the related object. Each object type has a specific `id` structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client can also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and subsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods. """
|
|
192
|
+
if self._css is None:
|
|
193
|
+
from .protocol.css.service import CSS
|
|
194
|
+
self._css = CSS(client=self.client)
|
|
195
|
+
return self._css
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def cache_storage(self) -> 'CacheStorage':
|
|
199
|
+
"""
|
|
200
|
+
Access the CacheStorage domain. """
|
|
201
|
+
if self._cache_storage is None:
|
|
202
|
+
from .protocol.cache_storage.service import CacheStorage
|
|
203
|
+
self._cache_storage = CacheStorage(client=self.client)
|
|
204
|
+
return self._cache_storage
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def cast(self) -> 'Cast':
|
|
208
|
+
"""
|
|
209
|
+
A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities. """
|
|
210
|
+
if self._cast is None:
|
|
211
|
+
from .protocol.cast.service import Cast
|
|
212
|
+
self._cast = Cast(client=self.client)
|
|
213
|
+
return self._cast
|
|
214
|
+
|
|
215
|
+
@property
|
|
216
|
+
def dom(self) -> 'DOM':
|
|
217
|
+
"""
|
|
218
|
+
This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an `id`. This `id` can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client. Note that `iframe` owner elements will return corresponding document elements as their child nodes. """
|
|
219
|
+
if self._dom is None:
|
|
220
|
+
from .protocol.dom.service import DOM
|
|
221
|
+
self._dom = DOM(client=self.client)
|
|
222
|
+
return self._dom
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
def dom_debugger(self) -> 'DOMDebugger':
|
|
226
|
+
"""
|
|
227
|
+
DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set. """
|
|
228
|
+
if self._dom_debugger is None:
|
|
229
|
+
from .protocol.dom_debugger.service import DOMDebugger
|
|
230
|
+
self._dom_debugger = DOMDebugger(client=self.client)
|
|
231
|
+
return self._dom_debugger
|
|
232
|
+
|
|
233
|
+
@property
|
|
234
|
+
def dom_snapshot(self) -> 'DOMSnapshot':
|
|
235
|
+
"""
|
|
236
|
+
This domain facilitates obtaining document snapshots with DOM, layout, and style information. """
|
|
237
|
+
if self._dom_snapshot is None:
|
|
238
|
+
from .protocol.dom_snapshot.service import DOMSnapshot
|
|
239
|
+
self._dom_snapshot = DOMSnapshot(client=self.client)
|
|
240
|
+
return self._dom_snapshot
|
|
241
|
+
|
|
242
|
+
@property
|
|
243
|
+
def dom_storage(self) -> 'DOMStorage':
|
|
244
|
+
"""
|
|
245
|
+
Query and modify DOM storage. """
|
|
246
|
+
if self._dom_storage is None:
|
|
247
|
+
from .protocol.dom_storage.service import DOMStorage
|
|
248
|
+
self._dom_storage = DOMStorage(client=self.client)
|
|
249
|
+
return self._dom_storage
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def device_access(self) -> 'DeviceAccess':
|
|
253
|
+
"""
|
|
254
|
+
Access the DeviceAccess domain. """
|
|
255
|
+
if self._device_access is None:
|
|
256
|
+
from .protocol.device_access.service import DeviceAccess
|
|
257
|
+
self._device_access = DeviceAccess(client=self.client)
|
|
258
|
+
return self._device_access
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def device_orientation(self) -> 'DeviceOrientation':
|
|
262
|
+
"""
|
|
263
|
+
Access the DeviceOrientation domain. """
|
|
264
|
+
if self._device_orientation is None:
|
|
265
|
+
from .protocol.device_orientation.service import DeviceOrientation
|
|
266
|
+
self._device_orientation = DeviceOrientation(client=self.client)
|
|
267
|
+
return self._device_orientation
|
|
268
|
+
|
|
269
|
+
@property
|
|
270
|
+
def emulation(self) -> 'Emulation':
|
|
271
|
+
"""
|
|
272
|
+
This domain emulates different environments for the page. """
|
|
273
|
+
if self._emulation is None:
|
|
274
|
+
from .protocol.emulation.service import Emulation
|
|
275
|
+
self._emulation = Emulation(client=self.client)
|
|
276
|
+
return self._emulation
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
def event_breakpoints(self) -> 'EventBreakpoints':
|
|
280
|
+
"""
|
|
281
|
+
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. """
|
|
282
|
+
if self._event_breakpoints is None:
|
|
283
|
+
from .protocol.event_breakpoints.service import EventBreakpoints
|
|
284
|
+
self._event_breakpoints = EventBreakpoints(client=self.client)
|
|
285
|
+
return self._event_breakpoints
|
|
286
|
+
|
|
287
|
+
@property
|
|
288
|
+
def extensions(self) -> 'Extensions':
|
|
289
|
+
"""
|
|
290
|
+
Defines commands and events for browser extensions. """
|
|
291
|
+
if self._extensions is None:
|
|
292
|
+
from .protocol.extensions.service import Extensions
|
|
293
|
+
self._extensions = Extensions(client=self.client)
|
|
294
|
+
return self._extensions
|
|
295
|
+
|
|
296
|
+
@property
|
|
297
|
+
def fed_cm(self) -> 'FedCm':
|
|
298
|
+
"""
|
|
299
|
+
This domain allows interacting with the FedCM dialog. """
|
|
300
|
+
if self._fed_cm is None:
|
|
301
|
+
from .protocol.fed_cm.service import FedCm
|
|
302
|
+
self._fed_cm = FedCm(client=self.client)
|
|
303
|
+
return self._fed_cm
|
|
304
|
+
|
|
305
|
+
@property
|
|
306
|
+
def fetch(self) -> 'Fetch':
|
|
307
|
+
"""
|
|
308
|
+
A domain for letting clients substitute browser's network layer with client code. """
|
|
309
|
+
if self._fetch is None:
|
|
310
|
+
from .protocol.fetch.service import Fetch
|
|
311
|
+
self._fetch = Fetch(client=self.client)
|
|
312
|
+
return self._fetch
|
|
313
|
+
|
|
314
|
+
@property
|
|
315
|
+
def file_system(self) -> 'FileSystem':
|
|
316
|
+
"""
|
|
317
|
+
Access the FileSystem domain. """
|
|
318
|
+
if self._file_system is None:
|
|
319
|
+
from .protocol.file_system.service import FileSystem
|
|
320
|
+
self._file_system = FileSystem(client=self.client)
|
|
321
|
+
return self._file_system
|
|
322
|
+
|
|
323
|
+
@property
|
|
324
|
+
def headless_experimental(self) -> 'HeadlessExperimental':
|
|
325
|
+
"""
|
|
326
|
+
This domain provides experimental commands only supported in headless mode. """
|
|
327
|
+
if self._headless_experimental is None:
|
|
328
|
+
from .protocol.headless_experimental.service import HeadlessExperimental
|
|
329
|
+
self._headless_experimental = HeadlessExperimental(client=self.client)
|
|
330
|
+
return self._headless_experimental
|
|
331
|
+
|
|
332
|
+
@property
|
|
333
|
+
def io(self) -> 'IO':
|
|
334
|
+
"""
|
|
335
|
+
Input/Output operations for streams produced by DevTools. """
|
|
336
|
+
if self._io is None:
|
|
337
|
+
from .protocol.io.service import IO
|
|
338
|
+
self._io = IO(client=self.client)
|
|
339
|
+
return self._io
|
|
340
|
+
|
|
341
|
+
@property
|
|
342
|
+
def indexed_db(self) -> 'IndexedDB':
|
|
343
|
+
"""
|
|
344
|
+
Access the IndexedDB domain. """
|
|
345
|
+
if self._indexed_db is None:
|
|
346
|
+
from .protocol.indexed_db.service import IndexedDB
|
|
347
|
+
self._indexed_db = IndexedDB(client=self.client)
|
|
348
|
+
return self._indexed_db
|
|
349
|
+
|
|
350
|
+
@property
|
|
351
|
+
def input(self) -> 'Input':
|
|
352
|
+
"""
|
|
353
|
+
Access the Input domain. """
|
|
354
|
+
if self._input is None:
|
|
355
|
+
from .protocol.input.service import Input
|
|
356
|
+
self._input = Input(client=self.client)
|
|
357
|
+
return self._input
|
|
358
|
+
|
|
359
|
+
@property
|
|
360
|
+
def inspector(self) -> 'Inspector':
|
|
361
|
+
"""
|
|
362
|
+
Access the Inspector domain. """
|
|
363
|
+
if self._inspector is None:
|
|
364
|
+
from .protocol.inspector.service import Inspector
|
|
365
|
+
self._inspector = Inspector(client=self.client)
|
|
366
|
+
return self._inspector
|
|
367
|
+
|
|
368
|
+
@property
|
|
369
|
+
def layer_tree(self) -> 'LayerTree':
|
|
370
|
+
"""
|
|
371
|
+
Access the LayerTree domain. """
|
|
372
|
+
if self._layer_tree is None:
|
|
373
|
+
from .protocol.layer_tree.service import LayerTree
|
|
374
|
+
self._layer_tree = LayerTree(client=self.client)
|
|
375
|
+
return self._layer_tree
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
def log(self) -> 'Log':
|
|
379
|
+
"""
|
|
380
|
+
Provides access to log entries. """
|
|
381
|
+
if self._log is None:
|
|
382
|
+
from .protocol.log.service import Log
|
|
383
|
+
self._log = Log(client=self.client)
|
|
384
|
+
return self._log
|
|
385
|
+
|
|
386
|
+
@property
|
|
387
|
+
def media(self) -> 'Media':
|
|
388
|
+
"""
|
|
389
|
+
This domain allows detailed inspection of media elements. """
|
|
390
|
+
if self._media is None:
|
|
391
|
+
from .protocol.media.service import Media
|
|
392
|
+
self._media = Media(client=self.client)
|
|
393
|
+
return self._media
|
|
394
|
+
|
|
395
|
+
@property
|
|
396
|
+
def memory(self) -> 'Memory':
|
|
397
|
+
"""
|
|
398
|
+
Access the Memory domain. """
|
|
399
|
+
if self._memory is None:
|
|
400
|
+
from .protocol.memory.service import Memory
|
|
401
|
+
self._memory = Memory(client=self.client)
|
|
402
|
+
return self._memory
|
|
403
|
+
|
|
404
|
+
@property
|
|
405
|
+
def network(self) -> 'Network':
|
|
406
|
+
"""
|
|
407
|
+
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc. """
|
|
408
|
+
if self._network is None:
|
|
409
|
+
from .protocol.network.service import Network
|
|
410
|
+
self._network = Network(client=self.client)
|
|
411
|
+
return self._network
|
|
412
|
+
|
|
413
|
+
@property
|
|
414
|
+
def overlay(self) -> 'Overlay':
|
|
415
|
+
"""
|
|
416
|
+
This domain provides various functionality related to drawing atop the inspected page. """
|
|
417
|
+
if self._overlay is None:
|
|
418
|
+
from .protocol.overlay.service import Overlay
|
|
419
|
+
self._overlay = Overlay(client=self.client)
|
|
420
|
+
return self._overlay
|
|
421
|
+
|
|
422
|
+
@property
|
|
423
|
+
def pwa(self) -> 'PWA':
|
|
424
|
+
"""
|
|
425
|
+
This domain allows interacting with the browser to control PWAs. """
|
|
426
|
+
if self._pwa is None:
|
|
427
|
+
from .protocol.pwa.service import PWA
|
|
428
|
+
self._pwa = PWA(client=self.client)
|
|
429
|
+
return self._pwa
|
|
430
|
+
|
|
431
|
+
@property
|
|
432
|
+
def page(self) -> 'Page':
|
|
433
|
+
"""
|
|
434
|
+
Actions and events related to the inspected page belong to the page domain. """
|
|
435
|
+
if self._page is None:
|
|
436
|
+
from .protocol.page.service import Page
|
|
437
|
+
self._page = Page(client=self.client)
|
|
438
|
+
return self._page
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
def performance(self) -> 'Performance':
|
|
442
|
+
"""
|
|
443
|
+
Access the Performance domain. """
|
|
444
|
+
if self._performance is None:
|
|
445
|
+
from .protocol.performance.service import Performance
|
|
446
|
+
self._performance = Performance(client=self.client)
|
|
447
|
+
return self._performance
|
|
448
|
+
|
|
449
|
+
@property
|
|
450
|
+
def performance_timeline(self) -> 'PerformanceTimeline':
|
|
451
|
+
"""
|
|
452
|
+
Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver. """
|
|
453
|
+
if self._performance_timeline is None:
|
|
454
|
+
from .protocol.performance_timeline.service import PerformanceTimeline
|
|
455
|
+
self._performance_timeline = PerformanceTimeline(client=self.client)
|
|
456
|
+
return self._performance_timeline
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
def preload(self) -> 'Preload':
|
|
460
|
+
"""
|
|
461
|
+
Access the Preload domain. """
|
|
462
|
+
if self._preload is None:
|
|
463
|
+
from .protocol.preload.service import Preload
|
|
464
|
+
self._preload = Preload(client=self.client)
|
|
465
|
+
return self._preload
|
|
466
|
+
|
|
467
|
+
@property
|
|
468
|
+
def security(self) -> 'Security':
|
|
469
|
+
"""
|
|
470
|
+
Access the Security domain. """
|
|
471
|
+
if self._security is None:
|
|
472
|
+
from .protocol.security.service import Security
|
|
473
|
+
self._security = Security(client=self.client)
|
|
474
|
+
return self._security
|
|
475
|
+
|
|
476
|
+
@property
|
|
477
|
+
def service_worker(self) -> 'ServiceWorker':
|
|
478
|
+
"""
|
|
479
|
+
Access the ServiceWorker domain. """
|
|
480
|
+
if self._service_worker is None:
|
|
481
|
+
from .protocol.service_worker.service import ServiceWorker
|
|
482
|
+
self._service_worker = ServiceWorker(client=self.client)
|
|
483
|
+
return self._service_worker
|
|
484
|
+
|
|
485
|
+
@property
|
|
486
|
+
def storage(self) -> 'Storage':
|
|
487
|
+
"""
|
|
488
|
+
Access the Storage domain. """
|
|
489
|
+
if self._storage is None:
|
|
490
|
+
from .protocol.storage.service import Storage
|
|
491
|
+
self._storage = Storage(client=self.client)
|
|
492
|
+
return self._storage
|
|
493
|
+
|
|
494
|
+
@property
|
|
495
|
+
def system_info(self) -> 'SystemInfo':
|
|
496
|
+
"""
|
|
497
|
+
The SystemInfo domain defines methods and events for querying low-level system information. """
|
|
498
|
+
if self._system_info is None:
|
|
499
|
+
from .protocol.system_info.service import SystemInfo
|
|
500
|
+
self._system_info = SystemInfo(client=self.client)
|
|
501
|
+
return self._system_info
|
|
502
|
+
|
|
503
|
+
@property
|
|
504
|
+
def target(self) -> 'Target':
|
|
505
|
+
"""
|
|
506
|
+
Supports additional targets discovery and allows to attach to them. """
|
|
507
|
+
if self._target is None:
|
|
508
|
+
from .protocol.target.service import Target
|
|
509
|
+
self._target = Target(client=self.client)
|
|
510
|
+
return self._target
|
|
511
|
+
|
|
512
|
+
@property
|
|
513
|
+
def tethering(self) -> 'Tethering':
|
|
514
|
+
"""
|
|
515
|
+
The Tethering domain defines methods and events for browser port binding. """
|
|
516
|
+
if self._tethering is None:
|
|
517
|
+
from .protocol.tethering.service import Tethering
|
|
518
|
+
self._tethering = Tethering(client=self.client)
|
|
519
|
+
return self._tethering
|
|
520
|
+
|
|
521
|
+
@property
|
|
522
|
+
def tracing(self) -> 'Tracing':
|
|
523
|
+
"""
|
|
524
|
+
Access the Tracing domain. """
|
|
525
|
+
if self._tracing is None:
|
|
526
|
+
from .protocol.tracing.service import Tracing
|
|
527
|
+
self._tracing = Tracing(client=self.client)
|
|
528
|
+
return self._tracing
|
|
529
|
+
|
|
530
|
+
@property
|
|
531
|
+
def web_audio(self) -> 'WebAudio':
|
|
532
|
+
"""
|
|
533
|
+
This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/ """
|
|
534
|
+
if self._web_audio is None:
|
|
535
|
+
from .protocol.web_audio.service import WebAudio
|
|
536
|
+
self._web_audio = WebAudio(client=self.client)
|
|
537
|
+
return self._web_audio
|
|
538
|
+
|
|
539
|
+
@property
|
|
540
|
+
def web_authn(self) -> 'WebAuthn':
|
|
541
|
+
"""
|
|
542
|
+
This domain allows configuring virtual authenticators to test the WebAuthn API. """
|
|
543
|
+
if self._web_authn is None:
|
|
544
|
+
from .protocol.web_authn.service import WebAuthn
|
|
545
|
+
self._web_authn = WebAuthn(client=self.client)
|
|
546
|
+
return self._web_authn
|
|
547
|
+
|
|
548
|
+
@property
|
|
549
|
+
def debugger(self) -> 'Debugger':
|
|
550
|
+
"""
|
|
551
|
+
Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc. """
|
|
552
|
+
if self._debugger is None:
|
|
553
|
+
from .protocol.debugger.service import Debugger
|
|
554
|
+
self._debugger = Debugger(client=self.client)
|
|
555
|
+
return self._debugger
|
|
556
|
+
|
|
557
|
+
@property
|
|
558
|
+
def heap_profiler(self) -> 'HeapProfiler':
|
|
559
|
+
"""
|
|
560
|
+
Access the HeapProfiler domain. """
|
|
561
|
+
if self._heap_profiler is None:
|
|
562
|
+
from .protocol.heap_profiler.service import HeapProfiler
|
|
563
|
+
self._heap_profiler = HeapProfiler(client=self.client)
|
|
564
|
+
return self._heap_profiler
|
|
565
|
+
|
|
566
|
+
@property
|
|
567
|
+
def profiler(self) -> 'Profiler':
|
|
568
|
+
"""
|
|
569
|
+
Access the Profiler domain. """
|
|
570
|
+
if self._profiler is None:
|
|
571
|
+
from .protocol.profiler.service import Profiler
|
|
572
|
+
self._profiler = Profiler(client=self.client)
|
|
573
|
+
return self._profiler
|
|
574
|
+
|
|
575
|
+
@property
|
|
576
|
+
def runtime(self) -> 'Runtime':
|
|
577
|
+
"""
|
|
578
|
+
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. """
|
|
579
|
+
if self._runtime is None:
|
|
580
|
+
from .protocol.runtime.service import Runtime
|
|
581
|
+
self._runtime = Runtime(client=self.client)
|
|
582
|
+
return self._runtime
|