def test_list6_run(self): '''任务列表:表单测试-下一页按钮''' self.user_login_verify_run("collegecheck","f") time.sleep(1) T=TaskList(self.driver) # 点击 下一页 按钮 self.driver.find_element_by_xpath("html/body/div[4]/div[3]/form[2]/p/a[8]").click() self.assertEqual(T.pageNum(),"2") time.sleep(1) imagetest = getResultImage() imagetest.insert_image(self.driver,"tasklist_next_btn.jpg")
def test_list8_run(self): '''任务列表:表单测试-跳转页面''' self.user_login_verify_run("collegecheck","f") time.sleep(1) T=TaskList(self.driver) # 跳转到第3页 T.pageSkip(3) self.assertEqual(T.pageNum(),"3") time.sleep(1) imagetest = getResultImage() imagetest.insert_image(self.driver,"tasklist_pageSkip_btn.jpg")
def test_list9_run(self): '''任务列表:表单测试-首页按钮''' self.user_login_verify_run("collegecheck","f") time.sleep(1) T=TaskList(self.driver) # 跳转到第3页 T.pageSkip(3) # 点击“首页”按钮 self.driver.find_element_by_xpath("html/body/div[4]/div[3]/form[2]/p/a[1]").click() self.assertEqual(T.pageNum(),"1") time.sleep(1) imagetest = getResultImage() imagetest.insert_image(self.driver,"tasklist_homePage_btn.jpg")