-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Expose New session command #16907
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
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
💥 What does this PR do?
Make
NewAsynccommand publicly available.🔧 Implementation Notes
Sessionmodule is still exposed via mainBiDiobject.💡 Additional Considerations
I don't know how to use this command in our world, it fails with error
session already exists. But I successfully use it when launched BiDi mapper (https://github.com/GoogleChromeLabs/chromium-bidi).🔄 Types of changes
PR Type
Enhancement
Description
Expose
NewAsynccommand publicly via BiDi objectAdd
UnhandledPromptBehaviorproperty to Capability modelRename
Capabilityfield toCapabilitiesin NewResultUpdate
StatusAsyncto accept optional StatusOptions parameterAdd SessionTest with status verification test
Diagram Walkthrough
File Walkthrough
BiDi.cs
Expose NewAsync and enhance StatusAsync methodsdotnet/src/webdriver/BiDi/BiDi.cs
StatusAsync()methodStatusAsync(Session.StatusOptions? options)with optionalparameters
NewAsync(CapabilitiesRequest capabilities,Session.NewOptions? options)methodNewCommand.cs
Add UnhandledPromptBehavior and fix field namingdotnet/src/webdriver/BiDi/Session/NewCommand.cs
Capabilityfield toCapabilitiesin NewResult recordUnhandledPromptBehaviorproperty to Capability classPlatformName, SetWindowRect, UserAgent properties
SessionModule.cs
Rename parameter for consistencydotnet/src/webdriver/BiDi/Session/SessionModule.cs
capabilitiesRequesttocapabilitiesforconsistency
SessionTest.cs
Add SessionTest with status verificationdotnet/test/common/BiDi/Session/SessionTest.cs
CanGetStatus()test method verifying StatusAsync returns non-nullresult