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.
RemoteValue.Number
1 parent 45ecae9 commit 0d8f906Copy full SHA for 0d8f906
dotnet/src/webdriver/BiDi/Modules/Script/RemoteValue.cs
@@ -17,6 +17,7 @@
17
// under the License.
18
// </copyright>
19
20
+using OpenQA.Selenium.BiDi.Communication.Json.Converters;
21
using System;
22
using System.Collections.Generic;
23
using System.Text.Json;
@@ -91,7 +92,7 @@ public static implicit operator string(RemoteValue remoteValue)
91
92
throw new BiDiException("Cannot convert .....");
93
}
94
- public record Number(double Value) : PrimitiveProtocolRemoteValue;
95
+ public record Number([property: JsonConverter(typeof(DoubleConverter))] double Value) : PrimitiveProtocolRemoteValue;
96
97
public record Boolean(bool Value) : PrimitiveProtocolRemoteValue;
98
0 commit comments