DEV Community

Tim Yao
Tim Yao

Posted on

6

Understand JSON Wire Protocol and W3C Standard Protocol in Selenium WebDriver

In short, JSON Wire Protocol(JWP) is the old legacy protocol, and W3C Standard Protocol is the new one.

That two protocols are used by Selenium WebDriver to interact with browser drivers as below:

Alt Text

What is happening

As browser vendors update to support W3C WebDriver protocol and shift away from JSON Wire Protocol (JWP), this can bring increased stability in your Selenium tests across different browsers.

Some browsers has stopped to support JWP in latest version, like Safari. And others may will do so in the future.

What we should do

That means, we need to migrate our WebDriver tests to use w3c standards ASAP.

For BrowserStacks Selenium users, have a look this guide: https://www.browserstack.com/automate/selenium-4

For SourceLabs Selenium users, read this: https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/index.html

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more