Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Browser automation moved from vendor-specific drivers and Selenium RC to the W3C WebDriver standard, and now to WebDriver BiDi, while tools like Playwright use their own protocols. As the senior technical leader, what does this evolution mean for your long-term investment in UI test automation?

The move from Selenium RC and vendor drivers to the W3C WebDriver standard, and now to WebDriver BiDi, has steadily reduced lock-in: browser vendors implement the protocol themselves, so a standards-based suite runs on Chrome, Firefox, Edge and real Safari, and the event-driven features that once needed Chromium-only DevTools are becoming standard. For a long-term investment, that means the tool matters less than test design: we should put our money into abstractions we own, stable selectors, controlled test data and a small UI suite focused on critical journeys, so that any future tool change is a bounded migration.

Background to this question

Every few years a new browser automation tool arrives with faster, less flaky tests, and every few years a large company has to decide whether to rewrite thousands of tests. A senior technical leader is asked this question to see whether they can read the history as a pattern rather than as a list of tools, and turn that pattern into an investment rule that survives the next change. In this answer, we will walk through how the protocols evolved and why, what WebDriver BiDi changes, why the tool choice matters less than it seems, and how to shape the investment so that we never again face a forced rewrite.

1A Short History of Browser Automation

Selenium started with Selenium RC, Remote Control, which drove a browser by injecting JavaScript into the page under test. It worked across browsers, but it was limited by the browser's security rules, for example it struggled with pages that crossed origins, and it could not produce real native keyboard and mouse events.

WebDriver replaced that approach, and it merged into Selenium 2 around 2011. Instead of injecting script, it talked to each browser through a driver: chromedriver for Chrome, geckodriver for Firefox, safaridriver for Safari. At first each driver was written and maintained by different people, often outside the browser teams, and behaviour differed in small, painful ways.

The protocol those drivers speak became a W3C Recommendation in 2018, and Selenium 4 adopted it fully. That was the real turning point. A W3C standard is implemented by the browser vendors themselves: Google ships chromedriver, Mozilla ships geckodriver, Apple ships safaridriver inside macOS. Our Selenium code talks to the vendor's own implementation, which is why one suite can run on real Safari as well as on Chromium browsers.

How browser automation evolved
EraHow it talks to the browserWhat it meant for us
Selenium RCJavaScript injected into the pageCross-browser but limited by page security
Early WebDriverPer-browser drivers, varying ownersNative events, but behaviour differed by driver
W3C WebDriver (2018)Standard HTTP protocol, vendor-built driversPortable suites, including real Safari
Chrome DevTools ProtocolChromium's own debugging protocolNetwork and console access, Chromium only
WebDriver BiDiStandard two-way protocol over WebSocketEvents and interception becoming portable
PlaywrightOwn protocol, bundled patched browsersRich features, tied to its own browser builds
Each step traded convenience against portability; the standards steps reduced lock-in.

2What WebDriver BiDi Changes

Classic WebDriver is request and response: our code asks a question and the driver answers. It has no way for the browser to tell us something happened, such as a console error, a network request or a new page loading. Teams that needed that turned to the Chrome DevTools Protocol, CDP, which is Chromium's own internal debugging protocol. It is powerful, but it only works on Chromium browsers and changes with each Chrome release, so code written against it is both non-portable and fragile.

WebDriver BiDi, bidirectional WebDriver, is the W3C's answer. It runs over a WebSocket, so the browser can push events to us, and it standardizes the features people used CDP for: listening to console logs, intercepting and modifying network requests, and watching navigation. Firefox and Chrome implement it, and Selenium is building its newer APIs on it. Puppeteer has moved to BiDi for Firefox support as well.

Notice the direction: the tools are converging on the same capabilities. What made Playwright attractive a few years ago, auto-waiting helpers, network interception, event streams, is becoming available on standards-based tools too, while Playwright keeps its own protocol and its own bundled browser builds. So the gap between tools is shrinking, and it will keep shrinking.

3Why the Tool Matters Less Than the Test Design

When we look at what actually costs money in a UI suite, it is rarely the driver. It is tests that find elements by long XPath expressions tied to the layout, so every redesign breaks them; tests that wait with sleeps, so they are slow and flaky; tests that share data, so they fail in different orders; and suites so large that a run takes hours and nobody trusts a red result.

Each of those problems moves with us when we change tools. A team that rewrites 2,000 badly designed Selenium tests in a new tool gets 2,000 badly designed tests in the new tool, with a short honeymoon because the rewrite fixed some waits along the way. A team with stable test ids, clear page objects and API-created test data can switch tools in weeks, because only a thin layer touches the driver.

