SeleniumHQ / SeleniumHQ/selenium

[🚀 Feature]: [dotnet] Implement high level BiDi network commands

Open
#15,985 7 comments 0 reactions 0 assignees View on GitHub
A-needs-triaging C-dotnet I-enhancement
Dominant language
Java
Stars
34.5k
Forks
8.7k
Avg merge
2d 1h
Merged PRs (30d)
92

Description

### Description

This is a continuation of https://github.com/SeleniumHQ/selenium/issues/13993

Let's think and propose good high-level API to achieve it in .NET/C#.

### Have you considered any alternatives or workarounds?

Here we will adjust our collective proposal:

```csharp
await using var subscription = await driver.Network.OnRequestAsync(..., new RequestOptions { WithBody = true });

await using var subscription = await driver.Network.OnResponseAsync(...);

await using var subscription = await driver.Network.OnAuthenticationAsync(...);

class Subscription(string id): IAsyncDisposable (even IDisposable?)
{
Task UnsubscribeAsync();
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.