File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
java/src/org/openqa/selenium/remote/service Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 5
5
import org .openqa .selenium .Capabilities ;
6
6
import org .openqa .selenium .internal .Require ;
7
7
import org .openqa .selenium .manager .SeleniumManager ;
8
- import org .openqa .selenium .os .ExecutableFinder ;
9
8
import org .openqa .selenium .remote .NoSuchDriverException ;
10
9
11
10
public class DriverFinder {
12
11
13
- private static final Logger LOG = Logger .getLogger (DriverFinder .class .getName ());
14
-
15
12
public static String getPath (DriverService service , Capabilities options ) {
16
13
Require .nonNull ("Browser options" , options );
17
14
String exePath = System .getProperty (service .getDriverProperty ());
18
15
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
-
29
16
if (exePath == null ) {
30
17
try {
31
18
exePath = SeleniumManager .getInstance ().getDriverPath (options );
You can’t perform that action at this time.
0 commit comments