Repository navigation
Description
Description
WebDriver BiDi is a new protocol for browser automation. It extends the “classic” WebDriver protocol by introducing bidirectional communication. In place of the strict command/response format of WebDriver, this permits events to stream from the browser to the controlling software, better matching the evented nature of the browser.
Interop 2023 proposal, Interop 2024 proposal
Tests
https://wpt.fyi/results/webdriver/tests/bidi (corresponding to https://github.com/web-platform-tests/wpt/tree/master/webdriver/tests/bidi).
For the purposes of this Interop 2025 proposal and scoring progress, we’d carve out a specific subset of these tests, so that we’re not operating against a wildly moving target. The specific tests directories/modules we propose including are: session, script, log, errors, and browsing_context.
Within those directories, we could even allowlist/denylist specific subdirectories, creating a more minimal set of tests that is still maximally useful — see #763 (comment) for a concrete example.
Specification
Additional Signals
Industry-wide surveys such as the MDN Web Developer Needs Assessment (2019, 2020) and the MDN Web Testing Report (2021) consistently identify cross-browser testing as one of the top developer pain points.
Browser automation plays a critical role in the space of cross-browser testing. However, existing automation solutions are either 1) built on proprietary protocols, preventing their use across a wider range of browsers (e.g. Puppeteer being based on CDP); or 2) built on top of the “classic” WebDriver protocol which lacks a) the efficiency of bi-directional communication (e.g. Selenium) as well as b) powerful capabilities to automate modern Web Platform features.
WebDriver BiDi closes the gap between these trade-offs. In 2019, browser vendors Mozilla, Apple, and Google agreed to focus on WebDriver BiDi as the standardized way forward. Since then, significant amounts of spec and implementation work have happened. Having WebDriver BiDi as an Interop 2025 focus area would continue on this path, and hopefully accelerate the availability of BiDi for web developers.
Key industry stakeholders such as WebdriverIO, Selenium, BrowserStack, SauceLabs, and LambdaTest have already adopted WebDriver BiDi features to unlock new functionality for their users.
Standards Positions:
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
AutomatedTester commentedon Oct 2, 2024
No just LambdaTest, all cloud providers that support Selenium such as BrowserStack, SauceLabs, etc
mathiasbynens commentedon Oct 11, 2024
@AutomatedTester Thank you! I’ve expanded the list of examples (it’s still not exhaustive though!), and added reference links to each of them.
jgraham commentedon Jan 15, 2025
This seems to include some tests for worker realms being created and destroyed, but no tests for executing scripts in workers. Given that one isn't really useful without the other, and that executing scripts in workers is a more niche use case (e.g. it's not supported at all by WebDriver Classic), we think all the worker tests should be removed from the scope.
mathiasbynens commentedon Jan 15, 2025
@jgraham I agree.
A more minimal set of tests would be:
sessionerrorslogbrowsing_context: onlycreateandnavigatescript: onlyevaluateandcall_functionHere’s the wpt.fyi link matching this proposal.
I believe this would exclude the tests @jgraham mentions as well as many others, while still presenting a massively useful scope to achieve interoperability on.
wpt-interop commentedon Feb 13, 2025
Thank you for proposing WebDriver BiDi for inclusion in Interop 2025.
We wanted to let you know that this proposal was not selected to be part of Interop this year.
On behalf of the entire Interop team, thank you for submitting this proposal for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.
For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2025.
Posted on behalf of the Interop team.
mathiasbynens commentedon Sep 18, 2025
Proposal to include WebDriver BiDi in Interop 2026: #1094