File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
java/src/org/openqa/selenium/ie Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .ie ;
19
19
20
20
import com .google .auto .service .AutoService ;
21
+
21
22
import org .openqa .selenium .Capabilities ;
22
23
import org .openqa .selenium .ImmutableCapabilities ;
24
+ import org .openqa .selenium .Platform ;
23
25
import org .openqa .selenium .SessionNotCreatedException ;
24
26
import org .openqa .selenium .WebDriver ;
25
27
import org .openqa .selenium .WebDriverException ;
@@ -62,8 +64,11 @@ public boolean isSupportingBiDi() {
62
64
@ Override
63
65
public boolean isAvailable () {
64
66
try {
65
- InternetExplorerDriverService .createDefaultService ();
66
- return true ;
67
+ if (Platform .getCurrent ().is (Platform .WINDOWS )) {
68
+ InternetExplorerDriverService .createDefaultService ();
69
+ return true ;
70
+ }
71
+ return false ;
67
72
} catch (IllegalStateException | WebDriverException e ) {
68
73
return false ;
69
74
}
You can’t perform that action at this time.
0 commit comments