Closed noelo-cohelo closed 11 months ago
@noelo-cohelo, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
Selenium has done a lot of work on automated driver management over the past year. Please update to the latest version and retry. If it isn't working, please turn on logging and provide results: https://www.selenium.dev/documentation/webdriver/troubleshooting/logging/
It seems to use the newest version of Selenium, I had to upgrade JDK - it wouldn't work on JDK 8. It worked fine with JDK 21 and Selenium 4.16.1. What is interesting, it also worked with JDK 21 and Selenium 4.9.1. Unfortunately I cannot upgrade JDK in our project since we still have some Java 6 code which is not compatible.
I just found this, probably related: https://github.com/mozilla/geckodriver/issues/2062.
There is even nicer workaround there, by creating a symbolic link between the place where GeckoDriver expects Firefox to be and the one it actually is.
The problem only exists when running the provided code from snap-installed IntelliJ Idea. When I tried from manually installed instance, it works fine.
yes, snap installations are challengin — https://www.selenium.dev/documentation/selenium_manager/#custom-package-managers
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?
After Selenium upgrade from 3.13.0, GeckoDriver stopped finding Firefox. It expects it to be installed as snap, but I just have one from yum repository. Uncommenting the commented line from code sample is a workaround for this problem. This seems like a regression.
Following issues might be caused by the same: https://github.com/SeleniumHQ/selenium/issues/12495 https://github.com/SeleniumHQ/selenium/issues/11414
There is also a StackExchange topic: https://sqa.stackexchange.com/questions/51464/selenium-latest-version-is-not-able-to-launch-firefox-browser-in-ubuntu-20-04
How can we reproduce the issue?
Relevant log output
Operating System
CentOS
Selenium version
Java 4.9.1
What are the browser(s) and version(s) where you see this issue?
Firefox 102
What are the browser driver(s) and version(s) where you see this issue?
GeckoDriver (don't know how to check the version)
Are you using Selenium Grid?
I don't think so