-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 platform-specific WebDrivers #15236
[dotnet] Annotate nullability on platform-specific WebDrivers #15236
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Test failures are unrelated to this PR //java/test/org/openqa/selenium/mobile:NetworkConnectionTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest
//java/test/org/openqa/selenium/remote:RemoteWebDriverScreenshotTest-firefox-beta
//rb/spec/integration/selenium/webdriver:network-firefox-beta-bidi
//rb/spec/integration/selenium/webdriver:network-firefox-bidi |
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 the various implementations of
WebDriver
that we have.Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement, Documentation
Description
Annotated nullability for platform-specific WebDriver implementations.
Added exception handling for null arguments in constructors and methods.
Updated XML documentation to include nullability-related exceptions.
Refactored code for improved readability and consistency.
Changes walkthrough 📝
ChromeDriver.cs
Add nullability annotations and improve ChromeDriver constructors
dotnet/src/webdriver/Chrome/ChromeDriver.cs
ArgumentNullException
for null parameters in constructors.chromeCustomCommands
readonly for immutability.ChromiumDriver.cs
Enhance nullability and error handling in ChromiumDriver
dotnet/src/webdriver/Chromium/ChromiumDriver.cs
devToolsSession
to nullable and added related annotations.ChromiumNetworkConditions.cs
Handle nullable dictionary values in ChromiumNetworkConditions
dotnet/src/webdriver/Chromium/ChromiumNetworkConditions.cs
EdgeDriver.cs
Add nullability annotations and improve EdgeDriver constructors
dotnet/src/webdriver/Edge/EdgeDriver.cs
ArgumentNullException
for null parameters in constructors.edgeCustomCommands
readonly for immutability.FirefoxDriver.cs
Enhance nullability and error handling in FirefoxDriver
dotnet/src/webdriver/Firefox/FirefoxDriver.cs
InternetExplorerDriver.cs
Add nullability annotations and improve InternetExplorerDriver
constructors
dotnet/src/webdriver/IE/InternetExplorerDriver.cs
ArgumentNullException
for null parameters in constructors.SafariDriver.cs
Enhance nullability and error handling in SafariDriver
dotnet/src/webdriver/Safari/SafariDriver.cs