бинарники должны быть в ресурсах = туда путь и сетайте
public final static String setFirefoxDriverPathWin() {
String path = “src/test/resources/binary/geckodriver.exe”;
System.setProperty(“webdriver.gecko.driver”, path);
rootLogger.info("Windows Local driver path is selected: "+path);
return path;
}
public final static String setChromeDriverPathWin() {
String path = “src/test/resources/binary/chromedriver.exe”;
System.setProperty(“webdriver.chrome.driver”, path);
rootLogger.info("Local driver path is selected: "+path);
return path;
}