Skip to content

Commit

Permalink
Merge pull request kitodo#6048 from matthias-ronge/patch-95
Browse files Browse the repository at this point in the history
Fix Windows cannot find Selenium drivers
  • Loading branch information
solth authored Apr 23, 2024
2 parents 0e519b2 + 7eedc21 commit 9a1bcb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ public static void provideGeckoDriver(String geckoDriverVersion, String download
public static void provideChromeDriver(String downloadFolder, String extractFolder)
throws IOException {
String chromeDriverVersion = fetchLatestStableChromeDriverVersion();
String chromeDriverUrl = CHROME_FOR_TESTING_URL + chromeDriverVersion + File.separator;
String chromeDriverUrl = CHROME_FOR_TESTING_URL + chromeDriverVersion + '/';
String driverFilename = CHROME_DRIVER;
File chromeDriverFile;
if (SystemUtils.IS_OS_WINDOWS) {
driverFilename = driverFilename + EXE;
File chromeDriverZipFile = new File(downloadFolder + CHROME_DRIVER_WIN_SUBDIR + File.separator + ZIP_FILE);
FileUtils.copyURLToFile(new URL(chromeDriverUrl + CHROME_DRIVER_WIN_PREFIX + File.separator
FileUtils.copyURLToFile(new URL(chromeDriverUrl + CHROME_DRIVER_WIN_PREFIX + '/'
+ CHROME_DRIVER_WIN_SUBDIR + ZIP), chromeDriverZipFile);
chromeDriverFile = extractZipFileToFolder(chromeDriverZipFile, new File(extractFolder), driverFilename,
CHROME_DRIVER_WIN_SUBDIR);
Expand Down

0 comments on commit 9a1bcb1

Please sign in to comment.