Downgrade Firefox.
If using gem 'headless' and updating gems is already undesirable, as now, then you need to downgrade Firefox.
For Ubuntu (but other Linux distributions will be very similar) you should:
Uninstall Firefox that ships with the latest versions of Ubuntu
sudo apt-get purge firefox
You can complement the deletion of some related data as described here.
Now install an older version of Firefox. Version 42.0 worked for me (as our Travis.ci uses)
$ export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-42.0&lang=en-US&os=linux64' $ wget --no-verbose -O /tmp/firefox-42.0.tar.bz2 $FIREFOX_SOURCE_URL $ tar xvC ~/. -f /tmp/firefox-42.0.tar.bz2 ln -s ~/firefox/firefox ~/bin/firefox
Open a new terminal tab and run the cucumber / selenium specifications.
Now you can download the latest version of Firefox and create a .desktop file in /usr/share/applications/ to access it from the dock. And let Selenium find the older version by default. Take this for reference
juliangonzalez 04 Oct '18 at 14:23 2018-10-04 14:23
source share