Exemplo n.º 1
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()
Exemplo n.º 2
0
 def add_static_page_and_go_to_help_in_ss(self, text, placeholder):
     allStatPgs = StaticPagesCMS(self.driver, self.wait)
     staticPg = allStatPgs.clickAddStaticPage()
     staticPg.typeTitle(text)
     staticPg.typeContent(text)
     staticPg.selectPlaceholder(placeholder)
     staticPg.clickSaveAndContinueEditingButton()
     ssHelpPage = HelpPageSS(self.driver, self.wait)
     return ssHelpPage
Exemplo n.º 3
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")