private static FirefoxDriverService CreateService(FirefoxOptions options) { return(FirefoxDriverService.CreateDefaultService()); }
/// <summary> /// Initializes a new instance of the <see cref="FirefoxDriver"/> class using the specified path /// to the directory containing geckodriver.exe, options, and command timeout. /// </summary> /// <param name="geckoDriverDirectory">The full path to the directory containing geckodriver.exe.</param> /// <param name="options">The <see cref="FirefoxOptions"/> to be used with the Firefox driver.</param> /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param> public FirefoxDriver(string geckoDriverDirectory, FirefoxOptions options, TimeSpan commandTimeout) : this(FirefoxDriverService.CreateDefaultService(geckoDriverDirectory), options, commandTimeout) { }
public static FirefoxDriverService CreateDefaultService(string driverPath) { return(FirefoxDriverService.CreateDefaultService(driverPath, "wires.exe")); }
/// <summary> /// Initializes a new instance of the <see cref="FirefoxDriver"/> class using the specified options. Uses the Mozilla-provided Marionette driver implementation. /// </summary> /// <param name="options">The <see cref="FirefoxOptions"/> to be used with the Firefox driver.</param> public FirefoxDriver(FirefoxOptions options) : this(FirefoxDriverService.CreateDefaultService(), options, RemoteWebDriver.DefaultCommandTimeout) { }
public static FirefoxDriverService CreateDefaultService() { string driverPath = DriverService.FindDriverServiceExecutable("wires.exe", FirefoxDriverService.FirefoxDriverDownloadUrl); return(FirefoxDriverService.CreateDefaultService(driverPath)); }