Adding FirefoxDriver constructor that accepts driver server only
import com.google.common.collect.Sets;
import org.openqa.selenium.Capabilities;
+import org.openqa.selenium.ImmutableCapabilities;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.remote.CommandExecutor;
@@ -119,6 +120,10 @@ public FirefoxDriver(FirefoxOptions options) {
super(toExecutor(options), dropCapabilities(options));
}
+ public FirefoxDriver(GeckoDriverService service) {
+ super(new DriverCommandExecutor(service), new FirefoxOptions());
+ }
+
public FirefoxDriver(GeckoDriverService service, FirefoxOptions options) {
super(new DriverCommandExecutor(service), dropCapabilities(options));
}
