You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotnet/test/common/AlertsTest.cs
+1-150Lines changed: 1 addition & 150 deletions
Original file line number
Diff line number
Diff line change
@@ -64,38 +64,6 @@ public void ShouldAllowUsersToAcceptAnAlertWithNoTextManually()
64
64
Assert.AreEqual("Testing Alerts",driver.Title);
65
65
}
66
66
67
-
[Test]
68
-
[IgnoreBrowser(Browser.Chrome,"This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
69
-
[IgnoreBrowser(Browser.Edge,"This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
70
-
[IgnoreBrowser(Browser.EdgeLegacy,"This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
71
-
[IgnoreBrowser(Browser.IE,"This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
72
-
[IgnoreBrowser(Browser.Firefox,"This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
73
-
[IgnoreBrowser(Browser.Safari,"This is the correct behavior, for the SwitchTo call to throw if it happens before the setTimeout call occurs in the browser and the alert is displayed.")]
.WithBody(string.Format("<a id='open-page-with-onunload-alert' href='{0}'>open new page</a>",pageWithOnBeforeUnload)));
461
-
462
-
IWebElementelement=WaitFor<IWebElement>(ElementToBePresent(By.Id("open-page-with-onunload-alert")),"Could not find element with id 'open-page-with-onunload-alert'");
element=WaitFor<IWebElement>(ElementToBePresent(By.Id("open-page-with-onunload-alert")),"Could not find element with id 'open-page-with-onunload-alert'");
472
-
WaitFor(ElementTextToEqual(element,"open new page"),"Element text was not 'open new page'");
473
-
}
474
-
475
-
[Test]
476
-
[IgnoreBrowser(Browser.Chrome,"Chrome does not implicitly handle onBeforeUnload alert")]
477
-
[IgnoreBrowser(Browser.Edge,"Edge does not implicitly handle onBeforeUnload alert")]
WaitFor(ElementTextToEqual(driver.FindElement(By.Id("open-new-window")),"open new window"),"Could not find element with text equal to 'open new window'");
526
-
}
527
-
}
528
-
529
417
[Test]
530
418
[IgnoreBrowser(Browser.Firefox,"Driver chooses not to return text from unhandled alert")]
0 commit comments