SeleniumHQ / SeleniumHQ/selenium

[🚀 Feature]: [dotnet] Local driver HTTP communication inherits OS system proxy

Open
#15,954 18 comments 0 reactions 0 assignees View on GitHub
C-dotnet I-enhancement
Dominant language
Java
Stars
34.5k
Forks
8.7k
Avg merge
2d 1h
Merged PRs (30d)
92

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.