class GlobalTest(BaseTestCase, unittest.TestCase): def setUp(self): super(GlobalTest, self).setUp() self.navigate_to_page(TeamOne_Constants['Base_URL']) self.BasePage_obj = BasePage(self.driver) def test_imageCheckTest(self): for link in URLPageList: #print PythonSeleniumWebdriver_Constants['Base_URL'] + link self.BasePage_obj.go_to_page(TeamOne_Constants['Base_URL'] + link) self.BasePage_obj.verify_correct_link_url(TeamOne_Constants['Base_URL'] + link) self.BasePage_obj.scan_for_broken_source_links() def test_footerNavContentIncludingShareButtonsAndLegalTextTest(self): for link in URLPageList: self.BasePage_obj.go_to_page(TeamOne_Constants['Base_URL'] + link) for value in FooterNavMap.itervalues(): #print value self.BasePage_obj.is_element_present(10, "cssSelector", value) def tearDown(self): super(GlobalTest, self).tearDown()
def setUp(self): super(GlobalTest, self).setUp() self.navigate_to_page(TeamOne_Constants['Base_URL']) self.BasePage_obj = BasePage(self.driver)