def using_add_client_wizard(self): self.page = IOBasePage(self.config) self.page.level1_menu().click_home() self.page = UserDashboardPage(self.config) self.page.click_add_client() self.wizard = CreateClient._ClientWizard(self) return self.wizard
def search_client_by_name(self, first_name, last_name): IOBasePage(self.config).level1_menu() \ .hover_over_navigation_menu() \ .click_adviserworkplace() ClientSearch(self.config) \ .select_search_option(get_common_data(self.config)["test_data"]["client_search_data"]["clients_by_name"]) \ .click_clear_button() \ .fill_in_firstname(first_name)\ .fill_in_lastname(last_name) Search(self.config).search_client_by_name_and_open_first_result() return self
def open_fee(self): data = get_common_data(self.config)["test_data"]["fee_search_data"] fee = get_temp_data(self.config, "fee") IOBasePage(self.config).level1_menu() \ .hover_over_navigation_menu() \ .click_adviserworkplace() ClientSearch(self.config).click_clear_button()\ .select_search_option(data["fee_search"]) \ .select_reference_type(data["fee_iob_ref"]) \ .fill_in_reference(fee["sequentialRef"]) Search(self.config).search_and_open_first_fee() return self
def open_sub_plan(self): data = get_common_data(self.config)["test_data"]["client_search_data"] IOBasePage(self.config).level1_menu() \ .hover_over_navigation_menu() \ .click_adviserworkplace() ClientSearch(self.config).select_search_option(data["full_search"]) \ .select_reference_type(data["plan_iob_ref"]) \ .clear_reference() \ .clear_firstname() \ .clear_lastname() \ .fill_in_reference("IOB" + self.config.sub_plan_id) Search(self.config).search_and_open_first_link() return self
def assert_user_is_delegated_in(self): usermenutext = IOBasePage(self.config).get_selected_area_text() list = usermenutext.split() assert str(list[0]) == "Delegated", "User is not delegated in" assert str(list[1]) == "as:", "User is not delegated in" return self
def quick_search_client(self, client_name): IOBasePage(self.config).fill_in_client_search_field(client_name)\ .click_go_button() return self
def navigate_to_organiser(self): IOBasePage(self.config).level1_menu().hover_over_navigation_menu( ).click_organiser() return self
def navigate_to_home(self): IOBasePage(self.config).level1_menu().click_home() return self
def income(self): IOBasePage(self.config).level1_menu().hover_over_navigation_menu( ).click_income() return IncomeNavigation(self.config)
def adviser_workplace(self): IOBasePage(self.config).level1_menu().hover_over_navigation_menu( ).click_adviserworkplace() return AdviserWorkplaceNavigation(self.config)
def navigate_to_cash_receipts_search(self): IOBasePage(self.config).level1_menu()\ .hover_over_navigation_menu().click_income() IncomeBasePage(self.config).level2_menu().click_cash_receipts() return self
def using_import_completed_template_dialog(self): IOBasePage(self.config).level2_menu().click_uploads() UploadsPage(self.config).click_data_uploader( ).click_import_completed_template() self.dialog = DataUpload._ImportCompletedTemplate(self) return self.dialog
def using_download_template_dialog(self): IOBasePage(self.config).level2_menu().click_uploads() UploadsPage( self.config).click_data_uploader().click_download_template() self.dialog = DataUpload._DownloadTemplates(self) return self.dialog