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.
value.sessionId
null
1 parent cfe97f8 commit d08708fCopy full SHA for d08708f
dotnet/src/webdriver/Response.cs
@@ -95,7 +95,7 @@ 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))
+ if (valueDictionary.TryGetPropertyValue("sessionId", out JsonNode? session) && session is not null)
99
100
sessionId = session.ToString();
101
if (valueDictionary.TryGetPropertyValue("capabilities", out JsonNode? capabilities))
0 commit comments