public void Cleanup() { VerifyLogs(_logContent); var module = new MessageCenterModule(_driver); module.OpenNotificationsUsingIcon(); module.DismissNotification(MessageCenterModule.NotificationSubject); module.DismissNotification(MessageCenterModule.NotificationSubject); module.DismissNotification(MessageCenterModule.NotificationSubject); var manageUsersPage = new ManageUsersPage(_driver); manageUsersPage.OpenUsingControlPanel(_baseUrl); manageUsersPage.DeleteUser(_userWithPublicRegistration); manageUsersPage.DeleteUser(_userWithVerifiedRegistration); manageUsersPage.DeleteUser(_userWithPrivateRegistration); manageUsersPage.RemoveDeletedUsers(); }
public void Test004_DismissNotification() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Dismiss Notification'"); var mainPage = new MainPage(_driver); mainPage.OpenUsingUrl(_baseUrl); var loginPage = new LoginPage(_driver); loginPage.LoginAsHost(_baseUrl); var module = new MessageCenterModule(_driver); module.OpenNotificationsUsingIcon(); module.DismissNotification(MessageCenterModule.NotificationSubject); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT New notification is Not present in the list:"); Assert.IsFalse(module.ElementPresent(By.XPath("//ul[@class = 'messages']//li[@class = 'ListCol-3']//span[contains(text(), '" + MessageCenterModule.NotificationSubject + "')]")), "Notification subject is found"); }