BiDirectional API (W3C compliant)

Examples of working with the W3C WebDriver BiDi protocol in Selenium — the standard, cross-browser replacement for the Chrome DevTools Protocol. These APIs stream events from the browser over a WebSocket, for network interception, console logs, and browser event handling.

The following list of APIs will be growing as the WebDriver BiDirectional Protocol grows and browser vendors implement the same. Additionally, Selenium will try to support real-world use cases that internally use a combination of W3C BiDi protocol APIs.

If there is additional functionality you’d like to see, please raise a feature request.