Skip to content

Commit b27e6e5

Browse files
committed
Adding FirefoxDriver constructors that accept legacy XpiDriverService
1 parent 03c722f commit b27e6e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,18 @@ public FirefoxDriver(GeckoDriverService service) {
124124
super(new DriverCommandExecutor(service), new FirefoxOptions());
125125
}
126126

127+
public FirefoxDriver(XpiDriverService service) {
128+
super(new DriverCommandExecutor(service), new FirefoxOptions());
129+
}
130+
127131
public FirefoxDriver(GeckoDriverService service, FirefoxOptions options) {
128132
super(new DriverCommandExecutor(service), dropCapabilities(options));
129133
}
130134

135+
public FirefoxDriver(XpiDriverService service, FirefoxOptions options) {
136+
super(new DriverCommandExecutor(service), dropCapabilities(options));
137+
}
138+
131139
private static CommandExecutor toExecutor(FirefoxOptions options) {
132140
Objects.requireNonNull(options, "No options to construct executor from");
133141
DriverService.Builder<?, ?> builder;

0 commit comments

Comments
 (0)