예제 #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()