Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Selenium’s Chrome DevTools Protocol (CDP) support lets automation code send browser-specific commands—and, through supported APIs, listen for browser events—that ordinary WebDriver commands do not expose. CDP is mainly relevant to Chrome and Chromium-based browsers, and it is version-sensitive: Selenium warns that it was not designed as a stable testing API. For standards-based, cross-browser bidirectional automation, Selenium points users toward WebDriver BiDi.

What is CDP in Selenium?

The Chrome DevTools Protocol is the protocol used by Chrome DevTools to communicate with a browser. Selenium exposes ways to send CDP commands through Chrome and Edge drivers, along with generated APIs for commonly used protocol domains. This gives automation code access to browser capabilities beyond the ordinary WebDriver command set.

CDP is not a browser-independent Selenium standard. Selenium cautions that it was not designed as a stable testing API, and that functionality depends heavily on the browser version. A CDP command that works with one browser release may change or behave differently with another. See Selenium’s Chrome DevTools Protocol documentation for its current guidance and examples.

How Selenium uses CDP: commands, events, and sessions

Commands ask the browser to do something

A CDP command names a protocol operation and supplies its parameters. For example, Selenium’s documentation demonstrates sending Network.setCookie, then navigating and reading the cookie through WebDriver. In that pattern, CDP performs a browser-level operation and WebDriver continues the regular page interaction.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Some Selenium bindings provide a direct command method; the precise method name and available generated APIs depend on the binding and driver. Use the binding’s documentation for the command you need rather than assuming that every language exposes the same interface.

Events let automation respond to browser activity

Some workflows need more than a request followed by a response: they need to react when the browser emits an event. Selenium’s Python CDP API documents event listeners and wait-for-event helpers, as well as command execution. It also describes a root connection that can multiplex multiple CDP sessions. These are documented Python implementation details, not a guarantee of identical interfaces in every Selenium language binding. See the Selenium Python CDP API reference.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

A basic command method is not the same as bidirectional support

Selenium’s CDP guide warns that basic executeCdpCommand-style access does not support features that require bidirectional communication. Some protocol work also requires knowing which domain to enable and the exact command and parameter names. If a task depends on ongoing browser events, choose an API documented for that interaction instead of assuming that sending a one-off command is sufficient.

How to choose between CDP and WebDriver BiDi

CDP can be a practical choice when a required Chrome or Chromium browser capability is exposed through CDP and your project can manage browser-version compatibility. WebDriver BiDi is Selenium’s standards-based direction for cross-browser bidirectional automation. Selenium describes BiDi as using a WebSocket connection for two-way communication and event streaming, while its browser implementations and feature coverage continue to evolve. Check the specific browser, Selenium binding, and feature before relying on availability.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Question CDP in Selenium WebDriver BiDi in Selenium
Scope Chrome/Chromium-oriented and browser-version-dependent. Designed as a standards-based cross-browser protocol.
Stability direction Selenium says CDP was not designed as a stable testing API. Selenium’s stated direction for stable cross-browser bidirectional automation; implementations are still evolving.
Communication Supports commands, and Selenium documents event APIs; a basic command method has limits for bidirectional features. WebSocket-based two-way communication and event streaming.
When to consider it When a needed browser capability is exposed through CDP and compatibility can be managed. When the use case needs cross-browser bidirectional automation and the needed feature is implemented for the chosen browser and binding.

Selenium states that CDP support is temporary pending WebDriver BiDi implementation. That does not mean every BiDi feature is already available everywhere; verify support for your actual use case in the WebDriver BiDi documentation.

Keep Selenium CDP support aligned with the browser

Selenium says CDP methods and implementations can change, recommends keeping Chrome and DevTools versions aligned, and documents support for the three most recent Chrome versions at any time. That support window moves as Chrome releases change, so use the applicable Selenium release information rather than treating a version list as permanent.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

For a dated example, Selenium 4.40 was released on January 18, 2026, and listed Chrome DevTools support for versions 144, 143, and 142. This is a snapshot for that release, not a statement of the supported range in October 2026 or in another Selenium version. Consult the Selenium 4.40 release announcement and the documentation for the version you install.

  1. Identify the Selenium binding and version. CDP interfaces and generated domain APIs can vary by binding and release.
  2. Check the browser version against Selenium’s applicable CDP support. Do not assume that a method supported for an earlier Chrome release remains unchanged.
  3. Confirm the exact protocol domain, command, parameters, and any required setup. Consult Selenium’s guide and the API documentation for your binding.
  4. Use a documented event-capable API when the workflow must react to events. A one-off command interface may not provide bidirectional behavior.
  5. Recheck compatibility when updating Chrome, Edge, or Selenium. Treat CDP-related changes as part of the upgrade check.

CDP edge cases Selenium calls out

  • Emulated geolocation: changing browser geolocation may not change a site’s location estimate if it infers location from the visitor’s IP address.
  • Mobile emulation: Selenium says Chrome Options’ mobile emulation API is generally superior to overriding device metrics through CDP. Prefer the documented emulation API for that use case.
  • Cross-browser requirements: CDP is not a portable way to automate the same behavior across browsers. Evaluate WebDriver BiDi when cross-browser bidirectional behavior is the goal, and confirm feature availability for the relevant browser and binding.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your goal is to obtain a website screenshot rather than automate Chrome through Selenium, ScreenshotNeo is a separate screenshot API and MCP server for developers—not a replacement for CDP when you need browser automation. One GET request returns an image or PDF. Its clean-shot flow accepts cookie/consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; those steps can each be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. An MCP server exposes screenshot and page-information tools for AI agents. Plans include 1,000 shots per month free with no card; paid plans start at $5 for 3,000 shots.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Example cURL request, replacing the URL with the page you want to capture:

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo documentation for request options, then sign up for 1,000 free screenshots a month with no card.

Common CDP problems and fixes

  • A command or generated API is missing: confirm your Selenium binding and version, then check whether the relevant domain is available in that release. The generated interfaces are not identical across bindings.
  • A command fails after a browser upgrade: compare the browser version with the CDP support for your Selenium release and consult that release’s documentation. CDP changes with browser versions.
  • A command succeeds, but no event arrives: verify that the workflow uses an event-capable bidirectional API and that any required domain or listener setup is in place. A basic command method alone does not cover every bidirectional feature.
  • Emulated location does not change a site’s result: the site may use IP-based location rather than the browser’s emulated coordinates.
  • Mobile metrics do not produce the expected emulation: use Chrome Options’ mobile emulation API where appropriate instead of relying on CDP device-metric overrides.

Frequently Asked Questions

Does Selenium CDP work with every browser?

No. Selenium’s CDP support is browser-specific and version-dependent; it is not a cross-browser WebDriver standard.

Is WebDriver BiDi already a complete replacement for CDP?

Selenium describes CDP support as temporary pending BiDi implementation, but BiDi feature availability continues to evolve by browser and binding.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.