Esempio n. 1
0
        [Test, Ignore("No Security dialog is shown any more")]         // Category("InternetConnectionNeeded")]
        public void SecurityAlertDialogHandler()
        {
            SecurityAlertDialogHandlerMock securityAlertDialogHandlerMock = new SecurityAlertDialogHandlerMock();

            using (IE ie = new IENoWaitForComplete("http://sourceforge.net"))
            {
                ie.AddDialogHandler(securityAlertDialogHandlerMock);
                ie.Link(Find.ByText("Log in")).Click();

                ie.TextField(Find.ByName("form_loginname")).WaitUntilExists();

                Assert.IsTrue(securityAlertDialogHandlerMock.HasHandledSecurityAlertDialog);
            }
        }
		[Test, Ignore("No Security dialog is shown any more")] // Category("InternetConnectionNeeded")]
		public void SecurityAlertDialogHandler()
		{
			SecurityAlertDialogHandlerMock securityAlertDialogHandlerMock = new SecurityAlertDialogHandlerMock();

			using (IE ie = new IENoWaitForComplete("http://sourceforge.net"))
			{
				ie.AddDialogHandler(securityAlertDialogHandlerMock);
				ie.Link(Find.ByText("Log in")).Click();

				ie.TextField(Find.ByName("form_loginname")).WaitUntilExists();

				Assert.IsTrue(securityAlertDialogHandlerMock.HasHandledSecurityAlertDialog);
			}
		}