Skip to content

Commit c813505

Browse files
committed
Tests
1 parent c78c3f6 commit c813505

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

dotnet/src/webdriver/BiDi/Communication/Json/BiDiSerializerContext.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Collections.Generic;
12
using System.Text.Json.Serialization;
23

34
namespace OpenQA.Selenium.BiDi.Communication.Json;
@@ -11,10 +12,12 @@ namespace OpenQA.Selenium.BiDi.Communication.Json;
1112
[JsonSerializable(typeof(Modules.Script.EvaluateResult.Exception))]
1213

1314
[JsonSerializable(typeof(Modules.Script.RemoteValue.Number), TypeInfoPropertyName = "Script_RemoteValue_Number")]
15+
[JsonSerializable(typeof(Modules.Script.RemoteValue.Boolean), TypeInfoPropertyName = "Script_RemoteValue_Boolean")]
1416
[JsonSerializable(typeof(Modules.Script.RemoteValue.String), TypeInfoPropertyName = "Script_RemoteValue_String")]
1517
[JsonSerializable(typeof(Modules.Script.RemoteValue.Null), TypeInfoPropertyName = "Script_RemoteValue_Null")]
1618
[JsonSerializable(typeof(Modules.Script.RemoteValue.Undefined), TypeInfoPropertyName = "Script_RemoteValue_Undefined")]
1719
[JsonSerializable(typeof(Modules.Script.RemoteValue.Symbol))]
20+
[JsonSerializable(typeof(Modules.Script.RemoteValue.Array), TypeInfoPropertyName = "Script_RemoteValue_Array")]
1821
[JsonSerializable(typeof(Modules.Script.RemoteValue.Object), TypeInfoPropertyName = "Script_RemoteValue_Object")]
1922
[JsonSerializable(typeof(Modules.Script.RemoteValue.Function))]
2023
[JsonSerializable(typeof(Modules.Script.RemoteValue.RegExp), TypeInfoPropertyName = "Script_RemoteValue_RegExp")]
@@ -60,8 +63,8 @@ namespace OpenQA.Selenium.BiDi.Communication.Json;
6063
[JsonSerializable(typeof(Modules.Session.NewResult))]
6164

6265
[JsonSerializable(typeof(Modules.Browser.CloseCommand), TypeInfoPropertyName = "Browser_CloseCommand")]
63-
[JsonSerializable(typeof(Modules.Browser.UserContextInfo))]
6466
[JsonSerializable(typeof(Modules.Browser.GetUserContextsResult))]
67+
[JsonSerializable(typeof(IReadOnlyList<Modules.Browser.UserContextInfo>))]
6568

6669
[JsonSerializable(typeof(Modules.BrowsingContext.CloseCommand), TypeInfoPropertyName = "BrowsingContext_CloseCommand")]
6770
[JsonSerializable(typeof(Modules.BrowsingContext.CreateResult))]
@@ -75,6 +78,7 @@ namespace OpenQA.Selenium.BiDi.Communication.Json;
7578
[JsonSerializable(typeof(Modules.BrowsingContext.PrintResult))]
7679
[JsonSerializable(typeof(Modules.BrowsingContext.UserPromptOpenedEventArgs))]
7780
[JsonSerializable(typeof(Modules.BrowsingContext.UserPromptClosedEventArgs))]
81+
[JsonSerializable(typeof(Modules.BrowsingContext.Origin), TypeInfoPropertyName = "BrowsingContext_Origin")]
7882

7983
[JsonSerializable(typeof(Modules.Network.BytesValue.String), TypeInfoPropertyName = "Network_BytesValue_String")]
8084
[JsonSerializable(typeof(Modules.Network.UrlPattern.String), TypeInfoPropertyName = "Network_UrlPattern_String")]
@@ -90,10 +94,25 @@ namespace OpenQA.Selenium.BiDi.Communication.Json;
9094
[JsonSerializable(typeof(Modules.Script.AddPreloadScriptResult))]
9195
[JsonSerializable(typeof(Modules.Script.EvaluateResult))]
9296
[JsonSerializable(typeof(Modules.Script.GetRealmsResult))]
97+
[JsonSerializable(typeof(Modules.Script.MessageEventArgs))]
98+
[JsonSerializable(typeof(Modules.Script.RealmDestroyedEventArgs))]
99+
[JsonSerializable(typeof(IReadOnlyList<Modules.Script.RealmInfo>))]
93100

94101
[JsonSerializable(typeof(Modules.Log.Entry))]
95102

96103
[JsonSerializable(typeof(Modules.Storage.GetCookiesResult))]
97104
[JsonSerializable(typeof(Modules.Storage.DeleteCookiesResult))]
98105
[JsonSerializable(typeof(Modules.Storage.SetCookieResult))]
106+
107+
[JsonSerializable(typeof(Modules.Input.PerformActionsCommand))]
108+
[JsonSerializable(typeof(Modules.Input.Pointer.Down), TypeInfoPropertyName = "Input_Pointer_Down")]
109+
[JsonSerializable(typeof(Modules.Input.Pointer.Up), TypeInfoPropertyName = "Input_Pointer_Up")]
110+
[JsonSerializable(typeof(Modules.Input.Pointer.Move), TypeInfoPropertyName = "Input_Pointer_Move")]
111+
[JsonSerializable(typeof(Modules.Input.Key.Down), TypeInfoPropertyName = "Input_Key_Down")]
112+
[JsonSerializable(typeof(Modules.Input.Key.Up), TypeInfoPropertyName = "Input_Key_Up")]
113+
[JsonSerializable(typeof(IEnumerable<Modules.Input.IPointerSourceAction>))]
114+
[JsonSerializable(typeof(IEnumerable<Modules.Input.IKeySourceAction>))]
115+
[JsonSerializable(typeof(IEnumerable<Modules.Input.INoneSourceAction>))]
116+
[JsonSerializable(typeof(IEnumerable<Modules.Input.IWheelSourceAction>))]
117+
99118
internal partial class BiDiSerializerContext: JsonSerializerContext;

0 commit comments

Comments
 (0)