From ca24dbe09d922b557886e81c523aa846224a36da Mon Sep 17 00:00:00 2001 From: Matthias Ronge Date: Fri, 25 Aug 2023 10:33:21 +0200 Subject: [PATCH] Fix WebDriverProvider for Windows Also on Windows, URIs use forward slashes --- .../kitodo/selenium/testframework/helper/WebDriverProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kitodo/src/test/java/org/kitodo/selenium/testframework/helper/WebDriverProvider.java b/Kitodo/src/test/java/org/kitodo/selenium/testframework/helper/WebDriverProvider.java index 4a32d803b1b..f999982eecd 100644 --- a/Kitodo/src/test/java/org/kitodo/selenium/testframework/helper/WebDriverProvider.java +++ b/Kitodo/src/test/java/org/kitodo/selenium/testframework/helper/WebDriverProvider.java @@ -169,7 +169,7 @@ public static void provideChromeDriver(String downloadFolder, String extractFold private static File extractZipFileToFolder(File zipFile, File destinationFolder, String chromeDriverFilename, String chromeDriverVersion) { extractZipFileToFolder(zipFile, destinationFolder); - return new File(destinationFolder.toURI().resolve(chromeDriverVersion + File.separator) + return new File(destinationFolder.toURI().resolve(chromeDriverVersion + '/') .resolve(chromeDriverFilename)); }