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

Neon image

Serverless Postgres in 300ms (❗️)

10 free databases with autoscaling, scale-to-zero, and read replicas. Start building without infrastructure headaches. No credit card needed.

Try for Free →

Top comments (0)

Image of Stellar post

How a Hackathon Win Led to My Startup Getting Funded

In this episode, you'll see:

  • The hackathon wins that sparked the journey.
  • The moment José and Joseph decided to go all-in.
  • Building a working prototype on Stellar.
  • Using the PassKeys feature of Soroban.
  • Getting funded via the Stellar Community Fund.

Watch the video