Open titusfortner opened 1 month ago
I'm not sure which major version is better for removing sync API, but I think for WebDriver consumers, after adding async APIs, it will be good to keep deprecated (marked [Obsolete]
) sync APIs for at least 3 minor version releases before removing. We'll need some time for such an upgrade.
Feature and motivation
.NET libraries are increasingly moving to Async implementations. Selenium should move over to be a completely Asynchronous library, especially since we plan to implement current methods with BiDi that have to be Async.
It is possible to maintain backwards compatibility by implementing existing Synchronous methods by calling the Async methods wrapped in a Run Task, but this doubles the API surface, and is not best practice.
Proposal
14051 is an example of doing the first 2 items for the Navigation methods
Question:
attn: @jimevans / @nvborisenko / @YevgeniyShunevych
Usage example