We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94282e commit 7abca56Copy full SHA for 7abca56
java/test/org/openqa/selenium/HistoryNavigationTest.java
@@ -35,9 +35,9 @@ public class HistoryNavigationTest extends JupiterTestBase {
35
@Test
36
@Ignore(value = SAFARI, reason = "Hanging")
37
public void testShouldDoNothingIfThereIsNothingToGoBackTo() {
38
- ((JavascriptExecutor) driver)
39
- .executeScript("window.open(arguments[0], 'newWindow')", pages.formPage);
+ ((JavascriptExecutor) driver).executeScript("window.open('', 'newWindow')");
40
wait.until(windowToBeSwitchedToWithName("newWindow"));
+ driver.get(pages.formPage);
41
wait.until(titleIs("We Leave From Here"));
42
String originalTitle = driver.getTitle();
43
driver.get(pages.blankPage);
0 commit comments