-
-
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] Increment WebDriver
towards nullability
#15228
[dotnet] Increment WebDriver
towards nullability
#15228
Conversation
PR Reviewer Guide 🔍(Review updated until commit 0226224)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 0226224
Previous suggestions✅ Suggestions up to commit 13d222a
|
… to read the spec for
* [dotnet] Increment `WebDriver` towards nullability * minimize some diffs with error throwing * further minimize some diffs with error throwing * Annotate more of `WebDriver`, leaving only the commands where we need to read the spec for * fix nullability of adjacent types * remove changes to Execute * remove more * revert final change about Execute * Executing null command name throws, document this * Use new `EnsureValueIsNotNull` helper * cleanup * `Execute` cannot return `null`
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.
Increment
WebDriver
towards nullabilityMotivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Incrementally refactored
WebDriver
to support nullability annotations.Improved error handling with null checks and exceptions.
Enhanced code readability by simplifying property definitions.
Updated
WebElementFactory
methods to handle nullable dictionaries.Changes walkthrough 📝
WebDriver.cs
Refactored `WebDriver` for nullability and error handling
dotnet/src/webdriver/WebDriver.cs
WebElementFactory.cs
Enhanced `WebElementFactory` for nullability support
dotnet/src/webdriver/WebElementFactory.cs