-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Annotate nullability on SafariOptions
, error, and enums
#15219
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Failed tests are not related to the changes: //java/test/org/openqa/selenium/mobile:NetworkConnectionTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest-firefox-beta |
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.
Annotate nullability on
SafariOptions
, error, and enumsMotivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement
Description
Enabled nullable reference types in multiple files for better null-safety.
Refactored
SafariOptions
properties to use auto-properties.Improved
WebDriverError
error mapping logic with dictionary initialization.Replaced
List
withHashSet
forKnownSpecCompliantCapabilityNames
for efficiency.Changes walkthrough 📝
CapabilityType.cs
Refactored capability handling and enabled nullable types
dotnet/src/webdriver/CapabilityType.cs
List
withHashSet
forKnownSpecCompliantCapabilityNames
.IsSpecCompliantCapabilityName
method.IRotatable.cs
Enabled nullable reference types in `IRotatable`
dotnet/src/webdriver/IRotatable.cs
SafariOptions.cs
Refactored `SafariOptions` and enabled nullable types
dotnet/src/webdriver/Safari/SafariOptions.cs
UseTechnologyPreview
and related logic.ScreenOrientation.cs
Enabled nullable reference types in `ScreenOrientation`
dotnet/src/webdriver/ScreenOrientation.cs
WebDriverError.cs
Refactored `WebDriverError` error mapping logic
dotnet/src/webdriver/WebDriverError.cs
TryGetValue
.WebDriverResult.cs
Enabled nullable reference types in `WebDriverResult`
dotnet/src/webdriver/WebDriverResult.cs
WindowType.cs
Enabled nullable reference types in `WindowType`
dotnet/src/webdriver/WindowType.cs