(Also note: The version of firefox I have is 53.0.3. I found a similar question here but the solution of "installing selenium-webdriver version 2.53.0" did not solve it for me. If you see the following screen you are good to move to the next step. However i'm still getting the same error. For example, if we were using a Mac OS X machine, our user name was bob, and we put our drivers in the root of our home folder, the path would be /Users/bob. This should be an absolute path from the root of your hard disk, to the directory containing the drivers. Then I went into My computer->Properties->Advanced system settings->Environment variables->Path (in system variables) and I added C:\geckodriver\geckodriver.exe 'Add the chromedriver and geckodriver driver's location to your system PATH variable. /geckodriver.exe -binary C:/Program Files/Mozilla Firefox/firefox. I placed the exectuable file called geckodriver.exe in the following directory: C:\geckodriver\geckodriver.exe Note that geckodriver back that early in 2017 had a number of bugs and missing features so trying to test with it may not be worth your time. So after seeing this error I went to the geckodriver releases url as instructed and downloadeded the geckodriver-v0.17.0 file for windows 32bit. Since Firefox 52 was released and geckodriver 0.15 was released I would expect those two to be compatible, but 0.17 may be too new. When I run this test code, I get the following error: Selenium::WebDriver::Error::WebDriverError: It 'should open browser and click on contact' doĭriver = Selenium::WebDriver.for(:firefox) I have set up an Rspec test with the following code: require 'rspec' I am using the IDE Jetbrains RubyMine to build the project.Īnd I have the following versions of the required programs installed: I was wondering can you see If I am missing something?thanksįirstly I will tell you more on the background of the project.
#Unable to find mozilla geckodriver. how to#
We are learning how to work with webdriver, however I am receiving an error when I try to run my project. I am following a tutorial on how to use RSpec with Ruby.