Esempio n. 1
0
 def test_tabledata(self):
     b = check_with_table(self.driver)
     res = b.test_graph_and_table_present_on_school_infra()
     try:
         tablehead = self.driver.find_element_by_tag_name("table")
         self.data.page_loading(self.driver)
         return tablehead.is_displayed()
     except exceptions.NoSuchElementException:
         print("Table is present ")
     self.assertTrue(res, msg="Table is not exist")
     self.data.page_loading(self.driver)
Esempio n. 2
0
 def test_tabledata(self):
     self.tests.pop()
     self.logger.info("test_tabledata" + " " + "Total :" + " " + str(
         self.total_tests) + " " + "Remaining :" + " " + str(len(self.tests) - 1))
     print("checking table contains records or not")
     b = check_with_table(self.driver)
     res = b.test_graph_and_table_present_on_school_infra()
     try:
         tablehead = self.driver.find_element_by_tag_name("table")
         self.data.page_loading(self.driver)
         return tablehead.is_displayed()
     except exceptions.NoSuchElementException:
         print("Table is present ")
     self.assertTrue(res,msg="Table is not exist")
     self.data.page_loading(self.driver)
     self.logger.info("test_tabledata is completed...")