-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PY] Use ProxyManager instead of PoolManager in remote_connection #8297
[PY] Use ProxyManager instead of PoolManager in remote_connection #8297
Conversation
00e4d4e
to
7a32087
Compare
@AutomatedTester can you please review this change? |
If this should be picking this up from an environment variable should we just check that instead of adding something to the arguments? |
Currently urllib3.PoolManager is used in creating remote connection to the grid. If a proxy is required to connect to the grid, we have to use urllib3.ProxyManager instead of urllib3.PoolManager. The proxy settings will be taken from https_proxy or http_proxy environment variables based on the remote grid url passed to the RemoteConnection class. If proxy environment variable is set, ProxyManager will be used to create the connection. Otherwise PoolManager will be used. Fixes SeleniumHQ#8053
f98b13b
to
cea10d7
Compare
@AutomatedTester updated the PR to take the proxy_url from environment. |
Hi David @AutomatedTester, |
The aim is for a new alpha this week
…On May 25, 2020, 9:52 PM +0100, Artem Fedorov ***@***.***>, wrote:
Hi David @AutomatedTester,
When do you plan release this fix?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi David @AutomatedTester ,
I use selenium 3 with the similar patch that I did in remote/remote_connection.py with urllib3.ProxyManager, but it did not helped me. Maybe you know any places where selenium adds some custom configuration to urllib3 that can cause such issue? |
I suggest raising an issue with a script to reproduce the error after trying to use thise with the version |
Sure, we'll try the latest version |
After update to the latest |
…leniumHQ#8297) * Use ProxyManager instead of PoolManager in remote_connection Currently urllib3.PoolManager is used in creating remote connection to the grid. If a proxy is required to connect to the grid, we have to use urllib3.ProxyManager instead of urllib3.PoolManager. The proxy settings will be taken from https_proxy or http_proxy environment variables based on the remote grid url passed to the RemoteConnection class. If proxy environment variable is set, ProxyManager will be used to create the connection. Otherwise PoolManager will be used. Fixes SeleniumHQ#8053 * Renamed the function to fix flake8 errors Co-authored-by: Vishnuprakash Puthiya Kovilakath <610731+pkvprakash@users.noreply.github.com> Co-authored-by: David Burns <david.burns@theautomatedtester.co.uk>
Use ProxyManager instead of PoolManager in remote_connection to allow using a proxy to connect to the grid.
Description
Currently urllib3.PoolManager is used in creating remote
connection to the grid. If a proxy is required to connect
to the grid, we have to use urllib3.ProxyManager instead
of urllib3.PoolManager.
The proxy settings will be taken from https_proxy or http_proxy
environment variables based on the remote grid url passed to the
RemoteConnection class. If proxy environment variable is set,
ProxyManager will be used to create the connection. Otherwise
PoolManager will be used.
Fixes #8053
Motivation and Context
This change is required to connect to the grid from behind a corporate proxy.
Types of changes
Checklist