-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Fix Virtual Authenticator removal, annotate NRT #14822
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
dotnet/src/webdriver/VirtualAuth/VirtualAuthenticatorOptions.cs
Outdated
Show resolved
Hide resolved
Ci is failing, I guess because of some invisible character. |
@nvborisenko fixed🤦 |
/automerge, thanks Michael for contribution. |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
This fixes a bug where the
RemoveVirtualAuthenticator
method does not use its parameter, and instead uses the cached authenticator ID value. This blocks scenarios where multiple VA's are running at once.Additionally, Nullable Reference Type support (as well as improved null checks) have been added. Exceptional scenarios have been documented.
Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Bug fix, Enhancement, Tests
Description
RemoveVirtualAuthenticator
method to correctly use its parameter, allowing multiple virtual authenticators to be managed.Credential
class and other related classes with nullable reference type support and added null checks.Changes walkthrough 📝
Credential.cs
Enhance Credential class with null checks and NRT support
dotnet/src/webdriver/VirtualAuth/Credential.cs
IHasVirtualAuthenticator.cs
Add exception handling documentation to interface methods
dotnet/src/webdriver/VirtualAuth/IHasVirtualAuthenticator.cs
VirtualAuthenticatorOptions.cs
Enhance VirtualAuthenticatorOptions with detailed documentation
dotnet/src/webdriver/VirtualAuth/VirtualAuthenticatorOptions.cs
WebDriver.cs
Fix and enhance WebDriver virtual authenticator methods
dotnet/src/webdriver/WebDriver.cs
VirtualAuthenticatorTest.cs
Add tests for virtual authenticator scenarios and error handling
dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs