@@ -81,17 +81,10 @@ public static class Builder extends DriverService.Builder<
81
81
82
82
@ Override
83
83
protected File findDefaultExecutable () {
84
- // We should really look for geckodriver, but the old name was wires. Look for both.
85
- try {
86
- return findExecutable ("geckodriver" , GECKO_DRIVER_EXE_PROPERTY ,
87
- "https://github.com/mozilla/geckodriver" ,
88
- "https://github.com/mozilla/geckodriver/releases" );
89
- } catch (IllegalStateException e ) {
90
- // Geckodriver not found. Fall back to wires
91
- return findExecutable ("wires" , GECKO_DRIVER_EXE_PROPERTY ,
92
- "https://github.com/mozilla/geckodriver" ,
93
- "https://github.com/mozilla/geckodriver/releases" );
94
- }
84
+ return findExecutable (
85
+ "geckodriver" , GECKO_DRIVER_EXE_PROPERTY ,
86
+ "https://github.com/mozilla/geckodriver" ,
87
+ "https://github.com/mozilla/geckodriver/releases" );
95
88
}
96
89
97
90
@ Override
@@ -106,7 +99,7 @@ protected ImmutableList<String> createArgs() {
106
99
argsBuilder .add ("-b" );
107
100
argsBuilder .add (firefoxExe .getPath ());
108
101
} catch (WebDriverException e ) {
109
- // Unable to find Firefox. GeckoDriver will be responsible for finding
102
+ // Unable to find Firefox. GeckoDriver will be responsible for finding
110
103
// Firefox on the PATH or via a capability.
111
104
}
112
105
return argsBuilder .build ();
0 commit comments