-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
What happened?
An error occurs when trying to set a proxy auto-configuration URL using setProxyAutoconfigUrl() in a FirefoxOptions object. The geckodriver is not able to launch, and the following error is thrown:
org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: geckodriver, error Command failed with code: 65, executed: [--browser, firefox, --browser-version, 128.0, --proxy, http://web-proxy/proxy.pac, --language-binding, java, --output, json]
error sending request for url (https://product-details.mozilla.org/1.0/firefox_history_major_releases.json)
Build info: version: '4.26.0', revision: '69f9e5e'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.7.2', java.version: '17.0.5'
Driver info: driver.version: FirefoxDriver
How can we reproduce the issue?
FirefoxOptions firefoxOptions = new FirefoxOptions();
firefoxOptions.setBrowserVersion("129.0");
Proxy proxy = new Proxy();
proxy.setProxyAutoconfigUrl("http://web-proxy/proxy.pac");
firefoxOptions.setProxy(proxy);
new FirefoxDriver(firefoxOptions);Relevant log output
org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: geckodriver, error Command failed with code: 65, executed: [--browser, firefox, --browser-version, 133.0, --proxy, http://web-proxy/proxy.pac, --language-binding, java, --output, json]
error sending request for url (https://product-details.mozilla.org/1.0/firefox_history_major_releases.json)
Build info: version: '4.26.0', revision: '69f9e5e'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '14.7.2', java.version: '17.0.5'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.remote.service.DriverFinder.getBinaryPaths(DriverFinder.java:121)
at org.openqa.selenium.remote.service.DriverFinder.getDriverPath(DriverFinder.java:55)
at org.openqa.selenium.firefox.FirefoxDriver.generateExecutor(FirefoxDriver.java:141)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:132)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:112)
at firefoxAutomation.FirefoxBrowserDownloadDemo.main(FirefoxBrowserDownloadDemo.java:41)Operating System
Macos
Selenium version
selenium-server-4.27.0.jar
What are the browser(s) and version(s) where you see this issue?
Firefox 128.0
What are the browser driver(s) and version(s) where you see this issue?
geckodriver 0.35.0
Are you using Selenium Grid?
No response