def input_name(self, driver, value): name = driver.find_element_by_xpath( '/html/body/div[8]/div[2]/div/div/div/div[1]/input') Service.input_ele(name, value)
def edit_grade(self, driver, value): edit_grade = driver.find_element_by_css_selector( '#phaseExam-form > div:nth-child(3) > div:nth-child(1) > input:nth-child(2)' ) Service.input_ele(edit_grade, value)