-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Support browser SetDownloadBehaviour command #16383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] [bidi] Support browser SetDownloadBehaviour command #16383
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
https://w3c.github.io/webdriver-bidi/#command-browser-setDownloadBehavior
💥 What does this PR do?
Implements
SetDownloadBehavior
command.💡 Additional Considerations
Not yet supported by browsers, but I verified locally whether we serialize command properly.
🔄 Types of changes
PR Type
Enhancement
Description
Implement WebDriver BiDi
SetDownloadBehavior
commandAdd support for allowed/denied download behaviors
Include comprehensive test coverage for all scenarios
Diagram Walkthrough
File Walkthrough
BrowserModule.cs
Add SetDownloadBehavior methods to BrowserModule
dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs
SetDownloadBehaviorCommand.cs
Create SetDownloadBehavior command infrastructure
dotnet/src/webdriver/BiDi/Browser/SetDownloadBehaviorCommand.cs
BiDiJsonSerializerContext.cs
Register command for JSON serialization
dotnet/src/webdriver/BiDi/Communication/Json/BiDiJsonSerializerContext.cs
BrowserTest.cs
Add comprehensive SetDownloadBehavior tests
dotnet/test/common/BiDi/Browser/BrowserTest.cs