Skip to content

Commit bd3f14c

Browse files
vinogradofflukeis
authored andcommitted
Fix: to avoid using existing /Application/FirefoxNN.app as binary (#3199)
It may exist, but is directory, not binary.
1 parent 2984b13 commit bd3f14c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/client/src/org/openqa/selenium/firefox/internal/Executable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private static File locateFirefoxBinaryFromSystemProperty() {
124124
return null;
125125

126126
File binary = new File(binaryName);
127-
if (binary.exists())
127+
if (binary.exists() && !binary.isDirectory())
128128
return binary;
129129

130130
Platform current = Platform.getCurrent();

0 commit comments

Comments
 (0)