Adding inadvertently omitted FirefoxDriverconstructor for .NET
To maintain consistency with other drivers, we are adding a constructor
that takes a FirefoxDriverService and a FirefoxOptions. All other drivers
have a "service and options" constructor, making Firefox the outlier.
@@ -206,6 +206,16 @@ public FirefoxDriver(string geckoDriverDirectory, FirefoxOptions options, TimeSp
{
}
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FirefoxDriver"/> class using the specified options, driver service, and timeout. Uses the Mozilla-provided Marionette driver implementation.
+ /// </summary>
+ /// <param name="service">The <see cref="FirefoxDriverService"/> to use.</param>
+ /// <param name="options">The <see cref="FirefoxOptions"/> to be used with the Firefox driver.</param>
+ public FirefoxDriver(FirefoxDriverService service, FirefoxOptions options)
+ : this(service, options, RemoteWebDriver.DefaultCommandTimeout)
+ {
+ }
+
/// <summary>
/// Initializes a new instance of the <see cref="FirefoxDriver"/> class using the specified options, driver service, and timeout. Uses the Mozilla-provided Marionette driver implementation.
/// </summary>
