def send_sencpass(self, secp): self.driver.find_element_by_id('btn-decrypt').click() time.sleep(2) sec = self.driver.find_element_by_xpath( '//div[@id="secondPass-modal"]/div/div/div[2]/input') Service.send_input(sec, secp) self.driver.find_element_by_xpath( '//div[@id="secondPass-modal"]/div/div/div[3]/button').click()
def input_vfcode(self,verifycode): vfcode = self.driver.find_element_by_name('checkcode') Service.send_input(vfcode,verifycode)
def input_keyward(self,cus_keyw): keyward=self.driver.find_element_by_xpath('//div[@id="content"]/div[2]/div[2]/input') Service.send_input(keyward,cus_keyw)
def input_vfcode(self, verifycode): vfcode = self.driver.find_element_by_xpath( '//div[@class="modal-body"]/div[3]/input') Service.send_input(vfcode, verifycode)
def remark(self, value): remark = self.driver.find_element_by_xpath( "//form[@id='formFollow']/div[2]/div/textarea") Service.send_input(remark, value)
def send_end_time(self, etime): date = self.driver.find_element_by_id('date2') Service.send_input(date, etime)
def input_phone(self,cus_phone): phone=self.driver.find_element_by_xpath('//form[@id="addCus"]/div/div/div/input') Service.send_input(phone,cus_phone)
def decrypt(self, secondPass): self.driver.find_element_by_id('btn-decrypt').click() ele = self.driver.find_element_by_name('secondPass') Service.send_input(ele, secondPass) self.driver.find_element_by_xpath( '//div[@id="secondPass-modal"]/div/div/div[3]/button').click()
def input_comment(self, comment): ele = self.driver.find_element_by_xpath( '/html/body/div[15]/div/div/div[2]/form/div[5]/div/textarea') time.sleep(10) Service.send_input(ele, comment)
def input_market_date(self, starttime, endtime): c_starttime = self.driver.find_element_by_name('s_sourcetime') Service.send_input(c_starttime, starttime) time.sleep(2) c_endtime = self.driver.find_element_by_name('e_sourcetime') Service.send_input(c_endtime, endtime)
def send_public_keywords(self, keyw): key = self.driver.find_element_by_xpath( '/html/body/div[8]/div[2]/div/input') Service.send_input(key, keyw)
def input_sale_date(self, starttime, endtime): c_starttime = self.driver.find_element_by_name('s_consulttime') Service.send_input(c_starttime, starttime) time.sleep(2) c_endtime = self.driver.find_element_by_name('e_consulttime') Service.send_input(c_endtime, endtime)
def input_name(self,cusname): cname = self.driver.find_element_by_xpath('/html/body/div[11]/div/div/form/div/div/div[4]/input') Service.send_input(cname,cusname)
def input_phone(self,cusphone): phone = self.driver.find_element_by_xpath('/html/body/div[11]/div/div/form/div/div/div[3]/input') Service.send_input(phone,cusphone)
def input_name(self, uname): u_name = self.driver.find_element_by_css_selector( 'find_element_by_css_selector') Service.send_input(u_name, uname)
def input_date(self,next_time): Service.remove_readonly(driver,'next_time') date_ele = driver.find_element_by_id('next_time') Service.send_input(date_ele,next_time)
def input_number(self, number): n_umber = self.driver.find_element_by_css_selector( 'div.col-lg-6:nth-child(2) > input:nth-child(2)') Service.send_input(n_umber, number)
def input_content(self,content): con = self.driver.find_element_by_xpath('/html/body/div[13]/div/div/div/div[2]/div[1]/div[1]/div/form/div[2]/div/textarea') Service.send_input(con,content)
def input_name(self,cus_name): name = self.driver.find_element_by_xpath('//form[@id="addCus"]/div/div/div[2]/input') Service.send_input(name,cus_name)
def modify_name(self,new_name): name = self.driver.find_element_by_xpath('/html/body/div[14]/div/div/form/div/div[1]/div[1]/input') Service.send_input(name,new_name)
def send_start_time(self, stime): date = self.driver.find_element_by_id('date1') Service.send_input(date, stime)
def input_resphone(self,resphone): ele = self.driver.find_element_by_css_selector('div.col-lg-12:nth-child(1) > input:nth-child(7)') Service.send_input(ele,resphone)
def send_keywords(self, keywords): input_cusinfo=self.driver.find_element_by_xpath\ ('//div[@id="content"]/div[2]/div/input[3]') Service.send_input(input_cusinfo, keywords)
def input_phone(self,resphone): rphone = self.driver.find_element_by_xpath('/html/body/div[13]/div/div/form/div[1]/div[1]/div[1]/input') Service.send_input(rphone,resphone)
def input_upass(self, password): upass = self.driver.find_element_by_xpath( '//div[@class="modal-body"]/div[2]/input') Service.send_input(upass, password)
def input_name(self,resname): rname = self.driver.find_element_by_xpath('/html/body/div[13]/div/div/form/div[1]/div[1]/div[2]/input') Service.send_input(rname,resname)
def input_name(self, username): uname = self.driver.find_element_by_xpath( '//div[@class="modal-body"]/div[1]/input') Service.send_input(uname, username)
def query_resouce_phone(self,resphone): pho = self.driver.find_element_by_css_selector('div.col-lg-12:nth-child(1) > input:nth-child(6)') Service.send_input(pho,resphone)
def publick_keyward_query(self, value): key = self.driver.find_element_by_xpath( '//div[@id="content"]/div[2]/div/input').click() Service.send_input(key, value) self.driver.find_element_by_xpath( '//div[@id="content"]/div[2]/div/button').click()
def input_upass(self,password): upass = self.driver.find_element_by_name('userPass') Service.send_input(upass,password)