def clear_data(self, client): #清除数据 hp = HomePage(self.driver) hp.click_clue() self.click_select(client) #勾选匹配的联系人 sleep(1) self.click_batch_operation() #删除 self.switch_to() sleep(1) self.click_recycle_bin() #点击【回收站】 sleep(1) self.click_select(client) #勾选匹配的联系人 sleep(1) self.click_batch_operation() #删除 sleep(1) self.switch_to() sleep(1)
def click_new_clue(self): # 点击【新建线索】 hp = HomePage(self.driver) hp.click_clue() self.find_element(self.new_clue_locator).click()