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_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 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 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 send_end_time(self, etime):
     date = self.driver.find_element_by_id('date2')
     Service.send_input(date, etime)
 def send_start_time(self, stime):
     date = self.driver.find_element_by_id('date1')
     Service.send_input(date, stime)
 def input_jobnumber(self, cus_jobnum):
     name = self.driver.find_element_by_xpath(
         '/html/body/div[15]/div/div/form/div/div[8]/div/input')
     Service.send_input(name, cus_jobnum)
 def input_phone(self, cus_phone):
     name = self.driver.find_element_by_xpath(
         '/html/body/div[15]/div/div/form/div/div[3]/div[1]/input')
     Service.send_input(name, cus_phone)
 def input_job(
         self,
         cus_job):  #/html/body/div[15]/div/div/form/div/div[1]/div[3]/input
     phone = self.driver.find_element_by_xpath(
         '/html/body/div[15]/div/div/form/div/div[1]/div[3]/input')
     Service.send_input(phone, cus_job)
Exemplo n.º 10
0
 def input_name(self, username):
     uname = self.driver.find_element_by_xpath(
         '//div[@class="modal-body"]/div[1]/input')
     Service.send_input(uname, username)
Exemplo n.º 11
0
 def input_vfcode(self, verifycode):
     vfcode = self.driver.find_element_by_xpath(
         '//div[@class="modal-body"]/div[3]/input')
     Service.send_input(vfcode, verifycode)
Exemplo n.º 12
0
 def input_upass(self, password):
     upass = self.driver.find_element_by_xpath(
         '//div[@class="modal-body"]/div[2]/input')
     Service.send_input(upass, password)