File tree 3 files changed +6
-6
lines changed
java/client/test/org/openqa/selenium
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .devtools ;
19
19
20
20
import static org .assertj .core .api .Assumptions .assumeThat ;
21
- import static org .openqa .selenium .testing .TestUtilities .isFirefoxVersionNotLessThan ;
21
+ import static org .openqa .selenium .testing .TestUtilities .isFirefoxVersionOlderThan ;
22
22
23
23
import org .junit .Before ;
24
24
import org .openqa .selenium .testing .JUnit4TestBase ;
@@ -30,7 +30,7 @@ public abstract class DevToolsTestBase extends JUnit4TestBase {
30
30
@ Before
31
31
public void setUp () {
32
32
assumeThat (driver ).isInstanceOf (HasDevTools .class );
33
- assumeThat (isFirefoxVersionNotLessThan ( 83 , driver )).isTrue ();
33
+ assumeThat (isFirefoxVersionOlderThan ( 87 , driver )).isFalse ();
34
34
35
35
devTools = ((HasDevTools ) driver ).getDevTools ();
36
36
devTools .createSessionIfThereIsNotOne ();
Original file line number Diff line number Diff line change 38
38
import static org .assertj .core .api .Assumptions .assumeThat ;
39
39
import static org .openqa .selenium .remote .http .Contents .utf8String ;
40
40
import static org .openqa .selenium .testing .Safely .safelyCall ;
41
- import static org .openqa .selenium .testing .TestUtilities .isFirefoxVersionNotLessThan ;
41
+ import static org .openqa .selenium .testing .TestUtilities .isFirefoxVersionOlderThan ;
42
42
43
43
public class NetworkInterceptorTest {
44
44
@@ -56,7 +56,7 @@ public void setup() {
56
56
driver = new WebDriverBuilder ().get ();
57
57
58
58
assumeThat (driver ).isInstanceOf (HasDevTools .class );
59
- assumeThat (isFirefoxVersionNotLessThan ( 83 , driver )).isTrue ();
59
+ assumeThat (isFirefoxVersionOlderThan ( 87 , driver )).isFalse ();
60
60
61
61
appServer = new NettyAppServer (req -> new HttpResponse ()
62
62
.setStatus (200 )
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ public static boolean isFirefox(WebDriver driver) {
60
60
return getUserAgent (driver ).contains ("Firefox" );
61
61
}
62
62
63
- public static boolean isFirefoxVersionNotLessThan (int version , WebDriver driver ) {
64
- return isFirefox (driver ) && getFirefoxVersion (driver ) >= version ;
63
+ public static boolean isFirefoxVersionOlderThan (int version , WebDriver driver ) {
64
+ return isFirefox (driver ) && getFirefoxVersion (driver ) < version ;
65
65
}
66
66
67
67
public static boolean isInternetExplorer (WebDriver driver ) {
You can’t perform that action at this time.
0 commit comments