Skip to content

[🚀 Feature]: [dotnet] Small step forward to Async #17086

@nvborisenko

Description

@nvborisenko

Description

Nobody knows when Async #14067 will be in place, and moreover how to do it smoothly without pain for end-users.

I propose to make small improvement now, even before v5.

Current

var driver = new ChromeDriver();

Proposal:

var driver = await ChromeDriver.StartAsync();

Have you considered any alternatives or workarounds?

In any case constructor cannot be async, we will rework it entirely. Ha, and it means everybody has to use another API.

I propose alternative approach here.

Bad?

var driver = new ChromeDriver();
await driver.StartAsync();

Better:

var driver = await ChromeDriver.StartAsync();

We can try to make it without breaking changes. Seems it is small step, but it contributes significantly. This is most tricky part of migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-dotnet.NET BindingsI-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions