Skip to content

Commit

Permalink
Oh right, it has to work with Java 8 still
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 15, 2023
1 parent 76f8f89 commit b57fb80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/src/org/openqa/selenium/manager/SeleniumManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
Expand Down Expand Up @@ -171,7 +172,7 @@ private synchronized Path getBinary() {
String binaryPath;
if (System.getenv("SE_MANAGER_PATH") != null) {
folder = System.getenv("SE_MANAGER_PATH");
binary = Path.of(String.format("%s/%s%s", folder, SELENIUM_MANAGER, extension));
binary = Paths.get(String.format("%s/%s%s", folder, SELENIUM_MANAGER, extension));
} else {
binaryPath = String.format("%s/%s%s", folder, SELENIUM_MANAGER, extension);
try (InputStream inputStream = this.getClass().getResourceAsStream(binaryPath)) {
Expand Down

0 comments on commit b57fb80

Please sign in to comment.