We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0e3003 commit 785e8d9Copy full SHA for 785e8d9
dotnet/src/webdriver/CookieJar.cs
@@ -117,9 +117,9 @@ public void DeleteAllCookies()
117
/// <returns>A Cookie from the name; or <see langword="null"/> if not found.</returns>
118
public Cookie? GetCookieNamed(string name)
119
{
120
- if (name is null)
+ if (string.IsNullOrWhiteSpace(name))
121
122
- throw new ArgumentNullException(nameof(name));
+ throw new ArgumentException("Cookie name cannot be empty", nameof(name));
123
}
124
125
try
0 commit comments