-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: unknown error: cannot find Chrome binary #12381
Comments
@gtach2o, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
This is almost certainly fixed by #12208 - just needs shipping |
Thank you! Also what if those endpoints are blocked in test environment? |
I also get the same. I don't think its an Selenium issue, rather an Chromedriver issue. It works fine on Linux but on Mac the Chrome binary can't be found. |
Hmm, it sounds like the patch versions might not match what it finds? In the meantime you can use chromedriver v114 and it will still work with Chrome v115 |
Ok. I tried setting the binary location of Chrome and it works. I manually set Chromedriver to 115, then run with default settings, then it fails on both arm/intel Macs. On Ubuntu the same thing works. I think GoogleChromeLabs/chrome-for-testing#30 is the issue. |
Can confirm Chrome - 115.0.5790.98 and Chromedriver - 115.0.5790.98 work on LInux |
By the way, without the webdrivers gems this works:
With webdrivers it insists to attempt downloading the driver for Chrome 115 and it dies with a 404 error. |
Yes, looks like there is an issue locating the default Chrome location — GoogleChromeLabs/chrome-for-testing#30 @pmontrasio |
I still see the issue with chrome version 115 on Mac. |
@Akkasim46 yes, that is the Chromium bug linked above. |
As a workaround in Selenium (and macOS), you can specify the Chrome binary path as follows |
I also have this error with 115 on Mac. It doesn't seem to be fixed in 4.11.0. With 4.10.0 I get this error:
And with 4.11.0 (master) I get this error:
And it's correct, this file does not exist: The
Is there some installation stage that is missing when the gem is installed directly from github? |
The following command will install chromedriver 114 with homebrew, which is working with chrome 115: |
Selenium 4.11.0 has been released, please upgrade and this should work. |
two things going on here: * we don't need to manually specify the binary location in macos anymore SeleniumHQ/selenium#12381 * setting the binary location with None no longer works
still see the issue on Mac with the new release(4.11.0)! |
Please raise a new issue with your code and the logs turned on. Make sure you are not using a third party manager |
But it has not difference than this. Still need to open it as if it's a new issue? |
Please do that or join our chat to share your code. It takes longer to post things here and wait for answers. https://www.selenium.dev/support/ |
The cause of this issue has been fixed. There are many things right now that can give an error like this. We can't explain what's wrong without seeing what code isn't working. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What happened?
Hi!
After driver update it can't start the browser.
Previous driver version 114.0.5735.90 works with no issue.
Chrome version - 115.0.5790.98
Chromedriver version - 115.0.5790.98
Selenium Java 4.10.0
GoogleChromeLabs/chrome-for-testing#26
How can we reproduce the issue?
Relevant log output
The text was updated successfully, but these errors were encountered: