Skip to content

[🚀 Feature]: Allow setting the proxy/HttpClientHandler for DriverService #15954

Open
@Schnutzel

Description

@Schnutzel

Description

If the machine running Selenium is configured with a system proxy, and for some reason the proxy isn't bypassed for localhost, then the DriverService is unable to connect to the ChromeDriver because it uses the default HttpClient.

I want to be able to set the proxy (or the HttpClientHandler) in the DriverService's HttpClient, so that we can bypass the system proxy.

Edit for clarification: I'm using C#.

Have you considered any alternatives or workarounds?

A possible workaround is to set HttpClient.DefaultProxy, but this might cause a problem if other parts of the code rely on the system proxy settings.

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