selenium: Not able to launch Chrome 116.x version with Selenium 4.11[🐛 Bug]:

What happened?

I am using Selenium version: 4.11, with Chrome browser Version 116.0.5845.97 I am not using webdriver manager.

My code: Webdriver driver; ChromeOptions options = new ChromeOptions(); options.addArguments(“–disable-infobars”); options.addArguments(“–remote-allow-origins=*”); driver = new ChromeDriver(options);

driver.get(“https://google.com”);

How can we reproduce the issue?

Webdriver driver;
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-infobars");
 options.addArguments("--remote-allow-origins=*");
driver = new ChromeDriver(options);

driver.get("https://google.com");

Relevant log output

org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: Capabilities {browserName: chrome, goog:chromeOptions: {args: [--headless, --no-sandbox, --disable-infobars, --remote-allow-origins=*], extensions: [], prefs: {profile.default_content_setting_values.notifications: 1}}}, error Command failed with code: 65, executed: [C:\Users\debomita.b\AppData\Local\Temp\selenium-manager393590558668001515354363940359410\selenium-manager.exe, --browser, chrome, --output, json]
Unsuccessful response (403 Forbidden) for URL https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chromedriver-win64.zip
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'
Driver info: driver.version: ChromeDriver

Operating System

Windows 11

Selenium version

4.11

What are the browser(s) and version(s) where you see this issue?

Selenium version: 4.11, with Chrome browser Version 116.0.5845.97

What are the browser driver(s) and version(s) where you see this issue?

Selenium version: 4.11, with Chrome browser Version 116.0.5845.97

Are you using Selenium Grid?

nO

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Reactions: 1
  • Comments: 21 (4 by maintainers)

Most upvoted comments

We were also facing similar issue, since our project was also running behind proxy. Below code fixed the issue for us.

Proxy proxy = new Proxy();
proxy.setAutodetect(true); // true or false depends on system proxy settings
//proxy.setHttpproxy("some.host.com:8081/");
proxy.setSslProxy("some.host.com:8081/");
  
//chromeOptions.setBinary("C:\\Program Files (x86)...\\chrome.exe"); //may be needed some times if chrome binary is not in C:\\Program Files...
chromeOptions.setProxy(proxy);
driver = new ChromeDriver(chromeOptions);

Selenium version 4.11.0 | Chrome version:116.x