Skip to content

Commit

Permalink
Fixing executable finder on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jan 25, 2016
1 parent 9312fa1 commit f362d77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions java/client/src/org/openqa/selenium/os/ExecutableFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public String find(String named) {
return named;
}

if (Platform.getCurrent().is(Platform.WINDOWS)) {
file = new File(named + ".exe");
if (canExecute(file)) {
return named + ".exe";
}
}

addPathFromEnvironment();
if (Platform.getCurrent().is(Platform.MAC)) {
addMacSpecificPath();
Expand Down

0 comments on commit f362d77

Please sign in to comment.