SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.73k stars 8.19k forks source link

[dotnet] Avoid serializing to JSON in `ToString()` methods. #14741

Closed RenderMichael closed 2 days ago

RenderMichael commented 2 days ago

Feature and motivation

There are a few types whose ToString() methods will serialize the contents into a JSON representation. This has some drawbacks

Each of the relevant types are strongly-typed dictionaries. For reference, the standard convention for dictionary types is to avoid overriding the ToString() method.

The following types are affected:

Usage example

N/A

github-actions[bot] commented 2 days ago

@RenderMichael, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!