Downgrade Firefox.
If already using gem 'headless'
and updating gems is not desirable as for right now, then you need to downgrade firefox.
For Ubuntu (but other linux distros would be pretty similar) you should:
Remove firefox that comes with Ubuntu latest versions
sudo apt-get purge firefox
You can complement with removing some associated data as explained here
Now, install an older version of Firefox. For me, version 42.0
worked (as our Travis.ci uses it)
$ 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 your cucumber specs/selenium specs.
You can now download the newest version of Firefox and create a .desktop
file in /usr/share/applications/
to access it from the dock. And let Selenium find by default the older version. Take this for reference