-
-
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]: Message: binary is not a Firefox executable #14602
Comments
@Davide-Leo, 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! |
I can't reproduce this on my Mac machine with my binary location. The scripts works correctly for me. from selenium.webdriver import FirefoxOptions
from selenium import webdriver
import selenium.webdriver.firefox.service as FirefoxService
options = FirefoxOptions()
# which firefox
# /usr/bin/firefox
options.binary_location = "/Applications/Firefox.app/Contents/MacOS/firefox"
# which geckodriver
# /snap/bin/geckodriver
firefoxdriver_bin = "/Users/user/Downloads/geckodriver"
service = FirefoxService.Service(executable_path=firefoxdriver_bin)
driver = webdriver.Firefox(service=service, options=options)
driver.get("https://pythonbasics.org") |
Execute those path of firefox and geckodriver with --version. Can it return version info properly? |
The version I have is the one I provided under the section |
What happened?
Even by specifying driver path and browser path (as said here: #13169 and here: https://www.selenium.dev/documentation/selenium_manager/#custom-package-managers ) I still get the "binary is not a Firefox executable" message.
By running
The browser is properly launched.
How can we reproduce the issue?
python version: Python 3.12.3
Relevant log output
Operating System
Ubuntu 22.04.4 LTS
Selenium version
Version: 4.25.0
What are the browser(s) and version(s) where you see this issue?
/usr/bin/firefox --version
-->
Mozilla Firefox 131.0.2
What are the browser driver(s) and version(s) where you see this issue?
/snap/bin/geckodriver --version
-->
geckodriver 0.35.0 ( 2024-10-08)
The source code of this program is available from
testing/geckodriver in https://hg.mozilla.org/mozilla-central.
This program is subject to the terms of the Mozilla Public License 2.0.
You can obtain a copy of the license at https://mozilla.org/MPL/2.0/.
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: