Selenium Firefox Marionette Driver with .NET C# Selenium Firefox Marionette Driver with .NET C# selenium selenium

Selenium Firefox Marionette Driver with .NET C#


Marionette seems to want to use the nightly build of FireFox. Download Geckodriver, rename it to wires.exe, copy to output.This works for me (FireFox 47 and Selenium 2.53.0):

var driverService = FirefoxDriverService.CreateDefaultService();driverService.FirefoxBinaryPath = @"C:\Program Files (x86)\Mozilla Firefox\firefox.exe";driverService.HideCommandPromptWindow = true;driverService.SuppressInitialDiagnosticInformation = true;var driver = new FirefoxDriver(driverService, new FirefoxOptions(), TimeSpan.FromSeconds(60));