-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Simplify context aware command options #16954
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] Simplify context aware command options #16954
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:
|
||||||||||||||||
RenderMichael
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good. I left one comment, not blocking the PR, about taking these changes even further.
User description
💥 What does this PR do?
BrowsingContext*OptionstoContext*OptionsTimeoutcommand property🔄 Types of changes
PR Type
Enhancement, Bug fix
Description
Rename
BrowsingContext*OptionstoContext*Optionsfor consistencyConvert context options from records to classes inheriting
CommandOptionsPropagate
Timeoutproperty from context options to command optionsAlign context-aware command options with parent class structure
Diagram Walkthrough
File Walkthrough
BrowsingContext.cs
Update GetTreeAsync method signaturedotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs
ContextGetTreeOptionsinstead ofBrowsingContextGetTreeOptionsBrowsingContextNetworkModule.cs
Update network module method signaturesdotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextNetworkModule.cs
AddDataCollectorAsyncmethod to useContextAddDataCollectorOptionsSetCacheBehaviorAsyncmethod to useContextSetCacheBehaviorOptionsBrowsingContextScriptModule.cs
Update script module method signaturedotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextScriptModule.cs
AddPreloadScriptAsyncmethod to useContextAddPreloadScriptOptionsGetTreeCommand.cs
Refactor GetTreeOptions and ContextGetTreeOptionsdotnet/src/webdriver/BiDi/BrowsingContext/GetTreeCommand.cs
GetTreeOptionsto use primary constructorBrowsingContextGetTreeOptionstoContextGetTreeOptionsandchange from record to class inheriting
CommandOptionsTimeoutproperty propagation from context optionsAddDataCollectorCommand.cs
Refactor AddDataCollectorOptions and ContextAddDataCollectorOptionsdotnet/src/webdriver/BiDi/Network/AddDataCollectorCommand.cs
sealedmodifier toAddDataCollectorOptionsBrowsingContextAddDataCollectorOptionstoContextAddDataCollectorOptionsand change from class to sealed classinheriting
CommandOptionsTimeoutproperty propagation from context optionsAddInterceptCommand.cs
Refactor AddInterceptOptions and ContextAddInterceptOptionsdotnet/src/webdriver/BiDi/Network/AddInterceptCommand.cs
sealedmodifier toAddInterceptOptionsBrowsingContextAddInterceptOptionstoContextAddInterceptOptionsand change from record to class inheritingCommandOptionsTimeoutproperty propagation from context optionsSetCacheBehaviorCommand.cs
Refactor SetCacheBehaviorOptions and ContextSetCacheBehaviorOptionsdotnet/src/webdriver/BiDi/Network/SetCacheBehaviorCommand.cs
BrowsingContextSetCacheBehaviorOptionstoContextSetCacheBehaviorOptionsand change from record to sealed classinheriting
CommandOptionsTimeoutproperty propagation from context optionsAddPreloadScriptCommand.cs
Refactor AddPreloadScriptOptions and ContextAddPreloadScriptOptionsdotnet/src/webdriver/BiDi/Script/AddPreloadScriptCommand.cs
AddPreloadScriptOptionsto use primary constructorBrowsingContextAddPreloadScriptOptionstoContextAddPreloadScriptOptionsand change from record to sealed classinheriting
CommandOptionsTimeoutproperty propagation from context options