-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Annotate nullability on platform-specific WebDrivers #15236
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
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 |
…umHQ#15236) * [dotnet] Annotate nullability on platform-specific WebDrivers * Use new Response not-null helper
…umHQ#15236) * [dotnet] Annotate nullability on platform-specific WebDrivers * Use new Response not-null helper
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
WebDriverthat 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 constructorsdotnet/src/webdriver/Chrome/ChromeDriver.cs
ArgumentNullExceptionfor null parameters in constructors.chromeCustomCommandsreadonly for immutability.ChromiumDriver.cs
Enhance nullability and error handling in ChromiumDriverdotnet/src/webdriver/Chromium/ChromiumDriver.cs
devToolsSessionto nullable and added related annotations.ChromiumNetworkConditions.cs
Handle nullable dictionary values in ChromiumNetworkConditionsdotnet/src/webdriver/Chromium/ChromiumNetworkConditions.cs
EdgeDriver.cs
Add nullability annotations and improve EdgeDriver constructorsdotnet/src/webdriver/Edge/EdgeDriver.cs
ArgumentNullExceptionfor null parameters in constructors.edgeCustomCommandsreadonly for immutability.FirefoxDriver.cs
Enhance nullability and error handling in FirefoxDriverdotnet/src/webdriver/Firefox/FirefoxDriver.cs
InternetExplorerDriver.cs
Add nullability annotations and improve InternetExplorerDriverconstructorsdotnet/src/webdriver/IE/InternetExplorerDriver.cs
ArgumentNullExceptionfor null parameters in constructors.SafariDriver.cs
Enhance nullability and error handling in SafariDriverdotnet/src/webdriver/Safari/SafariDriver.cs