File tree Expand file tree Collapse file tree
java/src/org/openqa/selenium/remote/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import org .openqa .selenium .Capabilities ;
66import org .openqa .selenium .internal .Require ;
77import org .openqa .selenium .manager .SeleniumManager ;
8- import org .openqa .selenium .os .ExecutableFinder ;
98import org .openqa .selenium .remote .NoSuchDriverException ;
109
1110public class DriverFinder {
1211
13- private static final Logger LOG = Logger .getLogger (DriverFinder .class .getName ());
14-
1512 public static String getPath (DriverService service , Capabilities options ) {
1613 Require .nonNull ("Browser options" , options );
1714 String exePath = System .getProperty (service .getDriverProperty ());
1815
19- if (exePath == null ) {
20- exePath = new ExecutableFinder ().find (service .getDriverName ());
21- }
22-
23- if (service .getDriverExecutable () != null ) {
24- // This is needed for Safari Technology Preview until Selenium Manager manages locating on
25- // PATH
26- exePath = service .getDriverExecutable ().getAbsolutePath ();
27- }
28-
2916 if (exePath == null ) {
3017 try {
3118 exePath = SeleniumManager .getInstance ().getDriverPath (options );
You can’t perform that action at this time.
0 commit comments