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

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay