diff --git a/java/src/org/openqa/selenium/remote/service/DriverFinder.java b/java/src/org/openqa/selenium/remote/service/DriverFinder.java index 2ba804342b919..9bd5b8a62f020 100644 --- a/java/src/org/openqa/selenium/remote/service/DriverFinder.java +++ b/java/src/org/openqa/selenium/remote/service/DriverFinder.java @@ -5,27 +5,14 @@ import org.openqa.selenium.Capabilities; import org.openqa.selenium.internal.Require; import org.openqa.selenium.manager.SeleniumManager; -import org.openqa.selenium.os.ExecutableFinder; import org.openqa.selenium.remote.NoSuchDriverException; public class DriverFinder { - private static final Logger LOG = Logger.getLogger(DriverFinder.class.getName()); - public static String getPath(DriverService service, Capabilities options) { Require.nonNull("Browser options", options); String exePath = System.getProperty(service.getDriverProperty()); - if (exePath == null) { - exePath = new ExecutableFinder().find(service.getDriverName()); - } - - if (service.getDriverExecutable() != null) { - // This is needed for Safari Technology Preview until Selenium Manager manages locating on - // PATH - exePath = service.getDriverExecutable().getAbsolutePath(); - } - if (exePath == null) { try { exePath = SeleniumManager.getInstance().getDriverPath(options);