We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e484c4 commit a56345aCopy full SHA for a56345a
java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java
@@ -202,11 +202,11 @@ private static CommandExecutor toExecutor(FirefoxOptions options) {
202
203
if (options.isLegacy()) {
204
builder = XpiDriverService.builder()
205
- .withBinary(options.getBinaryOrNull().orElseGet(FirefoxBinary::new))
+ .withBinary(options.getBinary())
206
.withProfile(options.getProfile());
207
} else {
208
builder = new GeckoDriverService.Builder()
209
- .usingFirefoxBinary(options.getBinaryOrNull().orElseGet(FirefoxBinary::new));
+ .usingFirefoxBinary(options.getBinary());
210
}
211
212
return new DriverCommandExecutor(builder.build());
0 commit comments