selenium: Cannot launch ChromeDriver[πŸ› Bug]:

What happened?

I got an error saying that my selenium version is 114 while chrome version is 116. I installed new version for selenium (4.11) and chrome driver 116 win64. I still got errors. According to an advice I read, I searched for chromedriver and deleted it from under C:\Users\Gidi.cache\selenium. Still got errors.

I see in the log attached below this line (log was produced using SeleniumLogger): 2023-08-26 22:16:58 FINE - chromedriver not found in PATH I don’t see an executable named chromedriver in the files I downloaded. I will be grateful for help.

How can we reproduce the issue?

Have Chrome 114 installed with selenium 4.9. Now, update Chrome and see the erorr about version differences. Now, update selenium to 4.11 and download chrome driver 116, and delete chromedriver.exe from .cache folder. Try to launch again. I also tried to delete my project and start a new one.

Relevant log output

2023-08-26 22:16:35 FINE - Selenium Manager binary found at: C:\Users\Gidi\AppData\Local\Temp\selenium-manager148523699687006136012390874952462\selenium-manager.exe 
2023-08-26 22:16:35 FINE - Executing Process: [C:\Users\Gidi\AppData\Local\Temp\selenium-manager148523699687006136012390874952462\selenium-manager.exe, --browser, chrome, --output, json, --debug] 
2023-08-26 22:16:58 FINE - Checking chromedriver in PATH 
2023-08-26 22:16:58 FINE - Running command: chromedriver --version 
2023-08-26 22:16:58 FINE - Output: "" 
2023-08-26 22:16:58 FINE - chromedriver not found in PATH 
2023-08-26 22:16:58 FINE - chrome detected at C:\Program Files\Google\Chrome\Application\chrome.exe 
2023-08-26 22:16:58 FINE - Using shell command to find out chrome version 
2023-08-26 22:16:58 FINE - Running command: wmic datafile where name='C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe' get Version /value 
2023-08-26 22:16:58 FINE - Output: "\r\r\n\r\r\nVersion=116.0.5845.111\r\r\n\r\r\n\r\r\n\r" 
2023-08-26 22:16:58 FINE - Detected browser: chrome 116.0.5845.111 
2023-08-26 22:16:58 FINE - Required driver: chromedriver 116.0.5845.96 
2023-08-26 22:16:58 FINE - Reading metadata from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json 
2023-08-26 22:16:58 FINE - Driver URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chromedriver-win64.zip 
Exception in thread "main" org.openqa.selenium.remote.NoSuchDriverException: Unable to obtain: Capabilities {browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*], extensions: []}}, error Command failed with code: 65, executed: [C:\Users\Gidi\AppData\Local\Temp\selenium-manager148523699687006136012390874952462\selenium-manager.exe, --browser, chrome, --output, json, --debug]
error sending request for url (https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chromedriver-win64.zip): 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.6'
Driver info: driver.version: ChromeDriver
	at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:25)
	at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:13)
	at org.openqa.selenium.chrome.ChromeDriver.generateExecutor(ChromeDriver.java:99)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:88)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:83)
	at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:51)
	at Main.main(Main.java:13)
Caused by: org.openqa.selenium.WebDriverException: Command failed with code: 65, executed: [C:\Users\Gidi\AppData\Local\Temp\selenium-manager148523699687006136012390874952462\selenium-manager.exe, --browser, chrome, --output, json, --debug]
error sending request for url (https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chromedriver-win64.zip): 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.6'
Driver info: driver.version: ChromeDriver
	at org.openqa.selenium.manager.SeleniumManager.runCommand(SeleniumManager.java:151)
	at org.openqa.selenium.manager.SeleniumManager.getDriverPath(SeleniumManager.java:273)
	at org.openqa.selenium.remote.service.DriverFinder.getPath(DriverFinder.java:22)
	... 6 more

Process finished with exit code 1

Operating System

Windows 10 64 bit

Selenium version

Java Selenium 4.11

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

Chrome

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

ChromeDriver 116

Are you using Selenium Grid?

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 19 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I found the reason for my error. The the Chrome for Testing availability dashboard has both downloads for chrome and chromddriver. I mistakenly downloaded chrome. Once I downloaded chromedriver the issue was resolved. @titusfortner, thank you for your help πŸ˜ƒ

@kaurmanjot90 double check that you have Rosetta installed. It won’t be necessary in 4.12, but is in 4.11

Thank you plenty! This helped to resolve my issue, able to execute.