You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pull request makes minor changes to the Permissions module in the .NET WebDriver BiDi implementation, primarily focusing on namespace corrections and class declaration improvements.
💥 What does this PR do?
Namespace corrections:
Changed the namespace of PermissionsModule from OpenQA.Selenium.BiDi.Extensions.Permissions to OpenQA.Selenium.BiDi.Permissions for consistency.
Removed an unnecessary using directive for OpenQA.Selenium.BiDi.Extensions.Permissions in PermissionsBiDiExtensions.cs.
Class declaration improvement:
Made the PermissionsModule class sealed to prevent inheritance, clarifying its intended usage.
🔄 Types of changes
Cleanup (formatting, renaming)
Breaking change (fix or feature that would cause existing functionality to change)
PR Type
Bug fix, Enhancement
Description
Fix namespace for PermissionsModule from Extensions.Permissions to Permissions
Remove unnecessary using directive for old namespace
Make PermissionsModule class sealed to prevent inheritance
✅ Fix typo in public method parameterSuggestion Impact:Renamed the SetPermissionAsync parameter to "descriptor" and updated its usage when constructing SetPermissionCommandParameters.
code diff:
- public async Task<SetPermissionResult> SetPermissionAsync(PermissionDescriptor desriptor, PermissionState state, string origin, SetPermissionOptions? options = null)+ public async Task<SetPermissionResult> SetPermissionAsync(PermissionDescriptor descriptor, PermissionState state, string origin, SetPermissionOptions? options = null)
{
- var @params = new SetPermissionCommandParameters(desriptor, state, origin, options?.EmbeddedOrigin, options?.UserContext);+ var @params = new SetPermissionCommandParameters(descriptor, state, origin, options?.EmbeddedOrigin, options?.UserContext);
Correct the typo in the parameter name desriptor to descriptor in the public SetPermissionAsync method.
Why: The suggestion correctly identifies a typo in the desriptor parameter of the public SetPermissionAsync method, which improves API clarity and code quality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
This pull request makes minor changes to the
Permissionsmodule in the .NET WebDriver BiDi implementation, primarily focusing on namespace corrections and class declaration improvements.💥 What does this PR do?
Namespace corrections:
PermissionsModulefromOpenQA.Selenium.BiDi.Extensions.PermissionstoOpenQA.Selenium.BiDi.Permissionsfor consistency.usingdirective forOpenQA.Selenium.BiDi.Extensions.PermissionsinPermissionsBiDiExtensions.cs.Class declaration improvement:
PermissionsModuleclasssealedto prevent inheritance, clarifying its intended usage.🔄 Types of changes
PR Type
Bug fix, Enhancement
Description
Fix namespace for
PermissionsModulefromExtensions.PermissionstoPermissionsRemove unnecessary
usingdirective for old namespaceMake
PermissionsModuleclasssealedto prevent inheritanceDiagram Walkthrough
File Walkthrough
PermissionsBiDiExtensions.cs
Remove outdated namespace importdotnet/src/webdriver/BiDi/Permissions/PermissionsBiDiExtensions.cs
using OpenQA.Selenium.BiDi.Extensions.Permissionsdirective
OpenQA.Selenium.BiDi.PermissionsPermissionsModule.cs
Fix namespace and seal PermissionsModule classdotnet/src/webdriver/BiDi/Permissions/PermissionsModule.cs
OpenQA.Selenium.BiDi.Extensions.PermissionstoOpenQA.Selenium.BiDi.Permissionsusing OpenQA.Selenium.BiDi.Permissionsdirective
PermissionsModuleclasssealedto prevent inheritance