コード例 #1
0
 def get_total_dev_number_after_ckick_all_dev_number(self):
     # 获取点击总进货数后,库存数量
     a = self.driver.get_element('x,//*[@id="paging-dev"]').get_attribute(
         'style')
     if a == 'display: block;':
         new_paging = NewPaging(self.driver, self.base_url)
         total = new_paging.get_total_numbers('x,//*[@id="paging-dev"]',
                                              'x,//*[@id="markDevTable"]')
         return total
     elif a == 'display: none;':
         return 0
コード例 #2
0
 def get_dev_total_number_in_dev_manage_page(self):
     a = self.driver.get_element('x,//*[@id="paging-dev"]').get_attribute(
         'style')
     if a == 'display: block;':
         new_paging = NewPaging(self.driver, self.base_url)
         total = new_paging.get_total_numbers(
             'x,//*[@id="paging-dev"]',
             'x,//*[@id="deviceTableContent"]/tbody')
         return total
     else:
         return 0
コード例 #3
0
 def get_actual_current_account_all_equipment(self):
     # 获取当前的用户库存总数
     a = self.driver.get_element('x,//*[@id="paging-dev"]').get_attribute(
         "style")
     if a == 'display: none;':
         return 0
     else:
         new_paging = NewPaging(self.driver, self.base_url)
         total = new_paging.get_total_numbers("x,//*[@id='paging-dev']",
                                              "x,//*[@id='markDevTable']")
         return total