File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
java/src/org/openqa/selenium/manager Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 16
16
// under the License.
17
17
package org .openqa .selenium .manager ;
18
18
19
+ import static org .openqa .selenium .Platform .LINUX ;
19
20
import static org .openqa .selenium .Platform .MAC ;
21
+ import static org .openqa .selenium .Platform .UNIX ;
20
22
import static org .openqa .selenium .Platform .WINDOWS ;
21
23
22
24
import java .io .IOException ;
@@ -171,13 +173,20 @@ private synchronized Path getBinary() {
171
173
if (binary == null ) {
172
174
try {
173
175
Platform current = Platform .getCurrent ();
174
- String folder = "linux " ;
176
+ String folder = "" ;
175
177
String extension = "" ;
176
178
if (current .is (WINDOWS )) {
177
179
extension = EXE ;
178
180
folder = "windows" ;
179
181
} else if (current .is (MAC )) {
180
182
folder = "macos" ;
183
+ } else if (current .is (LINUX )) {
184
+ folder = "linux" ;
185
+ } else if (current .is (UNIX )) {
186
+ LOG .warning (String .format ("Selenium Manager binary may not be compatible with %s; verify settings" , current ));
187
+ folder = "linux" ;
188
+ } else {
189
+ throw new WebDriverException ("Unsupported platform: " + current );
181
190
}
182
191
183
192
binary = getBinaryInCache (SELENIUM_MANAGER + extension );
You can’t perform that action at this time.
0 commit comments