Skip to content

[🚀 Feature]: [dotnet] [bidi] Consider command optional arguments as optional method arguments #16094

@nvborisenko

Description

@nvborisenko

Description

Now:

await context.NavigateAsync("https://selenium.dev");

Even with optional arguments:

await context.NavigateAsync("https://selenium.dev", new() { Wait = ReadinessState.Complete});

It is very good API to prevent any breaking changes if BiDi Spec changes optional parameters.

Have you considered any alternatives or workarounds?

What if we consider C# optional arguments natively?

await context.NavigateAsync("https://selenium.dev", wait: ReadinessState.Complete);

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!B-devtoolsIncludes everything BiDi or Chrome DevTools relatedC-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