From 6f41ef9dadb4fe2bd6475a33c618f8b55a915ae8 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Mon, 4 Nov 2024 21:27:29 +0300 Subject: [PATCH] [dotnet] Add more well-known dictionary types for capability json serialization --- dotnet/src/webdriver/Command.cs | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/dotnet/src/webdriver/Command.cs b/dotnet/src/webdriver/Command.cs index e6d7c422cbc1e..fd35c386de0bb 100644 --- a/dotnet/src/webdriver/Command.cs +++ b/dotnet/src/webdriver/Command.cs @@ -157,12 +157,27 @@ private static Dictionary ConvertParametersFromJson(string value // Selenium WebDriver types [JsonSerializable(typeof(char[]))] [JsonSerializable(typeof(byte[]))] - [JsonSerializable(typeof(Dictionary))] [JsonSerializable(typeof(Cookie))] [JsonSerializable(typeof(ReturnedCookie))] [JsonSerializable(typeof(Proxy))] - internal partial class CommandJsonSerializerContext : JsonSerializerContext - { - } + // Selenium Dictionaries, primarily used in Capabilities + [JsonSerializable(typeof(Dictionary))] + + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + [JsonSerializable(typeof(Dictionary))] + internal partial class CommandJsonSerializerContext : JsonSerializerContext; }