def excute_manual_commit(self): self.allocation_query_three('ww') time.sleep(2) self.driver.find_element_by_name('btSelectItem').click() time.sleep(2) selector = self.driver.find_element_by_id('empNameSelect') Service.select_random(selector) self.driver.find_element_by_id('Submit').click() time.sleep(2) self.driver.find_element_by_xpath('button.btn.btn-primary').click() time.sleep(2) self.driver.find_element_by_xpath( '/html/body/div[10]/div/div/div[3]/button').click()
def train_this_level_random(self): selector = self.driver.find_element_by_name('priority') Service.select_random(selector)
def train_this_status_random(self): selector = self.driver.find_element_by_id('newStatus') Service.select_random(selector)
def train_where_select_random(self): selector = self.driver.find_element_by_name('cus.source') Service.select_random(selector)
def train_edu_select_random(self): selector = self.driver.find_element_by_name('cus.education') Service.select_random(selector)
def train_status_select_random(self): selector = self.driver.find_element_by_name('cus.last_status') Service.select_random(selector)
def train_sex_select_random(self): selector = self.driver.find_element_by_name('cus.sex') Service.select_random(selector)