0

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?

Boni García
  • 4,618
  • 5
  • 28
  • 44

1 Answers1

0

The alternative is using the method browserVersionDetectionCommand(), in which you should specify the command to discover the browser version in the shell. Take a look to the documentation for further details. Also, here you can find an example.

Boni García
  • 4,618
  • 5
  • 28
  • 44