Skip to content

Commit 4861218

Browse files
committed
[grid] Only check for IEDriver on Windows.
1 parent 62cb3a0 commit 4861218

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

java/src/org/openqa/selenium/ie/InternetExplorerDriverInfo.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
package org.openqa.selenium.ie;
1919

2020
import com.google.auto.service.AutoService;
21+
2122
import org.openqa.selenium.Capabilities;
2223
import org.openqa.selenium.ImmutableCapabilities;
24+
import org.openqa.selenium.Platform;
2325
import org.openqa.selenium.SessionNotCreatedException;
2426
import org.openqa.selenium.WebDriver;
2527
import org.openqa.selenium.WebDriverException;
@@ -62,8 +64,11 @@ public boolean isSupportingBiDi() {
6264
@Override
6365
public boolean isAvailable() {
6466
try {
65-
InternetExplorerDriverService.createDefaultService();
66-
return true;
67+
if (Platform.getCurrent().is(Platform.WINDOWS)) {
68+
InternetExplorerDriverService.createDefaultService();
69+
return true;
70+
}
71+
return false;
6772
} catch (IllegalStateException | WebDriverException e) {
6873
return false;
6974
}

0 commit comments

Comments
 (0)