-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] [bidi] Simplify conversion to LocalValue
#15441
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
LocalValue
LocalValue
I am concerned in general to introduce "implicit/explicit" casting. In my mind .NET types and BiDi types have to be mapped 1 to 1. I feel it should be a rule, exactly 1 to 1. I agree that this feature is amazing and very helpful, but I guess we are missing something that will be painful in the future. Do you feel the same? ( |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Simplified the usage of
LocalValue
by introducing static factory methods.Added comprehensive type conversion support for
LocalValue
, including JSON nodes and .NET types.Enhanced test coverage for
LocalValue
conversions and usage in function calls.Improved readability and maintainability of
LocalValue
-related code.Changes walkthrough 📝
LocalValue.cs
Enhanced `LocalValue` with static methods and type conversions
dotnet/src/webdriver/BiDi/Modules/Script/LocalValue.cs
LocalValue
instances.LocalValue
.LocalValue
types.CallFunctionLocalValueTest.cs
Updated and extended tests for `LocalValue` functionality
dotnet/test/common/BiDi/Script/CallFunctionLocalValueTest.cs
LocalValue
static factory methods.LocalValue
types likeTrue
,False
, andBigInt
.LocalValue
usage.