def select_institution(self): driver = self.driver wait.element_xpath_active(driver, regHelperProfession.select_institution_field) time.sleep(2) driver.find_element_by_xpath( regHelperProfession.select_institution_field).click()
def select_school(self): driver = self.driver wait.element_xpath_active( driver, regHelperEducation.education_select_school_field) time.sleep(2) driver.find_element_by_xpath( regHelperEducation.education_select_school_field).click()
def add_information(self): driver = self.driver wait.element_xpath_active(driver, regHelperAddinform.inform_xpath) element = driver.find_element_by_xpath(regHelperAddinform.inform_xpath) element.click() element.clear() element.send_keys(info_add.add)
def bill_information(self): driver = self.driver wait.element_xpath_active(driver, regHelperBillInfo.inform_xpath) element = driver.find_element_by_xpath(regHelperBillInfo.inform_xpath) element.click() element.clear() element.send_keys(info_bill.bill)
def details_submit(self): driver = self.driver wait.element_xpath_active(driver, regHelperPersonal.personal_details_submit) driver.find_element_by_xpath( regHelperPersonal.personal_details_submit).click() time.sleep(2)
def country_field(self): driver = self.driver wait.element_xpath_active(driver, regHelperPersonal.country_select_field) driver.find_element_by_xpath( regHelperPersonal.country_select_field).clear() driver.find_element_by_xpath( regHelperPersonal.country_select_field).send_keys( info_user.country) time.sleep(2)
def details_avatar(self): driver = self.driver upload = driver.find_element_by_xpath( regHelperPersonal.avatar_photo_upload) wait.element_xpath(driver, regHelperPersonal.avatar_photo_upload) upload.click() time.sleep(2) os.system(regHelperPersonal.script_chrome_photo_avatar) wait.element_xpath_active(driver, regHelperPersonal.submit_avatar) driver.find_element_by_xpath(regHelperPersonal.submit_avatar).click() time.sleep(2)
def diplom_select(self): driver = self.driver upload = driver.find_element_by_xpath(regHelperEducation.upload_diplom) wait.element_xpath_active(driver, regHelperEducation.upload_diplom) upload.click() load_page_1 = driver.find_element_by_xpath( regHelperEducation.upload_page_1) wait.element_xpath_clickable(driver, regHelperEducation.upload_page_1) load_page_1.click() os.system(regHelperEducation.script_chrome_photo_diplom_1) time.sleep(3) load_page_2 = driver.find_element_by_xpath( regHelperEducation.upload_page_2) wait.element_xpath_clickable(driver, regHelperEducation.upload_page_2) load_page_2.click() os.system(regHelperEducation.script_chrome_photo_diplom_2) wait.element_xpath_active(driver, regHelperEducation.submit_diplom) driver.find_element_by_xpath(regHelperEducation.submit_diplom).click()
def country(self): driver = self.driver wait.element_xpath_active(driver, regHelperPersonal.country_select) driver.find_element_by_xpath(regHelperPersonal.country_select).click() time.sleep(1)
def submit_registration_contract(self): driver = self.driver wait.element_xpath_active( driver, regHelperPersonal.submit_contract_element_xpath) driver.find_element_by_xpath( regHelperPersonal.submit_contract_element_xpath).click()
def specialization_select(self): driver = self.driver wait.element_xpath_active(driver, regHelperEducation.specialization_name) driver.find_element_by_xpath( regHelperEducation.specialization_name).click()
def university_select(self): driver = self.driver wait.element_xpath_active(driver, regHelperEducation.university_name) driver.find_element_by_xpath( regHelperEducation.university_name).click() time.sleep(1)
def institution_select(self): driver = self.driver wait.element_xpath_active(driver, regHelperProfession.institution_name) driver.find_element_by_xpath( regHelperProfession.institution_name).click() time.sleep(1)
def submit_add(self): driver = self.driver wait.element_xpath_active(driver, regHelperAddinform.submit_add_xpath) driver.find_element_by_xpath( regHelperAddinform.submit_add_xpath).click()
def submit_registration(self): driver = self.driver wait.element_xpath_active(driver, regHelperBillInfo.submit_reg_xpath) driver.find_element_by_xpath(regHelperBillInfo.submit_reg_xpath).click() time.sleep(6)
def submit_bill(self): driver = self.driver wait.element_xpath_active(driver, regHelperBillInfo.submit_add_xpath) driver.find_element_by_xpath(regHelperBillInfo.submit_add_xpath).click()
def speciality_select(self): driver = self.driver wait.element_xpath_active(driver, regHelperProfession.speciality_name) driver.find_element_by_xpath( regHelperProfession.speciality_name).click() time.sleep(1)
def select_school_country(self): driver = self.driver wait.element_xpath_active(driver, regHelperEducation.school_country) time.sleep(1) driver.find_element_by_xpath(regHelperEducation.school_country).click()
def submit_email_password(self): driver = self.driver wait.element_xpath_active( driver, regHelperPersonal.submit_email_password_element_xpath) driver.find_element_by_xpath( regHelperPersonal.submit_email_password_element_xpath).click()
def select_country(self): driver = self.driver wait.element_xpath_active(driver, regHelperProfession.institution_country) driver.find_element_by_xpath( regHelperProfession.institution_country).click()