WebDriverBiDi 0.0.27
dotnet add package WebDriverBiDi --version 0.0.27
NuGet\Install-Package WebDriverBiDi -Version 0.0.27
<PackageReference Include="WebDriverBiDi" Version="0.0.27" />
<PackageVersion Include="WebDriverBiDi" Version="0.0.27" />
<PackageReference Include="WebDriverBiDi" />
paket add WebDriverBiDi --version 0.0.27
#r "nuget: WebDriverBiDi, 0.0.27"
#:package WebDriverBiDi@0.0.27
#addin nuget:?package=WebDriverBiDi&version=0.0.27
#tool nuget:?package=WebDriverBiDi&version=0.0.27
WebDriverBiDi
A .NET client library for the WebDriver BiDi protocol
This package contains a library that is a .NET client for the WebDriver BiDi protocol specification. It also includes support for other modules implementing support for the WebDriver BiDi protocol, but not included in that specification, such as the Permissions specification. This spec is in progress, and features are added to the library as the specification changes.
The library allows a user to automate a browser using WebDriver BiDi, standard protocol developed and maintained under the auspices of the World Wide Web Consortium (W3C). The protocol is implemented by browser vendors as part of the Web Platform as a direct alternative to proprietary options like the Chrome DevTools Protocol. It allows scenarios like:
- Capturing log messages written to the JavaScript console
- Receiving notifications when new browser windows or tabs are opened
- Receiving notifications when navigation events occur
- Adding JavaScript to each page before any other JavaScript is loaded, and have that so-called "preload" script available to the page being automated.
- Other scenarios to be added as features become documented in the specification and implemented by browser vendors
WebDriver BiDi uses JSON payloads across a websocket connection to communicate with the browser to execute commands and receive responses and events. This library manages the communication across the websocket and serializing and deserializing the JSON payloads. Consumers of this library should note that a general principle about the .NET API contained herein that objects received from the remote end (browser) of the connection are immutable; the data contained within cannot be modified. Objects being sent from the local end to the remote end are intended to have settable properties to shape the proper values sent across the connection.
It is important to note some of the things this library is explicitly not intended for.
- This library is not itself a replacement for Selenium, Puppeteer or Playwright. It does not provide a user-friendly automation API. This is intentional, as the library is a low-level implementation of a client for the protocol. However, any project like those aforementioned could conceivably use this library as a mechanism for driving the browser using .NET.
- This library does not manage browser launching and/or profile information. It expects a browser to already be launched, and for the WebDriver BiDi websocket to already be open and available for communication. Moreover, it is the user's responsibility to know what the URL of the websocket connection is to initiate a session.
To use the library, you can create and start a WebDriver BiDi session using code similar to the following:
using WebDriverBiDi;
// Assumes the browser is running with a WebSocket listening for
// WebDriver BiDi traffic. Note that your URL will be different here.
string webSocketUrl = "ws://localhost:5555";
// Set a timeout of 10 seconds for command responses.
BiDiDriver driver = new(TimeSpan.FromSeconds(10));
await driver.StartAsync(webSocketUrl);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.HashCode (>= 6.0.0)
- System.Text.Json (>= 8.0.5)
- System.Threading.Channels (>= 8.0.0)
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.0.27 | 0 | 9/16/2025 |
0.0.26 | 109 | 7/30/2025 |
0.0.25 | 150 | 7/8/2025 |
0.0.24 | 144 | 6/26/2025 |
0.0.23 | 139 | 6/26/2025 |
0.0.22 | 143 | 6/23/2025 |
0.0.21 | 144 | 6/3/2025 |
0.0.20 | 167 | 5/7/2025 |
0.0.19 | 502 | 3/25/2025 |
0.0.18 | 217 | 3/5/2025 |
0.0.16 | 128 | 2/3/2025 |
0.0.15 | 166 | 12/30/2024 |
0.0.14 | 105 | 12/30/2024 |
0.0.13 | 117 | 12/23/2024 |
0.0.12 | 132 | 12/3/2024 |
0.0.11 | 609 | 11/14/2024 |
0.0.10 | 108 | 11/14/2024 |
0.0.9 | 507 | 10/28/2024 |
0.0.8 | 173 | 10/25/2024 |
0.0.7 | 127 | 9/17/2024 |
0.0.6 | 140 | 9/3/2024 |
0.0.5 | 112 | 8/6/2024 |
0.0.4 | 292 | 6/28/2024 |
0.0.3 | 145 | 5/30/2024 |
0.0.2 | 126 | 5/30/2024 |
0.0.1 | 141 | 5/16/2024 |