Esempio n. 1
0
 def test_check_hyperlinks(self):
     hyperlinks = Hyperlink(self.driver)
     result1, result2, choose_dist = hyperlinks.click_on_hyperlinks()
     if result1 == False and result2 == False and choose_dist == "Choose a District":
         print("hyperlinks are working")
     else:
         raise self.failureException("hyperlinks are not working")
Esempio n. 2
0
    def test_check_hyperlinks(self):
        self.tests.pop()
        self.logger.info("test_check_hyperlinks is running" + " " + "Total :" + " " + str(
            self.total_tests) + " " + "Remaining :" + " " + str(len(self.tests) - 1))

        hyperlinks = Hyperlink(self.driver)
        result1, result2, choose_dist = hyperlinks.click_on_hyperlinks()
        if result1 == False and result2 == False and choose_dist == "Choose a District":
            print("hyperlinks are working")
        else:
            raise self.failureException("hyperlinks are not working")

        self.logger.info("test_check_hyperlinks is completed...")