Skip to content

Commit b21eb0c

Browse files
committed
Remove workaround added in jenkinsci#457
1 parent 860cfca commit b21eb0c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/main/java/org/jenkinsci/test/acceptance/FallbackConfig.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
import org.jenkinsci.utils.process.CommandBuilder;
5252
import org.jenkinsci.utils.process.ProcessInputStream;
5353
import org.junit.runners.model.Statement;
54-
import org.openqa.selenium.Alert;
5554
import org.openqa.selenium.Capabilities;
5655
import org.openqa.selenium.Dimension;
5756
import org.openqa.selenium.MutableCapabilities;
@@ -70,7 +69,6 @@
7069
import org.openqa.selenium.remote.RemoteWebDriver;
7170
import org.openqa.selenium.safari.SafariDriver;
7271
import org.openqa.selenium.support.events.EventFiringDecorator;
73-
import org.openqa.selenium.support.ui.ExpectedConditions;
7472

7573
/**
7674
* The default configuration for running tests.
@@ -357,20 +355,6 @@ public WebDriver createWebDriver(TestCleaner cleaner, TestName testName, Elastic
357355
cleaner.addTask(new Statement() {
358356
@Override
359357
public void evaluate() {
360-
switch (getBrowser()) {
361-
case "firefox":
362-
case "saucelabs-firefox":
363-
case "remote-webdriver-firefox":
364-
// https://github.com/mozilla/geckodriver/issues/1151
365-
// https://bugzilla.mozilla.org/show_bug.cgi?id=1264259
366-
// https://bugzilla.mozilla.org/show_bug.cgi?id=1434872
367-
d.navigate().to("about:mozilla");
368-
Alert alert = ExpectedConditions.alertIsPresent().apply(d);
369-
if (alert != null) {
370-
alert.accept();
371-
d.navigate().refresh();
372-
}
373-
}
374358
d.quit();
375359
}
376360

0 commit comments

Comments
 (0)