38
38
import org .openqa .selenium .WebDriverException ;
39
39
import org .openqa .selenium .os .ExecutableFinder ;
40
40
41
+ /**
42
+ * A wrapper around Firefox's binary. This allows us to locate the binary in a portable way.
43
+ *
44
+ * @deprecated Use {@link FirefoxOptions#setBinary(Path)} or {@link
45
+ * FirefoxOptions#setBinary(String)} instead.
46
+ */
41
47
public class FirefoxBinary {
42
48
43
49
/** Enumerates Firefox channels, according to https://wiki.mozilla.org/RapidRelease */
@@ -178,7 +184,7 @@ static Executable locateFirefoxBinaryFromSystemProperty() {
178
184
if (!binaryName .endsWith (".app" )) {
179
185
binaryName += ".app" ;
180
186
}
181
- binaryName += "/Contents/MacOS/firefox-bin " ;
187
+ binaryName += "/Contents/MacOS/firefox" ;
182
188
}
183
189
184
190
binary = new File (binaryName );
@@ -210,7 +216,7 @@ private static Stream<Executable> locateFirefoxBinariesFromPlatform() {
210
216
211
217
} else if (current .is (MAC )) {
212
218
// system
213
- File binary = new File ("/Applications/Firefox.app/Contents/MacOS/firefox-bin " );
219
+ File binary = new File ("/Applications/Firefox.app/Contents/MacOS/firefox" );
214
220
if (binary .exists ()) {
215
221
executables .add (new Executable (binary ));
216
222
}
@@ -222,7 +228,7 @@ private static Stream<Executable> locateFirefoxBinariesFromPlatform() {
222
228
}
223
229
224
230
} else if (current .is (UNIX )) {
225
- String systemFirefoxBin = new ExecutableFinder ().find ("firefox-bin " );
231
+ String systemFirefoxBin = new ExecutableFinder ().find ("firefox" );
226
232
if (systemFirefoxBin != null ) {
227
233
executables .add (new Executable (new File (systemFirefoxBin )));
228
234
}
0 commit comments