Esempio n. 1
0
 private static FirefoxDriverService CreateService(FirefoxOptions options)
 {
     return(FirefoxDriverService.CreateDefaultService());
 }
Esempio n. 2
0
 /// <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)
 {
 }
Esempio n. 3
0
 public static FirefoxDriverService CreateDefaultService(string driverPath)
 {
     return(FirefoxDriverService.CreateDefaultService(driverPath, "wires.exe"));
 }
Esempio n. 4
0
 /// <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)
 {
 }
Esempio n. 5
0
        public static FirefoxDriverService CreateDefaultService()
        {
            string driverPath = DriverService.FindDriverServiceExecutable("wires.exe", FirefoxDriverService.FirefoxDriverDownloadUrl);

            return(FirefoxDriverService.CreateDefaultService(driverPath));
        }