Please find the below code to open the Firefox browser in the latest
Selenium 3.0 version -
FirefoxDriverService service =
FirefoxDriverService.CreateDefaultService(@"G:\softwares\geckodriver-v0.10.0-win64",
"geckodriver.exe");
service.FirefoxBinaryPath = @"C:\Program Files (x86)\Mozilla
Firefox\firefox.exe";
IWebDriver driver = new FirefoxDriver(service);
driver.Url = "http://google.com";
And then also set the path of geckodriver.exe file in the environment
variable.