Ejemplo n.º 1
0
 def test_remove_static_pages(self):
     allStatPgs = StaticPagesCMS(self.driver, self.wait)
     allStatPgs.clickCheckboxForItem(self.main_text, "noSearch")
     allStatPgs.clickCheckboxForItem(self.footer_text, "noSearch")
     deletePage = allStatPgs.selectDeleteAction()
     newPage = deletePage.clickConfirmationButton()
     self.assertFalse(newPage.elementExistsByLinkText(self.main_text), "Static Pages not deleted")
     self.assertFalse(newPage.elementExistsByLinkText(self.footer_text), "Static Pages not deleted")
Ejemplo n.º 2
0
 def if_footer_page_already_exists_delete_it(self):
     ssHelpPage = HelpPageSS(self.driver, self.wait)
     if(ssHelpPage.footerExists()):
         footer_content = ssHelpPage.getFooterContent()
         allStatPgs = StaticPagesCMS(self.driver, self.wait)
         item_name = allStatPgs.getFromTableTheNameOfItemThatContainsText(footer_content)
         allStatPgs.clickCheckboxForItem(item_name)
         deletePage = allStatPgs.selectDeleteAction()
         deletePage.clickConfirmationButton()