public void Test012_ExportPage() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Export a Page'"); PageExportPage pageExportPage = new PageExportPage(_driver); pageExportPage.OpenUsingControlPanel(_baseUrl + ContactUsPage.ContactUsUrl); pageExportPage.ExportPage(_templateName, _templateDescription); PageImportPage pageImportPage = new PageImportPage(_driver); pageImportPage.OpenUsingControlPanel(_baseUrl); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the Export Template is present in the Import dropdown"); Assert.IsTrue(pageImportPage.ElementPresent(By.XPath(PageImportPage.TemplateDropDownId + "//li[text() = '" + _templateName + "']")), "Template Name is not present in the list for Import"); }
public void Test012_ExportPage() { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Export a Page'"); PageExportPage pageExportPage = new PageExportPage(_driver); pageExportPage.OpenUsingControlPanel(_baseUrl + ContactUsPage.ContactUsUrl); pageExportPage.ExportPage(_templateName, _templateDescription); PageImportPage pageImportPage = new PageImportPage(_driver); pageImportPage.OpenUsingControlPanel(_baseUrl); Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT the Export Template is present in the Import dropdown"); Assert.IsTrue(pageImportPage.ElementPresent(By.XPath(PageImportPage.TemplateDropDownId + "//li[text() = '" + _templateName + "']")), "Template Name is not present in the list for Import"); }