Open Char-Cp opened 2 weeks ago
@Char-Cp, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
@diemol, Do you think this issue and also this https://github.com/SeleniumHQ/selenium/issues/14434 Which relates to the issue of a few capabilities getting filtered in the session response?
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 For example, adding these env vars and confirm
- SE_BROWSER_ARGS_PROXY_SERVER=socks5://your.proxy.ip.addr
- SE_BROWSER_ARGS_PROXY_AUTH=username:password
@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 -e SE_BROWSER_ARGS_PROXY_SERVER=socks5://ip:port -e SE_BROWSER_ARGS_PROXY_AUTH=user:password -e SE_BROWSER_ARGS_PROXY_SERVER=socks5://user:password@ip:port
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