File tree 1 file changed +9
-2
lines changed
java/client/test/org/openqa/selenium/testing/drivers
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 48
48
import org .openqa .selenium .testing .JavascriptEnabled ;
49
49
import org .openqa .selenium .testing .NativeEventsRequired ;
50
50
import org .openqa .selenium .testing .NeedsLocalEnvironment ;
51
- import org .openqa .selenium .testing .TestUtilities ;
52
51
53
52
import java .util .Arrays ;
54
53
import java .util .Set ;
@@ -132,10 +131,18 @@ private boolean isIgnoredBecauseOfNativeEvents(NativeEventsRequired annotation)
132
131
}
133
132
134
133
// We only have native events on Linux and Windows.
135
- Platform platform = TestUtilities . getEffectivePlatform ();
134
+ Platform platform = getEffectivePlatform ();
136
135
return !(platform .is (LINUX ) || platform .is (WINDOWS ));
137
136
}
138
137
138
+ private static Platform getEffectivePlatform () {
139
+ if (SauceDriver .shouldUseSauce ()) {
140
+ return SauceDriver .getEffectivePlatform ();
141
+ }
142
+
143
+ return Platform .getCurrent ();
144
+ }
145
+
139
146
private boolean isIgnoredDueToBeingOnSauce (FrameworkMethod method , Object test ) {
140
147
return SauceDriver .shouldUseSauce () &&
141
148
(method .getMethod ().getAnnotation (NeedsLocalEnvironment .class ) != null ||
You can’t perform that action at this time.
0 commit comments