Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.7k points)

Seen a lot of questions regarding Selenium 2.53.1 and Firefox 47.0.1, but none in regards to the Selenium 3 Beta release. I am attempting to use the new gecko/marionette Firefox web drivers, but even though I have the driver's location in; my environment path, Firefox install folder in programs, and give the drive location in the system environment, it will still not work correctly.

Error:

The geckodriver.exe does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at https://github.com/mozilla/geckodriver/releases.

Using:

Selenium 2.53.1 server

Firefox 48

Selenium 3 Beta DLLs

Window 10

Example Code 1

using OpenQA.Selenium.Firefox;

    public static class FirefoxInitialise

    {

         public static IWebDriver Driver {get; set;}

         Driver = new FirefoxDriver();

    }

Also attempted the below:

   using OpenQA.Selenium.Firefox;

    public static class FirefoxInitialise

    {

         public static IWebDriver Driver {get; set;}

         FirefoxDriverServices service = FirefoxDriverService.CreateDefaultService();

         service.FirefoxBinaryPath = @"C:\Program Files\Mozilla Firefox\firefox.exe";

         FirefoxOptions options = new FirefoxOptions();

         TimeSpan time = TimeSpan.FromSeconds(10);

         Driver = new FirefoxDriver(service, options, time);

    }

Any help or insight as to why the code still won't detect this driver would be greatly appreciated it.

1 Answer

0 votes
by (62.9k points)

Try to put the geckodriver.exe in your path: C:\Users\YourName\Documents\Visual Studio 2013\Projects\seleniump\seleniump\bin\Debug

you can find geckodriver.exe at this link:

https://github.com/mozilla/geckodriver/releases

If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s Selenium certification!

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers

500 comments

108k users

Browse Categories

...