Skip to content

Commit da0c26c

Browse files
committed
"wires" is kaput. Stop referring to it.
Now we only look for geckodriver.
1 parent 8bfa175 commit da0c26c

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,10 @@ public static class Builder extends DriverService.Builder<
8181

8282
@Override
8383
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");
9588
}
9689

9790
@Override
@@ -106,7 +99,7 @@ protected ImmutableList<String> createArgs() {
10699
argsBuilder.add("-b");
107100
argsBuilder.add(firefoxExe.getPath());
108101
} 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
110103
// Firefox on the PATH or via a capability.
111104
}
112105
return argsBuilder.build();

0 commit comments

Comments
 (0)