Expand description
CDP method names, one module per protocol domain.
CdpClient::call takes a method name as a
string. These constants let the editor complete that name and the
compiler reject a typo, and each one carries the protocol’s own
description, parameters and return fields as documentation.
use cdp_driver::methods::target;
let created = client
.call_raw(target::CREATE_TARGET, json!({ "url": "about:blank" }))
.await?;Modules§
- accessibility
- The
Accessibilitydomain. - ads
- A domain for ad-related metrics and data.
- animation
- The
Animationdomain. - audits
- Audits domain allows investigation of page violations and possible improvements.
- autofill
- Defines commands and events for Autofill.
- background_
service - Defines events for background web platform features.
- bluetooth_
emulation - This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.
- browser
- The Browser domain defines methods and events for browser managing.
- cache_
storage - The
CacheStoragedomain. - cast
- A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities.
- console
- This domain is deprecated - use Runtime or Log instead.
- crash_
report_ context - This domain exposes the current state of the CrashReportContext API.
- css
- This domain exposes CSS read/write operations. All CSS objects
(stylesheets, rules, and styles) have an associated
idused in subsequent operations on the related object. Each object type has a specificidstructure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using theget*ForNode()calls (which accept a DOM node id). A client can also keep track of stylesheets via thestyleSheetAdded/styleSheetRemovedevents and subsequently load the required stylesheet contents using thegetStyleSheet\[Text\]()methods. - debugger
- Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.
- device_
access - The
DeviceAccessdomain. - device_
orientation - The
DeviceOrientationdomain. - digital_
credentials - This domain allows interacting with the Digital Credentials API for automation.
- dom
- This domain exposes DOM read/write operations. Each DOM Node is
represented with its mirror object that has an
id. Thisidcan 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 thatiframeowner elements will return corresponding document elements as their child nodes. - dom_
debugger - 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.
- dom_
snapshot - This domain facilitates obtaining document snapshots with DOM, layout, and style information.
- dom_
storage - Query and modify DOM storage.
- emulation
- This domain emulates different environments for the page.
- event_
breakpoints - 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.
- extensions
- Defines commands and events for browser extensions.
- fed_cm
- This domain allows interacting with the FedCM dialog.
- fetch
- A domain for letting clients substitute browser’s network layer with client code.
- file_
system - The
FileSystemdomain. - headless_
experimental - This domain provides experimental commands only supported in headless mode.
- heap_
profiler - The
HeapProfilerdomain. - indexed_
db - The
IndexedDBdomain. - input
- The
Inputdomain. - inspector
- The
Inspectordomain. - io
- Input/Output operations for streams produced by DevTools.
- layer_
tree - The
LayerTreedomain. - log
- Provides access to log entries.
- media
- This domain allows detailed inspection of media elements.
- memory
- The
Memorydomain. - network
- 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.
- overlay
- This domain provides various functionality related to drawing atop the inspected page.
- page
- Actions and events related to the inspected page belong to the page domain.
- performance
- The
Performancedomain. - performance_
timeline - Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.
- preload
- The
Preloaddomain. - profiler
- The
Profilerdomain. - pwa
- This domain allows interacting with the browser to control PWAs.
- runtime
- 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.
- schema
- This domain is deprecated.
- security
- The
Securitydomain. - service_
worker - The
ServiceWorkerdomain. - smart_
card_ emulation - The
SmartCardEmulationdomain. - storage
- The
Storagedomain. - system_
info - The SystemInfo domain defines methods and events for querying low-level system information.
- target
- Supports additional targets discovery and allows to attach to them.
- tethering
- The Tethering domain defines methods and events for browser port binding.
- tracing
- The
Tracingdomain. - web_
audio - This domain allows inspection of Web Audio API. https://webaudio.github.io/web-audio-api/
- web_
authn - This domain allows configuring virtual authenticators to test the WebAuthn API.
- web_mcp
- The
WebMCPdomain.