-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed as not planned
Closed as not planned
Copy link
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-dotnet.NET Bindings.NET BindingsI-enhancementSomething could be betterSomething could be betterJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.
Description
Description
To initiate Options object we have to write:
var options = new ChromeOptions { UseWebSocketUrl = true };
options.AddArgument("remote-debugging-port=9222");At the same time we still have an access to:
options.Arguments // ReadOnlyCollectionIn general it looks like
Have you considered any alternatives or workarounds?
What if we remove all Add* methods and allow collections to be natively mutable? It will significantly simplify usage:
var options = new ChromeOptions
{
UseWebSocketUrl = true.
Arguments = { "remote-debugging-port=9222" }
};And finally even to be focused on driver initialization without any intermediate local variables:
var driver = new ChromeDriver(new ChromeOptions
{
UseWebSocketUrl = true.
Arguments = { "remote-debugging-port=9222" }
});Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-dotnet.NET Bindings.NET BindingsI-enhancementSomething could be betterSomething could be betterJ-staleApplied to issues that become stale, and eventually closed.Applied to issues that become stale, and eventually closed.
