Ruby selenium webdriver unable to find Mozilla geckodriver

You can now move toselenium-webdriver 3.4.3 which is the latest version. However, you still need the GeckoDriver because there no native extensions of Selenium in FF. You can also add the geckodriver-helper gem to your GemFile. Check https://github.com/DevicoSolutions/geckodriver-helper .

Be aware of that there are still some issues that have to be fixed when you use the combination of Selenium3 & FF48+ combination and can affect your tests like double-click and modal windows.


Download geckodriver and add it to your PATH

cd ~/Downloads/
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
tar -zxvf geckodriver-v0.24.0-linux64.tar.gz
sudo mv geckodriver /usr/local/bin/

Note: That's currently the path for the latest release. If you need another release, modify the download path accordingly.


You have selenium-webdriver-3.0.0.beta3.1 which is only for Firefox 48 and later (and not yet properly working). Fallback to selenium-webdriver version 2.53.4 and try again.

And also try this..

  • In the terminal change directory path to the directory where gem was installed
  • Run gem uninstall selenium-webdriver
  • Run gem install selenium-webdriver -v 2.53.4

You have to make sure that geckodriver is in your PATH.

In my case you can see that /usr/local/bin is already in my path:

$echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/mysql/bin

So simply moving geckodriver into /usr/local/bin makes it accessible.

mv geckodriver /usr/local/bin/