[dotnet] Make classic WebDriver commands/responses AOT compatible#14574
[dotnet] Make classic WebDriver commands/responses AOT compatible#14574nvborisenko merged 29 commits intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
This reverts commit b927052.
|
Current state of this PR:
But there is a risk I missed some primitive type (like |
…elenium-hq into dotnet-aot-classic
|
I have added all built-in primitive types. So waiting community feedback (or not), and then just merge. |
|
Appium is friendly to test it, already identified some issues - waiting new round of testing. |
|
Appium tests on Android passed. |
|
Thanks all, merging it to be included into upcoming v4.26 |
User description
Description
Road to AOT compatible.
Motivation and Context
Related to #14480, fixes #13363
Types of changes
Checklist
PR Type
enhancement
Description
SerializableCommandandDeserializableResponseclasses withJsonExtensionDatato handle additional JSON data.CommandSerializerContextandResponseSerializerContextto manage JSON serialization contexts.Changes walkthrough 📝
Command.cs
Enhance command serialization for AOT compatibilitydotnet/src/webdriver/Command.cs
SerializableCommand.SerializableCommandclass withJsonExtensionData.CommandSerializerContextfor JSON serialization context.Response.cs
Improve response serialization for AOT compatibilitydotnet/src/webdriver/Response.cs
ResponseSerializerContext.DeserializableResponseclass withJsonExtensionData.ResponseSerializerContextfor JSON serialization context.