public void Test003_EditPageSettings() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit the Page Settings'"); var blankPage = new BlankPage(_driver); blankPage.OpenUsingUrl(_baseUrl, _pageName); blankPage.SelectMenuOption(ControlPanelIDs.ControlPanelEditPageOption, ControlPanelIDs.PageSettingsOption); blankPage.EditPageTitle(_pageTitle); Trace.WriteLine("Verify Page title: '" + _pageTitle + "'"); StringAssert.Contains(_pageTitle, blankPage.CurrentWindowTitle(), "The Page title is not correct"); }
public void Test008_EditHostPage() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit a Host Page'"); var adminPageManagementPage = new AdminPageManagementPage(_driver); adminPageManagementPage.OpenUsingButtons(_baseUrl); adminPageManagementPage.AddDescriptionToPage(_pageName, _pageDescription, AdminPageManagementPage.PageType.Host); var blankPage = new BlankPage(_driver); blankPage.OpenUsingUrl(_baseUrl, "Host/" + _addHostAfter + "/" + _pageName); blankPage.SelectMenuOption(ControlPanelIDs.ControlPanelEditPageOption, ControlPanelIDs.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"); }
public void SearchResultsOnPageSettingsFrame() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Search Results on Page Settings frame'"); BlankPage blankPage = new BlankPage(_driver); blankPage.SelectMenuOption(ControlPanelIDs.ControlPanelEditPageOption, ControlPanelIDs.PageSettingsOption); VerifySearchResults(blankPage); }
public void QuickSearchOnPageSettingsFrame() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Quick Search On Page Settings frame'"); var blankPage = new BlankPage(_driver); blankPage.SelectMenuOption(ControlPanelIDs.ControlPanelEditPageOption, ControlPanelIDs.PageSettingsOption); VerifyQuickSearch(blankPage); }