selenium: [๐ Bug]: Selenium Manager proxy management issue
What happened?
When trying to run scripts under vpn, Selenium manager requires proxy to be set for it to download the necessary drivers through capabilities. This, if Iโm not wrongly concluding, is setting the proxy for the entire framework/session which fails my scripts since it needs to run without proxy.
Is there a way to avoid around this?
How can we reproduce the issue?
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setCapability("proxy", <proxy-url>);
chromeOptions.addArguments("--disable-dev-shm-usage");
chromeOptions.addArguments("--no-sandbox");
chromeOptions.setBrowserVersion("113");
Relevant log output
org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: Capabilities {browserName: chrome, browserVersion: 113, goog:chromeOptions: {args: [--remote-allow-origins=*, --disable-dev-shm-usage, --no-sandbox], extensions: []}}, error Command failed with code: 65, executed: [<path>\selenium-manager2136117563690013775312814197890619\selenium-manager.exe, --browser, chrome, --output, json, --browser-version, 113]
error sending request for url (https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json): error trying to connect: tcp connect error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.5'
Operating System
Windows 10
Selenium version
4.11.0
What are the browser(s) and version(s) where you see this issue?
Chrome 115, Firefox 102.14 esr
What are the browser driver(s) and version(s) where you see this issue?
Chromedriver 115, geckodriver 113
Are you using Selenium Grid?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 29 (14 by maintainers)
ups sorry, disregard my issue.
I forgot to set โConfiguration.browserCapabilities = options;โ