コード例 #1
0
 def user_selection(self):
     '''用户选择框查询'''
     qp = QueryFormPage(self.driver)
     qp.user_selection_selectquery(1)
     self.wait_loading_hide()  # 等待loading消失
     gv = qp.find_elem('.leftPanel div.label')
     return gv.text == '任务2'
コード例 #2
0
 def user_selection(self):
     '''用户选择框查询'''
     qp = QueryFormPage(self.driver)
     qp.user_selection_selectquery(1)
     self.wait_loading_hide()
     dv = qp.find_elem('#cal14')
     return dv.text == '14'
コード例 #3
0
 def user_selection(self):
     '''用户选择框查询'''
     qp = QueryFormPage(self.driver)
     qp.user_selection_selectquery(2)
     self.wait_loading_hide()  # 等待视图的loading消失
     us = qp.find_elems('#dataTable .listDataTr td:nth-child(10)')
     return self.judge_search_content_inlist(us, '李玲')