We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25fe2cf commit 5a271c3Copy full SHA for 5a271c3
java/client/src/org/openqa/selenium/firefox/internal/Executable.java
@@ -31,6 +31,7 @@
31
import java.util.Map;
32
33
import static org.openqa.selenium.Platform.MAC;
34
+import static org.openqa.selenium.Platform.UNIX;
35
import static org.openqa.selenium.Platform.WINDOWS;
36
37
/**
@@ -167,10 +168,18 @@ private static File locateFirefoxBinaryFromPlatform() {
167
168
return binary;
169
}
170
171
+ if (current.is(UNIX)) {
172
+ String systemFirefox = CommandLine.find("firefox-bin");
173
+ if (systemFirefox != null) {
174
+ return new File(systemFirefox);
175
+ }
176
177
+
178
String systemFirefox = CommandLine.find("firefox");
179
if (systemFirefox != null) {
180
return new File(systemFirefox);
181
182
183
return null;
184
185
0 commit comments