def test_fillform(self): self.ff = FormPage(self.driver) self.ff.enter_drivername(TestData.DRIVER_NAME),time.sleep(2) self.ff.enter_mobile_number(TestData.DRIVER_MOBILE_NUMBER),time.sleep(2) self.ff.enter_email(TestData.DRIVER_EMAIL),time.sleep(2) self.ff.enter_driver_password(TestData.DRIVER_PASSWORD),time.sleep(2) self.ff.enter_nic(TestData.DRIVER_NIC),time.sleep(2)
def goto_form_page(self): self.do_click(self.ANGULAR3) formpage = FormPage(self.driver) return formpage
def test_hiring_times(self): self.ff = FormPage(self.driver) self.ff.enter_prefer_hiring_from(TestData.HIRING_TIME_FROM) self.ff.enter_prefer_hiring_to(TestData.HIRING_TIME_TO)
def test_enter_chassis_number(self): self.ff = FormPage(self.driver) self.ff.enter_chassis_number(TestData.CHASSIS_NUMBER)
def test_enter_engine_number(self): self.ff = FormPage(self.driver) self.ff.enter_engine_number(TestData.ENGINE_NUMBER)
def test_upload_vehicle_picture(self): self.ff = FormPage(self.driver) self.ff.upload_vihicle_picture(TestData.FILE_UPLOAD_VEHICLE_PICTURE)
def test_select_vehicle_type(self): self.ff = FormPage(self.driver) self.ff.select_vehicle_type(Locators.select_vehicle_type_xpath) self.driver.execute_script("window.scrollBy(0,500)", "")
def test_priority6_enter_vehicle_number(self): self.ff = FormPage(self.driver) self.ff.enter_vehicle_number(TestData.VEHICLE_NUMBER)
def test_upload_licenece_backcopy_file(self): self.ff = FormPage(self.driver) self.ff.upload_licence_back( TestData.FILE_UPLOAD_BACK_PATH), time.sleep(2)