[dotnet] Annotate nullability on more of WebElement#15230
[dotnet] Annotate nullability on more of WebElement#15230RenderMichael merged 13 commits intoSeleniumHQ:trunkfrom
WebElement#15230Conversation
PR Reviewer Guide 🔍(Review updated until commit d895b6b)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to d895b6b
Previous suggestions✅ Suggestions up to commit 2ea99a3
|
* [dotnet] Annotate nullability on more of `WebElement` * Handle nullability of GetCssValue * Implement nullability on more of `WebElement` * fix typo * improve error message * Use new `EnsureValueIsNotNull` hlper
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 more of
WebElementMotivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Added nullability annotations to
WebElementclass for improved type safety.Enhanced error handling for null or unexpected responses in various methods.
Updated method signatures to reflect nullable return types where applicable.
Improved code readability and maintainability with structured nullability directives.
Changes walkthrough 📝
WebElement.cs
Add nullability annotations and enhance error handlingdotnet/src/webdriver/WebElement.cs