Skip to content

Commit

Permalink
remove all references to firefox-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 31, 2023
1 parent 7784bbd commit 6b42c10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions java/src/org/openqa/selenium/firefox/FirefoxBinary.java
Expand Up @@ -240,14 +240,9 @@ private static Stream<Executable> locateFirefoxBinariesFromPlatform() {
if (Files.isSymbolicLink(firefoxPath)) {
try {
Path realPath = firefoxPath.toRealPath();
File attempt1 = realPath.getParent().resolve("firefox").toFile();
if (attempt1.exists()) {
executables.add(new Executable(attempt1));
} else {
File attempt2 = realPath.getParent().resolve("firefox-bin").toFile();
if (attempt2.exists()) {
executables.add(new Executable(attempt2));
}
File file = realPath.getParent().resolve("firefox").toFile();
if (file.exists()) {
executables.add(new Executable(file));
}
} catch (IOException e) {
// ignore this path
Expand Down
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/firefox.js
Expand Up @@ -796,7 +796,7 @@ Channel.RELEASE = new Channel(
* @see <https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly>
*/
Channel.NIGHTLY = new Channel(
'/Applications/Firefox Nightly.app/Contents/MacOS/firefox-bin',
'/Applications/Firefox Nightly.app/Contents/MacOS/firefox',
'Nightly\\firefox.exe'
)

Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/firefox/firefox_binary.py
Expand Up @@ -162,7 +162,7 @@ def _get_firefox_start_cmd(self):
start_cmd = self.which(ffname)
# use hardcoded path if nothing else was found by which()
if not start_cmd:
start_cmd = "/Applications/Firefox.app/Contents/MacOS/firefox-bin"
start_cmd = "/Applications/Firefox.app/Contents/MacOS/firefox"
# fallback to homebrew installation for mac users
if not os.path.exists(start_cmd):
start_cmd = os.path.expanduser("~") + start_cmd
Expand Down

0 comments on commit 6b42c10

Please sign in to comment.