def select_education(self):
     Service.select_random(self.driver, By.NAME, "cus.education")
 def click_save(self):
     Service.click_element(self.driver, By.ID, "addCusBtn")
Exemplo n.º 3
0
 def select_status(self, selector=None):
     Service.select_random(self.driver, By.ID, "Select", selector=selector)
 def input_age(self, age):
     Service.send_input(self.driver, By.NAME, "cus.age", age)
 def input_experience(self, experience):
     Service.send_input(self.driver, By.NAME, "cus.experience", experience)
 def selcet_workage(self):
     Service.select_random(self.driver, By.NAME, "cus.workage")
 def select_source(self):
     Service.select_random(
         self.driver, By.CSS_SELECTOR,
         "#addCus > div:nth-child(1) > div:nth-child(5) > div:nth-child(1) > select:nth-child(2)"
     )
 def click_add_button(self):
     Service.click_element(self.driver, By.CSS_SELECTOR,
                           "button.btn-padding:nth-child(1)")
 def input_phone(self, tel):
     Service.send_input(self.driver, By.NAME, "cus.tel", tel)
Exemplo n.º 10
0
 def click_search(self):
     Service.click_element(self.driver,By.CSS_SELECTOR,"div.col-lg-12:nth-child(4) > button:nth-child(4)")
Exemplo n.º 11
0
 def select_pool(self,selector=None):
     Service.select_random(self.driver,By.ID,"poolSelect",selector=selector)
Exemplo n.º 12
0
 def input_query(self,content):
     Service.send_input(self.driver,By.CSS_SELECTOR,"div.col-lg-12:nth-child(4) > input:nth-child(3)",content)
Exemplo n.º 13
0
 def input_time(self,start_date,end_date):
     driver = self.driver
     Service.remove_readonly(driver,"date1")
     Service.send_input(driver,By.ID,"date1",start_date)
     Service.remove_readonly(driver,"date2")
     Service.send_input(driver, By.ID, "date2", end_date)
Exemplo n.º 14
0
 def select_source(self, selector=None):
     Service.select_random(self.driver, By.ID, "sourceSelect", selector=selector)
 def input_major(self, major):
     Service.send_input(self.driver, By.NAME, "cus.major", major)
 def input_name(self, name):
     Service.send_input(self.driver, By.NAME, "cus.name", name)
 def input_intent(self, intent):
     Service.send_input(self.driver, By.NAME, "cus.intent", intent)
 def select_sex(self):
     Service.select_random(self.driver, By.NAME, "cus.sex")
 def input_salary(self, salary):
     Service.send_input(self.driver, By.NAME, "cus.salary", salary)
 def last_status(self, status):
     Service.select_random(self.driver,
                           By.CSS_SELECTOR,
                           "select.form-control:nth-child(2)",
                           selector=status)
 def input_applposition(self, applposition):
     Service.send_input(self.driver, By.NAME, "cus.applposition",
                        applposition)
 def input_email(self, email):
     Service.send_input(self.driver, By.NAME, "cus.email", email)
 def input_eduexp(self, eduexp):
     Service.send_input(self.driver, By.NAME, "cus.eduexp", eduexp)
 def input_qq(self, qq):
     Service.send_input(self.driver, By.NAME, "cus.qq", qq)
 def input_last_tracking_remark(self, last_tracking_remark):
     Service.send_input(self.driver, By.NAME, "cus.last_tracking_remark",
                        last_tracking_remark)
 def input_school(self, school):
     Service.send_input(self.driver, By.NAME, "cus.school", school)
 def click_ok(self):
     Service.click_element(self.driver, By.XPATH,
                           "/html/body/div[14]/div/div/div[3]/button")
Exemplo n.º 28
0
 def select_empname(self,selector=None):
     Service.select_random(self.driver, By.ID, "empNameSelect", selector=selector)