def test_close_obep_seoch_account(self): login = LoginPage(self.driver) login.enter_user_credential(self.username, self.password) form_page = A1A2FormFillingPage(self.driver) form_page.select_dcass_account_type(AccountType.OBEP) form_page.select_account_service_type(ServiceType.CLOSE_HKCC) form_page.click_select_account_drop_down(DropDown.NAME) form_page.select_account_id() form_page.enter_contact_information(ContactInformation.NAME, ContactInformation.POSITION, ContactInformation.EMAIL, ContactInformation.PHONE)
def test_open_dcass_seoch_account(self): login = LoginPage(self.driver) login.enter_user_credential(self.username, self.password) form_page = A1A2FormFillingPage(self.driver) form_page.select_dcass_account_type(AccountType.DCASS) form_page.select_account_service_type(ServiceType.OPEN_SEOCH) form_page.click_select_account_drop_down(DropDown.NAME) form_page.select_account_id() form_page.click_add_another_contact() form_page.enter_contact_information(ContactInformation.NAME, ContactInformation.POSITION, ContactInformation.EMAIL, ContactInformation.PHONE) form_page.click_next_preview_submit_button()
def validate_a1_a2_account_details_title(self): expected_result = "SECTION 1 | ACCOUNT DETAILS" actual_result = A1A2FormFillingPage.get_section1_title(self) self.validator.verify_two_values_are_equal(actual_result, expected_result)
def validate_a1_a2_contact_details_title(self): expected_result = "SECTION 2 | CONTACT INFORMATION" actual_result = A1A2FormFillingPage.get_section2_title(self) self.validator.verify_two_values_are_equal(actual_result, expected_result)
def validate_a1_a2_form_title(self): expected_result = "DCASS ACCOUNT MAINTENANCE" actual_result = A1A2FormFillingPage.get_form_title(self) self.validator.verify_two_values_are_equal(actual_result, expected_result)