Beispiel #1
0
 def test_business63(self):
     """ 第一页全部数据导出 """
     Function.del_file()
     self.bu().business_time_select_time(2)
     text_page = self.bu().business_message_title_text()
     method.Method(self.driver).js_bottom()
     self.bu().business_pagefoot_all()
     self.bu().business_pagefoot_export()
     text_down = Function.read_excel(0, 3)
     self.waiting_time()
     Function.insert_img(self.driver, "Business_第一页全部数据导出校验.jpg")
     # 校验下载文件的标题和网页显示的标题是否一致
     self.assertEqual(text_page, text_down)
     Function.del_file()
Beispiel #2
0
 def test_business53(self):
     """ 单条数据导出 """
     Function.del_file()
     self.bu().business_time_select_time(2)
     text_page = self.bu().business_message_title_text()
     above = self.bu().business_message_mood_chains()
     ActionChains(self.driver).move_to_element(above).perform()
     self.bu().business_message_export()
     text_down = Function.read_excel(0, 3)
     self.waiting_time()
     Function.insert_img(self.driver, "Business_单条数据导出校验.jpg")
     # 校验下载文件的标题和网页显示的表示是否一致
     self.assertEqual(text_page, text_down)
     Function.del_file()