File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
java/client/src/org/openqa/selenium/firefox/internal Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 31
31
import java .util .Map ;
32
32
33
33
import static org .openqa .selenium .Platform .MAC ;
34
+ import static org .openqa .selenium .Platform .UNIX ;
34
35
import static org .openqa .selenium .Platform .WINDOWS ;
35
36
36
37
/**
@@ -167,10 +168,18 @@ private static File locateFirefoxBinaryFromPlatform() {
167
168
return binary ;
168
169
}
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
+
170
178
String systemFirefox = CommandLine .find ("firefox" );
171
179
if (systemFirefox != null ) {
172
180
return new File (systemFirefox );
173
181
}
182
+
174
183
return null ;
175
184
}
176
185
You can’t perform that action at this time.
0 commit comments