I cannot find any implementations to get geckodriver to run my tests on FF for my C# solution, so I am reaching out to see what solutions you guys might have.
I have tried these two:
FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(); service.FirefoxBinaryPath = @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"; FirefoxDriver driver = new FirefoxDriver(service);
This fails with the message "The type or namespace name 'FirefoxDriverService' could not be found (are you missing a using directive or an assembly reference?)"
System.Environment.SetEnvironmentVariable("webdriver.gecko.driver", "C:\\Selenium\\geckodriver.exe"); var _driver = new FirefoxDriver();
This fails the test claiming that it is unable to initialize the firefoxdriver.
FF version #:49.0.2
GeckoDriver version #: 0.11.1