SeleniumHQ / SeleniumHQ/selenium
[🚀 Feature]: [dotnet] Implement high level BiDi network commands
- 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
Assessment
This issue has not been assessed yet.