def input_code(self, verification): ucode = self.driver.find_element_by_xpath( '/html/body/div[1]/div/div/form/div/div[3]/input') Service.send_input(ucode, verification)
def input_uname(self, username): uname = self.driver.find_element_by_xpath( '/html/body/div[1]/div/div/form/div/div[1]/input') Service.send_input(uname, username)
def input_upass(self, password): upass = self.driver.find_element_by_xpath( '/html/body/div[1]/div/div/form/div/div[2]/input') Service.send_input(upass, password)
def input_name(self, driver, value): name_ele = "/html/body/div[8]/div[2]/div/div/div/div[1]/input" name = driver.find_element_by_xpath(name_ele) Service.send_input(name, value)
def edit_grade(self, driver, value): edit_grade = driver.find_element_by_xpath( "/html/body/div[8]/div[2]/div/div/div/div[2]/div[2]/div[2]/table/tbody/tr[4]/td/div[1]/div[2]/div[2]/table/tbody/tr/td[3]" ) Service.send_input(edit_grade, value)
def record_entry_grade(self, driver, value): record_entry_grade = driver.find_element_by_xpath( "/html/body/div[9]/div/div/div[2]/form/div[2]/div[4]/input") Service.send_input(record_entry_grade, value)
def click_psd(self, driver, passwd): self.driver.find_element_by_id('btn-decrypt').click() sepass = self.driver.find_element_by_name('secondPass') Service.send_input(sepass, passwd) time.sleep(5) self.driver.find_elements_by_class_name('btn.btn-info')[0].click()