44
44
import org .openqa .selenium .remote .SessionId ;
45
45
import org .openqa .selenium .remote .UnreachableBrowserException ;
46
46
import org .openqa .selenium .remote .http .ClientConfig ;
47
- import org .openqa .selenium .support .ui .ExpectedCondition ;
48
47
import org .openqa .selenium .support .ui .WebDriverWait ;
49
- import org .openqa .selenium .testing .Ignore ;
50
48
import org .openqa .selenium .testing .JupiterTestBase ;
51
49
import org .openqa .selenium .testing .NeedsFreshDriver ;
52
50
import org .openqa .selenium .testing .NoDriverAfterTest ;
76
74
import static org .openqa .selenium .remote .CapabilityType .ACCEPT_INSECURE_CERTS ;
77
75
import static org .openqa .selenium .remote .CapabilityType .PAGE_LOAD_STRATEGY ;
78
76
import static org .openqa .selenium .support .ui .ExpectedConditions .titleIs ;
79
- import static org .openqa .selenium .testing .drivers .Browser .FIREFOX ;
80
77
81
78
class FirefoxDriverTest extends JupiterTestBase {
82
79
@@ -85,10 +82,10 @@ class FirefoxDriverTest extends JupiterTestBase {
85
82
private static final String EXT_UNSIGNED_ZIP = "common/extensions/webextensions-selenium-example-unsigned.zip" ;
86
83
private static final String EXT_SIGNED_DIR = "common/extensions/webextensions-selenium-example-signed" ;
87
84
private static final String EXT_UNSIGNED_DIR = "common/extensions/webextensions-selenium-example" ;
88
- private static char [] CHARS =
85
+ private static final char [] CHARS =
89
86
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!\" §$%&/()+*~#',.-_:;\\ "
90
87
.toCharArray ();
91
- private static Random RANDOM = new Random ();
88
+ private static final Random RANDOM = new Random ();
92
89
93
90
private static String randomString () {
94
91
int n = 20 + RANDOM .nextInt (80 );
@@ -367,10 +364,6 @@ public void canStartHeadless() {
367
364
assertThat (((FirefoxDriver ) localDriver ).getCapabilities ().getCapability ("moz:headless" )).isEqualTo (true );
368
365
}
369
366
370
- private ExpectedCondition <Boolean > urlToBe (final String expectedUrl ) {
371
- return driver1 -> expectedUrl .equals (driver1 .getCurrentUrl ());
372
- }
373
-
374
367
@ Test
375
368
void shouldAllowTwoInstancesOfFirefoxAtTheSameTimeInDifferentThreads ()
376
369
throws InterruptedException {
0 commit comments