예제 #1
0
 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()
예제 #2
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)
예제 #6
0
 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)
예제 #7
0
 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)
예제 #8
0
 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()
예제 #9
0
 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)
예제 #10
0
 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()
예제 #11
0
 def specialization_select(self):
     driver = self.driver
     wait.element_xpath_active(driver,
                               regHelperEducation.specialization_name)
     driver.find_element_by_xpath(
         regHelperEducation.specialization_name).click()
예제 #12
0
 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)
예제 #13
0
 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()
예제 #15
0
 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)
예제 #16
0
 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()
예제 #17
0
 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)
예제 #18
0
 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()
예제 #19
0
 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()
예제 #20
0
 def select_country(self):
     driver = self.driver
     wait.element_xpath_active(driver,
                               regHelperProfession.institution_country)
     driver.find_element_by_xpath(
         regHelperProfession.institution_country).click()