public void Test002_EditSite() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Edit the Child Site'"); var hostSiteManagementPage = new HostSiteManagementPage(_driver); hostSiteManagementPage.OpenUsingButtons(_baseUrl); hostSiteManagementPage.AddDescriptionToSite(_baseUrl, _siteAlias, _siteDescription); hostSiteManagementPage.OpenUsingButtons(_baseUrl); hostSiteManagementPage.EditSite(_baseUrl, _siteAlias); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the Site description is present"); Assert.That(hostSiteManagementPage.WaitForElement(By.XPath(HostSiteManagementPage.SiteNameDescriptionTextBox)).Text, Is.EqualTo(_siteDescription), "The site description is not added correctly"); }
public void EditSite(string siteName, string siteDescription) { var hostSiteManagementPage = new HostSiteManagementPage(_driver); hostSiteManagementPage.OpenUsingButtons(_baseUrl); hostSiteManagementPage.AddDescriptionToSite(siteName, siteDescription); hostSiteManagementPage.OpenUsingButtons(_baseUrl); hostSiteManagementPage.EditSite(siteName); Trace.WriteLine("ASSERT the Site description is present"); Assert.That(hostSiteManagementPage.WaitForElement(By.XPath(HostSiteManagementPage.SiteNameDescriptionTextBox)).Text, Is.EqualTo(siteDescription), "The site description is not added correctly"); }