Skip to content

Commit b0e2f0d

Browse files
committed
Fixing .NET responses where value should legitimately be null
1 parent b843bc9 commit b0e2f0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotnet/src/webdriver/Remote/Response.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ private Response(Dictionary<string, object> rawResponse, int protocolSpecLevel)
6868

6969
if (protocolSpecLevel > 0)
7070
{
71-
// If the returned object does *not* have a "value" property,
72-
// then the responseValue member of the response will be null.
73-
if (this.responseValue == null)
71+
// If the returned object does *not* have a "value" property
72+
// the response value should be the entirety of the response.
73+
if (!rawResponse.ContainsKey("value") && this.responseValue == null)
7474
{
7575
this.responseValue = rawResponse;
7676
}

0 commit comments

Comments
 (0)