A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/841eb80d42f18a2e9c694fc1d91e88c5c9c63712 below:

[java] Removing unused imports · SeleniumHQ/selenium@841eb80 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+4

-13

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+4

-13

lines changed Original file line number Diff line number Diff line change

@@ -17,6 +17,8 @@

17 17 18 18

package org.openqa.selenium.chrome;

19 19 20 +

import com.google.common.util.concurrent.Uninterruptibles;

21 + 20 22

import org.junit.jupiter.api.Test;

21 23

import org.openqa.selenium.Capabilities;

22 24

import org.openqa.selenium.JavascriptExecutor;

@@ -32,21 +34,17 @@

32 34

import org.openqa.selenium.testing.Ignore;

33 35

import org.openqa.selenium.testing.JupiterTestBase;

34 36

import org.openqa.selenium.testing.NoDriverBeforeTest;

35 -

import org.openqa.selenium.testing.drivers.WebDriverBuilder;

36 37 37 38

import java.time.Duration;

38 39

import java.util.List;

39 40

import java.util.Map;

40 -

import java.util.concurrent.TimeUnit;

41 41 42 42

import static org.assertj.core.api.Assertions.assertThat;

43 43

import static org.assertj.core.api.Assertions.assertThatExceptionOfType;

44 44

import static org.assertj.core.api.Assertions.fail;

45 45

import static org.assertj.core.api.Assumptions.assumeThat;

46 46

import static org.openqa.selenium.testing.drivers.Browser.CHROME;

47 47 48 -

import com.google.common.util.concurrent.Uninterruptibles;

49 - 50 48

class ChromeDriverFunctionalTest extends JupiterTestBase {

51 49 52 50

private final String CLIPBOARD_READ = "clipboard-read";

Original file line number Diff line number Diff line change

@@ -44,9 +44,7 @@

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,7 +74,6 @@

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 {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4