public void Cleanup()
		{
			VerifyLogs(_logContent);

			var manageUsersPage = new ManageUsersPage(_driver);
			manageUsersPage.OpenUsingControlPanel(_baseUrl);
			manageUsersPage.DeleteUser(_userNameNumberOne);
			manageUsersPage.DeleteUser(_userNameNumberTwo);
			manageUsersPage.DeleteUser(_userNameNumberThree);
			manageUsersPage.RemoveDeletedUsers();
		}
		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 Cleanup()
		{
			VerifyLogs(_logContent);

			var manageUsersPage = new ManageUsersPage(_driver);
			manageUsersPage.OpenUsingControlPanel(_baseUrl);
			manageUsersPage.DeleteUser("Admin");
			manageUsersPage.RemoveDeletedUsers();
		}
		public void Cleanup()
		{
			VerifyLogs(_logContent);

			var manageUsersPage = new ManageUsersPage(_driver);
			manageUsersPage.OpenUsingControlPanel(_baseUrl);
			manageUsersPage.DeleteUser(_userNameNumberOne);
			manageUsersPage.DeleteUser(_userNameNumberTwo);
			manageUsersPage.DeleteUser(_userNameNumberThree);
			manageUsersPage.RemoveDeletedUsers();

			/*var page = new BlankPage(_driver);
			page.OpenUsingUrl(_baseUrl, _pageName);
			page.DeletePage(_pageName);

			var adminRecycleBinPage = new AdminRecycleBinPage(_driver);
			adminRecycleBinPage.OpenUsingButtons(_baseUrl);
			adminRecycleBinPage.EmptyRecycleBin();*/

			RemoveUsedPage(_pageName);
		}
Beispiel #5
0
		public void Test002_DeleteUser()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Delete the User'");

			var manageUsersPage = new ManageUsersPage(_driver);

			manageUsersPage.OpenUsingControlPanel(_baseUrl);
			manageUsersPage.WaitForElement(By.XPath(ManageUsersPage.UsersTable));
			int itemNumber = manageUsersPage.FindElements(By.XPath(ManageUsersPage.UsersList)).Count;

			manageUsersPage.DeleteUser(_userName);

			manageUsersPage.WaitForElement(By.XPath(ManageUsersPage.UsersTable));
			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the number of elements in the list is not changed");
			Assert.That(manageUsersPage.FindElements(By.XPath(ManageUsersPage.UsersList)).Count, Is.EqualTo(itemNumber),
			            "The User is not deleted correctly");

			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the User is present in the list");
			Assert.IsTrue(manageUsersPage.ElementPresent(By.XPath("//tr/td[text() = '" + _userName + "']")),
			              "The User is not deleted correctly");
		}