Selenium 4 uses the W3C WebDriver protocol and no longer supports the legacy JSON Wire Protocol. If your Selenium 3 code already followed W3C conventions, the upgrade may require little or no protocol-related change. Check your capabilities and any interaction tests using the Actions API: these are the areas most likely to expose migration problems.
What changed in Selenium 4?
Selenium 3 supported both the emerging W3C WebDriver standard and Selenium’s older JSON Wire Protocol. Selenium 4 standardized on W3C WebDriver and removed support for the legacy protocol. That means a client or test setup that depends on JSON Wire Protocol compatibility or translation can fail when it connects through a Selenium 4 binding or Grid.
The change is about communication between the local WebDriver client and the remote browser-driving end. The W3C standard defines the remote end’s HTTP wire protocol and maps HTTP endpoints to commands; it does not require every language binding to implement its local API in the same way. See the W3C WebDriver specification.
JSON Wire Protocol and W3C WebDriver compared
| Area | JSON Wire Protocol | W3C WebDriver |
|---|---|---|
| Role in Selenium | Legacy protocol supported alongside W3C in Selenium 3. | The standard protocol used by Selenium 4. |
| Interoperability | Pre-standard Selenium protocol; support and translation behavior depended on the binding and Grid version. | Standardized remote HTTP command protocol intended to define communication with user agents. |
| Capabilities | Older or non-standard capability names and formats may have been accepted through legacy behavior. | Use standard capability names and valid W3C capability formatting; vendor-specific capabilities belong in the vendor’s supported namespace. |
| Selenium 4 compatibility | Not supported as a legacy protocol. | Expected protocol for Selenium 4 sessions. |
Will Selenium 3 code work after upgrading?
The Selenium project says code that is W3C-compliant in the latest Selenium 3 should work as expected in Selenium 4, and that the protocol implementation generally should not affect end users. This is not a guarantee that every Selenium 3 project upgrades without edits: outdated capability formats, deprecated APIs, or protocol-dependent infrastructure can still prevent a session from starting or change interactions.
#1 Best Overall
- 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.
Transition details also varied by language binding and Grid version. Selenium’s account of the removal explains that Ruby, JavaScript, and .NET removed handshake code for Selenium 4.0, while Python and Java/Grid transition details came later; remaining legacy support was removed in Java Selenium 4.9 and Grid 4.9. If an older client relies on Grid translation, check the exact client and Grid versions rather than assuming Selenium 4.9 will provide it. See Selenium’s legacy protocol support timeline.
What to review when migrating
- Upgrade the binding and dependencies. Follow the official instructions for your language binding and update related Selenium components to compatible versions.
- Use the binding’s Options class. Where applicable, replace deprecated Desired Capabilities patterns with the browser-specific Options class recommended by your binding.
- Check capability names and structure. Use
browserName,browserVersionrather thanversion, andplatformNamerather thanplatformfor the standard capability names. - Namespace vendor-specific settings. Browser and cloud-provider capabilities that are not standard WebDriver capabilities must use the vendor’s documented prefix or options namespace. A malformed or unsupported capability can cause session creation to fail.
- Run interaction tests that use Actions. If clicks, key input, or pointer interactions behave differently, investigate the Actions usage and the test assumptions rather than attributing every change to the wire protocol alone.
- Check legacy translation dependencies. If a Selenium 2 or older Selenium 3 client connects through a Grid, verify the compatibility of that exact client/Grid combination and remove reliance on JSON Wire Protocol translation.
Use the official Selenium 4 upgrade guide for language- and version-specific migration details.
Rank #2
- 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.
Diagnosing common upgrade failures
Session creation fails with an invalid capabilities error
Inspect the capabilities sent at session creation. Replace legacy names such as version and platform with browserVersion and platformName where those standard capabilities apply. Put cloud or browser-vendor settings in the namespace documented by that provider, and prefer the binding’s Options API.
A test cannot connect through Selenium Grid
Check the client binding version and Grid version together. Older clients can depend on protocol conversion that was removed at different times across bindings and Grid; Selenium’s chronology identifies Java Selenium and Grid 4.9 as the point where remaining legacy support was removed. Upgrade the client to use W3C WebDriver rather than expecting Selenium 4 Grid to translate JSON Wire Protocol requests.
Rank #3
- 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.
Actions-based interactions fail or behave differently
Review the Actions sequence and its assumptions, then run the affected interaction tests against the upgraded binding and browser setup. Selenium’s migration guidance specifically flags Actions as an area to review; it does not imply that every failure has one universal protocol fix.
WebDriver BiDi is a separate development
WebDriver BiDi is related to WebDriver but is not another name for the classic W3C WebDriver protocol. Selenium describes BiDi as a bidirectional protocol using WebSocket communication to support browser events. The Selenium 4 migration from JSON Wire Protocol concerns classic WebDriver session commands; adopting BiDi is a separate decision. See Selenium’s WebDriver documentation.
Rank #4
- 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
Or skip the browser setup
If you need website screenshots rather than browser-driven test automation, ScreenshotNeo is a website screenshot API and MCP server. One GET request can return a PNG, JPEG, WebP, or PDF; see the API documentation.
Quick Recap
Best Value
- 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
ScreenshotNeo accepts cookie and consent banners and removes known consent platforms, newsletter popups, and chat widgets before capture; those steps can be turned off. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed, and responses identify the page verdict and billing status. Its MCP server offers screenshot and PDF tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.
Recommended Free Tools
Sign up for ScreenshotNeo’s free plan.
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.

