File tree Expand file tree Collapse file tree 6 files changed +20
-7
lines changed
dotnet/src/webdriver/BiDi Expand file tree Collapse file tree 6 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,9 @@ internal Broker(BiDi bidi, Uri url)
7474 new InternalIdConverter ( _bidi ) ,
7575 new PreloadScriptConverter ( _bidi ) ,
7676 new RealmConverter ( _bidi ) ,
77+
7778 new BiDiDateTimeOffsetConverter ( ) ,
7879 new JsonStringEnumConverter ( JsonNamingPolicy . CamelCase ) ,
79-
80- // https://github.com/dotnet/runtime/issues/72604
81- new Json . Converters . Polymorphic . MessageConverter ( ) ,
82- new Json . Converters . Polymorphic . EvaluateResultConverter ( ) ,
83- new Json . Converters . Polymorphic . RemoteValueConverter ( ) ,
84- new Json . Converters . Polymorphic . RealmInfoConverter ( ) ,
85- new Json . Converters . Polymorphic . LogEntryConverter ( ) ,
8680 }
8781 } ;
8882
Original file line number Diff line number Diff line change 1717// under the License.
1818// </copyright>
1919
20+ using OpenQA . Selenium . BiDi . Communication . Json . Converters . Polymorphic ;
2021using System . Text . Json ;
22+ using System . Text . Json . Serialization ;
2123
2224namespace OpenQA . Selenium . BiDi . Communication ;
2325
2426// https://github.com/dotnet/runtime/issues/72604
27+ [ JsonConverter ( typeof ( MessageConverter ) ) ]
28+
2529//[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
2630//[JsonDerivedType(typeof(MessageSuccess), "success")]
2731//[JsonDerivedType(typeof(MessageError), "error")]
Original file line number Diff line number Diff line change 1717// under the License.
1818// </copyright>
1919
20+ using OpenQA . Selenium . BiDi . Communication . Json . Converters . Polymorphic ;
2021using System ;
2122using System . Collections . Generic ;
23+ using System . Text . Json . Serialization ;
2224
2325namespace OpenQA . Selenium . BiDi . Modules . Log ;
2426
2527// https://github.com/dotnet/runtime/issues/72604
28+ [ JsonConverter ( typeof ( LogEntryConverter ) ) ]
29+
2630//[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
2731//[JsonDerivedType(typeof(Console), "console")]
2832//[JsonDerivedType(typeof(Javascript), "javascript")]
Original file line number Diff line number Diff line change 1818// </copyright>
1919
2020using OpenQA . Selenium . BiDi . Communication ;
21+ using OpenQA . Selenium . BiDi . Communication . Json . Converters . Polymorphic ;
22+ using System . Text . Json . Serialization ;
2123
2224namespace OpenQA . Selenium . BiDi . Modules . Script ;
2325
@@ -36,6 +38,8 @@ public record EvaluateOptions : CommandOptions
3638}
3739
3840// https://github.com/dotnet/runtime/issues/72604
41+ [ JsonConverter ( typeof ( EvaluateResultConverter ) ) ]
42+
3943//[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
4044//[JsonDerivedType(typeof(Success), "success")]
4145//[JsonDerivedType(typeof(Exception), "exception")]
Original file line number Diff line number Diff line change 1717// under the License.
1818// </copyright>
1919
20+ using OpenQA . Selenium . BiDi . Communication . Json . Converters . Polymorphic ;
2021using System . Collections . Generic ;
22+ using System . Text . Json . Serialization ;
2123
2224namespace OpenQA . Selenium . BiDi . Modules . Script ;
2325
2426// https://github.com/dotnet/runtime/issues/72604
27+ [ JsonConverter ( typeof ( RealmInfoConverter ) ) ]
28+
2529//[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
2630//[JsonDerivedType(typeof(Window), "window")]
2731//[JsonDerivedType(typeof(DedicatedWorker), "dedicated-worker")]
Original file line number Diff line number Diff line change 1717// under the License.
1818// </copyright>
1919
20+ using OpenQA . Selenium . BiDi . Communication . Json . Converters . Polymorphic ;
2021using System ;
2122using System . Collections . Generic ;
2223using System . Text . Json ;
2526namespace OpenQA . Selenium . BiDi . Modules . Script ;
2627
2728// https://github.com/dotnet/runtime/issues/72604
29+ [ JsonConverter ( typeof ( RemoteValueConverter ) ) ]
30+
2831//[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
2932//[JsonDerivedType(typeof(Number), "number")]
3033//[JsonDerivedType(typeof(Boolean), "boolean")]
You can’t perform that action at this time.
0 commit comments