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 d08708f commit 2a78f28Copy full SHA for 2a78f28
dotnet/src/webdriver/Response.cs
@@ -95,9 +95,9 @@ public static Response FromJson(string value)
95
{
96
// Special case code for the new session command. If the response contains
97
// sessionId and capabilities properties, fix up the session ID and value members.
98
- if (valueDictionary.TryGetPropertyValue("sessionId", out JsonNode? session) && session is not null)
+ if (valueDictionary.TryGetPropertyValue("sessionId", out JsonNode? session))
99
100
- sessionId = session.ToString();
+ sessionId = session?.ToString();
101
if (valueDictionary.TryGetPropertyValue("capabilities", out JsonNode? capabilities))
102
103
contents = capabilities;
0 commit comments