Example #1
0
		public void Test008_EditHostPage()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit a Host Page'");

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

			adminPageManagementPage.AddDescriptionToPage(_pageName, _pageDescription, "Host");

			BlankPage blankPage = new BlankPage(_driver);
			blankPage.OpenUsingUrl(_baseUrl, "Host/" + _addHostAfter + "/" + _pageName);
			blankPage.SelectMenuOption(BasePage.ControlPanelEditPageOption, BasePage.PageSettingsOption);

			Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the page description: " + _pageName1 + "is saved correctly");
			Assert.That(_pageDescription, Is.EqualTo(blankPage.WaitForElement(By.XPath(BlankPage.PageDescriptionTextBox)).Text),
							"The page description is not added correctly");
		}
Example #2
0
		public void SearchResultsOnPageSettingsFrame()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Search Results on Page Settings frame'");

			BlankPage blankPage = new BlankPage(_driver);

			blankPage.SelectMenuOption(BasePage.ControlPanelEditPageOption, BasePage.PageSettingsOption);

			VerifySearchResults(blankPage);
		}
Example #3
0
		public void Test004_EditPageSettings()
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit the Page Settings'");

			BlankPage blankPage = new BlankPage(_driver);
			blankPage.OpenUsingUrl(_baseUrl, _pageName);
			blankPage.SelectMenuOption(BasePage.ControlPanelEditPageOption, BasePage.PageSettingsOption);

			blankPage.EditPageTitle(_pageTitle);

			Trace.WriteLine("Verify Page title: '" + _pageTitle + "'");
			StringAssert.Contains(_pageTitle, blankPage.CurrentWindowTitle(), "The Page title is not correct");
		}