Skip to content

Commit e78fbda

Browse files
committed
Explicit cast of raw cookie object
1 parent 3f156fa commit e78fbda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/CookieJar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Cookie GetCookieNamed(string name)
7171

7272
var rawCookie = driver.InternalExecute(DriverCommand.GetCookie, new() { { "name", name } }).Value;
7373

74-
return Cookie.FromDictionary(rawCookie as Dictionary<string, object>);
74+
return Cookie.FromDictionary((Dictionary<string, object>)rawCookie);
7575
}
7676

7777
private ReadOnlyCollection<Cookie> GetAllCookies()

0 commit comments

Comments
 (0)