Skip to content

Commit ccccdd5

Browse files
committed
added compatibility with chromedriver 94 for windows
1 parent b803607 commit ccccdd5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/java/utils/BrowserFactory.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ public class BrowserFactory {
1717
private static final HashMap<String, String> configurationMap = PropertiesFile.read("src/test/resources/environment/config.properties");
1818
static String webBrowserType = configurationMap.get("browser");
1919
static boolean headless = Boolean.parseBoolean(configurationMap.get("isHeadless"));
20-
static String chromeDriver,firefoxDriver,IEDriver;
20+
static String chromeDriver,firefoxDriver,IEDriver, osName;
21+
static String driversPath = "src/test/resources/drivers/";
22+
2123

2224
public static WebDriver getFactoryDriver() {
23-
String driversPath = "src/test/resources/drivers/";
24-
String osName = System.getProperty("os.name").toLowerCase();
25+
osName = System.getProperty("os.name").toLowerCase();
2526
if (osName.contains("mac")){
2627
chromeDriver = "macOs_drivers/chromedriver";
2728
firefoxDriver = "macOs_drivers/geckodriver";
Binary file not shown.

0 commit comments

Comments
 (0)