Skip to content

Commit 7abca56

Browse files
committed
[java] Fixing testShouldDoNothingIfThereIsNothingToGoBackTo
1 parent d94282e commit 7abca56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/test/org/openqa/selenium/HistoryNavigationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public class HistoryNavigationTest extends JupiterTestBase {
3535
@Test
3636
@Ignore(value = SAFARI, reason = "Hanging")
3737
public void testShouldDoNothingIfThereIsNothingToGoBackTo() {
38-
((JavascriptExecutor) driver)
39-
.executeScript("window.open(arguments[0], 'newWindow')", pages.formPage);
38+
((JavascriptExecutor) driver).executeScript("window.open('', 'newWindow')");
4039
wait.until(windowToBeSwitchedToWithName("newWindow"));
40+
driver.get(pages.formPage);
4141
wait.until(titleIs("We Leave From Here"));
4242
String originalTitle = driver.getTitle();
4343
driver.get(pages.blankPage);

0 commit comments

Comments
 (0)