Skip to content

[πŸ› Bug]: Referencing #13894 – Error message: "Binary is not a Firefox executable" when running the Snap-installed version of Firefox.Β #15556

Closed
@boris779

Description

@boris779

What happened?

The issue still exists, but it's an edge case.
If using Ubuntu and installed firefox with snap, the geckodriver will be automatically installed. And I didn't found a solution to uninstall the snap-installed geckodriver
Seleniummanager detects the snap installed geckodriver , which cannot be used while running your selenium execution.

Workaround is to set the Environment Variable SE_SKIP_DRIVER_IN_PATH = true
Buy the way this Env is not documented, I made an PR (SeleniumHQ/seleniumhq.github.io#2254) for that.

Maybe there should be Warning or an appropriate Message given?

How can we reproduce the issue?

when instancing the driver with Firefoxoptions, the error message occours:


'''
Step failed
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 400. Message: binary is not a Firefox executable 
Host info: host: 'framework', ip: '127.0.1.1'
Build info: version: '4.28.1', revision: '73f5ad48a2'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.11.0-21-generic', java.version: '22.0.2'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
'''

Relevant log output

boris@framework:~/.cache/selenium/manager/0.4.29$ ./selenium-manager --browser firefox
[2025-04-02T13:51:06.564Z INFO ] Driver path: /snap/bin/geckodriver
[2025-04-02T13:51:06.564Z INFO ] Browser path: /snap/bin/firefox

Operating System

Ubuntu

Selenium version

java 4.28.1

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

Firefox

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

GeckoDriver 0.36.0

Are you using Selenium Grid?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-managerSelenium ManagerD-firefoxI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions