[Bug 2025268] Re: firefox geckodriver in snap does not work

Amin Bandali 2025268 at bugs.launchpad.net
Wed Jun 28 20:39:21 UTC 2023


On Ubuntu 23.04 with Firefox snap 114.0.1 and its geckodriver 0.33, I
put the above two files in a new directory, then ran

python3 -m venv venv
. venv/bin/activate
pip3 install selenium webdriver-manager
pytest test_driver.py

The run failed with the following error:

ERROR test_driver.py::test_1 -
selenium.common.exceptions.InvalidArgumentException: Message: binary is
not a Firefox executable

Per
https://github.com/mozilla/geckodriver/issues/2010#issuecomment-1116203839,
setting options.binary_location =
"/snap/firefox/current/firefox.launcher" fixed it and the test passed.
I believe this is the default in recent versions, so just not setting
options.binary_location worked as well.

I then tried commenting out the ~/tmp directory creation bit, as well as
toggling between the two 'service' assignments, and in every case the
test continued to pass.

Are you using a recent Firefox snap (and its geckodriver) version?

** Bug watch added: github.com/mozilla/geckodriver/issues #2010
   https://github.com/mozilla/geckodriver/issues/2010

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/2025268

Title:
  firefox geckodriver in snap does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2025268/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list