-
-
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 Navigate()
and SwitchTo()
#15211
[dotnet] Annotate nullability on Navigate()
and SwitchTo()
#15211
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@@ -64,13 +66,15 @@ public interface INavigation | |||
/// should the underlying page change while your test is executing the results of | |||
/// future calls against this interface will be against the freshly loaded page. | |||
/// </remarks> | |||
/// <exception cref="ArgumentNullException">If <paramref name="url"/> is null.</exception> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
langword null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix in a quick follow-up
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
Navigate()
andSwitchTo()
Motivation and Context
Contributes to #14640
Types of changes
Checklist
PR Type
Enhancement, Bug fix
Description
Enabled nullable reference types in multiple files for better null safety.
Added
ArgumentNullException
checks for method parameters to improve error handling.Updated
Navigator
andTargetLocator
classes to usereadonly
fields and sealed classes.Improved exception messages and type safety in
Frame
andWindow
methods.Changes walkthrough 📝
INavigation.cs
Add nullability annotations and exceptions in `INavigation`
dotnet/src/webdriver/INavigation.cs
ArgumentNullException
forGoToUrl
andGoToUrlAsync
methods.ITargetLocator.cs
Add nullability annotations and exceptions in `ITargetLocator`
dotnet/src/webdriver/ITargetLocator.cs
ArgumentNullException
forFrame
andWindow
methods.Navigator.cs
Enhance null safety and immutability in `Navigator`
dotnet/src/webdriver/Navigator.cs
ArgumentNullException
for constructor andGoToUrl
methods.driver
field toreadonly
and class tosealed
.TargetLocator.cs
Enhance null safety and immutability in `TargetLocator`
dotnet/src/webdriver/TargetLocator.cs
ArgumentNullException
for constructor andFrame
/Window
methods.Frame
method.driver
field toreadonly
and class tosealed
.