[dotnet] [bidi] Add Request data type in Network module by nvborisenko · Pull Request #16453 · SeleniumHQ/selenium

User description

https://w3c.github.io/webdriver-bidi/#type-network-dataType

💥 What does this PR do?

Support new Request data type according specification.

🔧 Implementation Notes

No internal tests yet, no stable browsers support it. But changes are simple, letting users to experiment with beta browsers.

🔄 Types of changes

  • New feature (non-breaking change which adds functionality and tests!)

PR Type

Enhancement


Description

  • Add Request data type to Network module enum

  • Enables BiDi protocol support for request data collection

  • Aligns with W3C WebDriver BiDi specification


Diagram Walkthrough

flowchart LR
  DataType["DataType enum"]
  Request["Request variant"]
  Response["Response variant"]
  DataType --> Request
  DataType --> Response
Loading

File Walkthrough

Relevant files
Enhancement
AddDataCollectorCommand.cs
Add Request enum value to DataType                                             

dotnet/src/webdriver/BiDi/Network/AddDataCollectorCommand.cs

  • Added Request enum value to DataType enum
  • Positioned before existing Response value
  • Enables request data collection in BiDi Network module
+1/-0