Sometimes we test different versions of the same browser on the same local machine and we used WebDriverManager#browserPath method to setup non-default browsers Like this:
private void applySettings() {
if (!driverProperties.getBinaryPath().isEmpty()) {
manager.browserPath(driverProperties.getBinaryPath());
}
if (manager.getDriverManagerType() == DriverManagerType.IEXPLORER) {
manager.arch32();
}
}
WebDriverManager#browserPath method doesn't exist since version 4.4.0. I searched for information on how we can replace this method but didn't find any explanation.
What is a workaround to set up a non-default browser to get Selenium WebDriver for this browser?