Exemplo n.º 1
0
		public void DeleteData()
		{
			VerifyLogs(_logContent);

			var adminPageManagementPage = new AdminPageManagementPage(_driver);
			adminPageManagementPage.OpenUsingButtons(_baseUrl);
			adminPageManagementPage.DeletePage("P1Modules", AdminPageManagementPage.PageType.Web);

			adminPageManagementPage.OpenUsingButtons(_baseUrl);
			adminPageManagementPage.DeletePage("P1ModulesDragDrop", AdminPageManagementPage.PageType.Web);

			var adminRecycleBinPage = new AdminRecycleBinPage(_driver);
			adminRecycleBinPage.OpenUsingButtons(_baseUrl);
			adminRecycleBinPage.EmptyRecycleBin();
		}
Exemplo n.º 2
0
		public void Test010_DeleteHostPage()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Delete a Page'");

			var adminPageManagementPage = new AdminPageManagementPage(_driver);
			adminPageManagementPage.OpenUsingButtons(_baseUrl);

			adminPageManagementPage.DeletePage(_pageName, AdminPageManagementPage.PageType.Host);

			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the page: " + _pageName + "is  NOT present in the list");
			Assert.IsFalse(
				adminPageManagementPage.ElementPresent(
					By.XPath(AdminPageManagementPage.PageList + "//li[div/span[text() = '" + _addHostAfter +
					         " ']]//div/span[text() = '" + _pageName + " ']")),
				"The page " + _pageName + " is present in the list");
		}