Description
What happened?
I have tried using Selenium manager feature in selenium version 4.6. On my company network selenium manager is unable to download browser driver.
Earlier I was using webdriver manager on my company network to download drivers, for that I have set proxy in webdriver manager like this :
WebDriverManager.chromedriver().proxy("proxy").setup(); and it was working fine with web driver manager.
In selenium manager is there any way to set the proxy or how selenium manager going to work on networks behind proxy?
I have tested same on my personal network which does not have any firewall and proxy restriction. Selenium manager is able to download browser drivers here and I am able to execute my script without setting browser exe path.
How can we reproduce the issue?
I have tried with below codes on network behind proxy
1. WebDriver driver = new ChromeDriver()
driver.get("https://google.com")
2. Tried to set proxy in chrome options
ChromeOptions options = new ChromeOptions().addArguments("--proxy-server=<Proxy url>");
WebDriver driver = new ChromeDriver(options)
driver.get("https://google.com")
Relevant log output
WARNING: Unable to obtain driver using Selenium Manager: Error running command: [C:\Users\Rupal\AppData\Local\Temp\1\selenium-manager1724451228000609043917808946591\selenium-manager.exe, --driver, chromedriver]
Build info: version: '4.6.0', revision: '79f1c02ae20'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_172'
Driver info: driver.version: Driver
java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://chromedriver.chromium.org/. The latest version can be downloaded from https://chromedriver.chromium.org/downloads
at org.openqa.selenium.internal.Require$StateChecker.nonNull(Require.java:314)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:148)
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:39)
at org.openqa.selenium.chrome.ChromeDriverService$Builder.findDefaultExecutable(ChromeDriverService.java:233)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:450)
Operating System
Windows 10
Selenium version
4.6
What are the browser(s) and version(s) where you see this issue?
Chrome 107
What are the browser driver(s) and version(s) where you see this issue?
not able to download driver version
Are you using Selenium Grid?
no
Metadata
Metadata
Assignees
Type
Projects
Status