So the leadership answer is that tool choice is a secondary decision. The primary decisions are about design, and they pay off whichever protocol wins.

4Investing in Abstractions We Own

The practical rule is to own the layer between our tests and the tool. Tests talk to page objects and component objects, which express what a user does, such as loginAs or selectDate. Those objects talk to a small driver layer we control: how we find elements, how we wait, how we take screenshots. Fixtures create test data through APIs, and our own reporting collects logs and videos.

With that structure, the tool sits under one layer. If we later move from classic WebDriver calls to BiDi, or from Selenium to another tool, we change the driver layer and the component objects, and the thousands of test methods above them stay as they are. That is what bounded migration means: the cost is proportional to the size of the abstraction layer, not to the number of tests.

Step throughWhere a tool change should stop
  1. Test scenariosBusiness journeys in plain steps; never touch the driver
  2. Page and component objectsUser intentions such as loginAs and selectDate
  3. Our driver layerFinding, waiting, screenshots, logs; the only code that knows the tool
  4. Tool and protocolSelenium with WebDriver or BiDi, or another tool
  5. BrowsersVendor builds on our grid or a vendor cloud

5 layers, from the top down. Step through them one at a time.

A protocol change should be absorbed in the middle layers, not in the tests.

5Keeping the UI Suite Small

The other long-term lever is size. Every UI test is an expensive test: it needs a browser, a deployed application and data, and it fails for more reasons than a unit test. So the investment rule is to keep the UI layer thin and focused on the critical user journeys, such as sign up, search, checkout and payment, and to push most checks down to API tests, component tests and unit tests, which are faster and more precise.

A suite of 200 well-chosen journeys is cheaper to migrate, cheaper to run and more trusted than a suite of 5,000 tests that each check one field. It also makes the next protocol change a small project instead of a programme.

6Follow-up questions

What would make you change tools across the company?

I would need evidence that the current tool blocks something we need and that the gain is large after controlling for test design. Examples are a required capability the current tool cannot provide, such as reliable network interception on all our browsers, a vendor or support model that is ending, or a measured difference in flake rate and run time from a fair pilot where both sides used good waits and data. I would also weigh browser coverage, because losing real Safari for an engine build can matter for our customers. If the case holds, I would migrate incrementally behind our own abstraction layer, with success measures and a checkpoint to stop.

Is Playwright not simply the better tool today?

For many teams it is a very good choice, with auto-waiting, browser contexts and excellent tracing. But it uses its own protocol and its own browser builds, and its WebKit is not the Safari our users run. Selenium is a W3C standard implementation with a wide ecosystem. The right choice depends on what we need, and with a good abstraction layer it is a reversible decision.

Should we write code against CDP today?

Only where it gives clear value and only behind our driver layer, because it is Chromium only and changes with Chrome releases. Where BiDi offers the same feature, such as console logs or network interception, we should prefer it, because it is standard and portable across Chrome and Firefox.

7Conclusion

In this answer, we saw that browser automation moved from script injection to vendor-implemented W3C WebDriver, which made suites portable across browsers including real Safari, and that WebDriver BiDi now brings standard event-driven features that once required Chromium-only DevTools. Because tools are converging, the long-term cost of UI automation is decided by test design: stable selectors, owned page and component objects, a thin driver layer, controlled test data and a small suite focused on critical journeys. With that investment, a tool or protocol change becomes a bounded migration.

What to say in the interviewAbout 90 seconds aloud

Open with

I read the history as a steady reduction in lock-in. Selenium RC injected JavaScript and fought the browser's security model. WebDriver moved to real drivers, and when it became a W3C standard the browser vendors started implementing it themselves, which is why one Selenium suite can run on Chrome, Firefox, Edge and real Safari.

Then, if they want more

The weak spot was events: network interception and console logs needed the Chrome DevTools Protocol, which is Chromium only and changes every release. WebDriver BiDi standardizes those features over a two-way connection, and Chrome and Firefox implement it, so standards-based tools are catching up with what Playwright offered through its own protocol.

My conclusion for long-term investment is that the tool matters less than the design. What makes a suite expensive is layout-based locators, sleeps, shared data and sheer size, and those problems travel with you to any tool.

So I invest in things we own: page and component objects that express user intentions, a thin driver layer that is the only code knowing the tool, API-based test data, and our own reporting. Then a protocol or tool change is a bounded migration of one layer.

I also keep the UI suite small, covering critical journeys, and push most checks to API and component tests. I would only change tools company-wide with evidence from a fair pilot and a clear capability gap, and even then incrementally.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Browser automation moved from vendor-specific drivers and Selenium RC to the W3C...": https://scrivio-interview-library.netlify.app/java/ui-testing/f02343b342/