-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[🐛 Bug]: Unable to use socks5 proxy #2370
Comments
@Char-Cp, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
@diemol, Do you think this issue and also this SeleniumHQ/selenium#14434 |
Those don't get filtered. They are part of ChromeOptions. |
@Char-Cp, instead of setting args from binding, can you try to use feat in docker-selenium to add args to browser directly via env vars - https://github.com/SeleniumHQ/docker-selenium?tab=readme-ov-file#se_browser_args_-add-arguments-for-launching-browser
|
@VietND96 ,The image I used is selenium/node-chrome:4.23.1-20240820. I tried it according to your method, but it didn't work. |
@VietND96 I tried the following methods. None of them can achieve proxy |
What happened?
opt_einsum = webdriver.ChromeOptions() opt_einsum.set_capability('browserVersion', '127.0') proxy = "xxx:x" opt_einsum.add_argument(f'--proxy-server=socks5://{proxy}') opt_einsum.add_argument(f'--proxy-auth=xxx:xxx') print(opt_einsum)
Command used to start Selenium Grid with Docker (or Kubernetes)
Relevant log output
Operating System
mac
Docker Selenium version (image tag)
selenium/node-chrome:4.23.1-20240820
Selenium Grid chart version (chart version)
No response
The text was updated successfully, but these errors were encountered: