Open Davide-Leo opened 1 week ago
@Davide-Leo, 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!
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: https://github.com/SeleniumHQ/selenium/issues/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