Ejemplo n.º 1
0
 def verify_client_not_present_in_result(self):
     client = get_temp_data(self.config, "client")
     clientsearch = ClientSearch.ClientQuickSearchResult(self.config)
     assert not is_string_present(clientsearch.get_client_search_result(), client["person"]["firstName"]), \
         "User is present in the list."
     assert not is_string_present(clientsearch.get_client_search_result(), client["person"]["lastName"]), \
         "User is present in the list."
     return self
Ejemplo n.º 2
0
 def search_for_client(self):
     client = get_temp_data(self.config, "client")
     ClientSearch(self.config)\
         .click_clear_button()\
         .fill_in_firstname(client["person"]["firstName"])\
         .fill_in_lastname(client["person"]["lastName"])\
         .click_go_button()
     return self
Ejemplo n.º 3
0
 def search_for_client(self):
     ClientDashboardPage(self.config).click_clients_tab()
     ClientSearch(self.config)\
         .select_search_option(utils.get_common_data(self.config)["test_data"]["client_search_data"]["full_search"])\
         .click_clear_button() \
         .fill_in_firstname(self.firstname) \
         .fill_in_lastname(self.lastname)
     Search(self.config).search_and_open_first_link()
     return self
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
 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
Ejemplo n.º 7
0
 def search_client_by_name_and_open_first_result(self):
     ClientSearch(
         self.config).click_search_button().click_open_first_client()
Ejemplo n.º 8
0
 def search_and_open_first_fee(self):
     ClientSearch(
         self.config).click_fee_search_button().click_open_first_fee_link()
Ejemplo n.º 9
0
 def close_search_result_dialog(self):
     clientsearch = ClientSearch.ClientQuickSearchResult(self.config)
     clientsearch.driver.switch_to.default_content()
     clientsearch.close_client_search_dialog()
     return self