def input_time_begin(self, childdate):

        Service.remove_readonly(self.driver, 'childdate')
        childdate_one = self.driver.find_element_by_css_selector(
            '#leave-form > '
            'div:nth-child(2) > div:nth-child(1) > input:nth-child(2)')
        Service.send_input(childdate_one, childdate)
 def input_leave_idea(self, idea):
     u_idea = self.driver.find_element_by_css_selector(
         '#leave-form > div:nth-child(6) > '
         'div:nth-child(1) > textarea:nth-child(2)')
     Service.send_input(u_idea, idea)
 def input_leave_cause(self, cause):
     u_cause = self.driver.find_element_by_css_selector(
         '#leave-form > div:nth-child(5) >'
         ' div:nth-child(1) > textarea:nth-child(2)')
     Service.send_input(u_cause, cause)
 def input_leave_name(self, uname):
     u_name = self.driver.find_element_by_css_selector(
         '#leave-form > div:nth-child(4) > '
         'div:nth-child(1) > input:nth-child(2)')
     Service.send_input(u_name, uname)
 def input_leave_demo(self, day):
     u_day = self.driver.find_element_by_css_selector(
         '#leave-form > div:nth-child(3) >'
         ' div:nth-child(2) > input:nth-child(2)')
     Service.send_input(u_day, day)
 def input_time_finish(self, childdates):
     Service.remove_readonly(self.driver, 'childdate')
     childdate_tow = self.driver.find_element_by_css_selector(
         '#leave-form > div:nth-child(2) >'
         ' div:nth-child(2) > input:nth-child(2)')
     Service.send_input(childdate_tow, childdates)
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
 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)
Ejemplo n.º 9
0
 def input_username(self, username):
     u_name = self.driver.find_element_by_name('userName')
     Service.send_input(u_name, username)
Ejemplo n.º 10
0
 def input_checkcode(self, checkcode):
     u_code = self.driver.find_element_by_name("checkcode")
     Service.send_input(u_code, checkcode)
Ejemplo n.º 11
0
 def input_password(self, password):
     u_pass = self.driver.find_element_by_name('userPass')
     Service.send_input(u_pass, password)