File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
java/src/org/openqa/selenium Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ private static ChromeDriverCommandExecutor generateExecutor(
98
98
if (service .getExecutable () == null ) {
99
99
Result result = DriverFinder .getPath (service , options );
100
100
service .setExecutable (result .getDriverPath ());
101
- options .setBinary (result .getBrowserPath ());
101
+ if (result .getBrowserPath () != null ) {
102
+ options .setBinary (result .getBrowserPath ());
103
+ }
102
104
}
103
105
return new ChromeDriverCommandExecutor (service , clientConfig );
104
106
}
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ private static EdgeDriverCommandExecutor generateExecutor(
70
70
if (service .getExecutable () == null ) {
71
71
Result result = DriverFinder .getPath (service , options );
72
72
service .setExecutable (result .getDriverPath ());
73
- options .setBinary (result .getBrowserPath ());
73
+ if (result .getBrowserPath () != null ) {
74
+ options .setBinary (result .getBrowserPath ());
75
+ }
74
76
}
75
77
return new EdgeDriverCommandExecutor (service , clientConfig );
76
78
}
Original file line number Diff line number Diff line change @@ -140,7 +140,9 @@ private static FirefoxDriverCommandExecutor generateExecutor(
140
140
if (service .getExecutable () == null ) {
141
141
Result result = DriverFinder .getPath (service , options );
142
142
service .setExecutable (result .getDriverPath ());
143
- options .setBinary (result .getBrowserPath ());
143
+ if (result .getBrowserPath () != null ) {
144
+ options .setBinary (result .getBrowserPath ());
145
+ }
144
146
}
145
147
return new FirefoxDriverCommandExecutor (service , clientConfig );
146
148
}
You can’t perform that action at this time.
0 commit comments