Пример #1
0
 def assert_lead_exists(self):
     leaddetails = LeadDetailsPage(self.config)
     assert leaddetails.is_title_matches(
     ), "Title does not match the lead details page"
     assert leaddetails.get_lead_bar_info() == \
            utils.get_temp_data(self.config, "lead")["person"]["firstName"] + ' ' + utils.get_temp_data(self.config, "lead")["person"]["lastName"], "Lead name not matching"
     return self
Пример #2
0
 def verify_uploaded_data_synced(self):
     utils.update_temp_data(self.config, "lead", 0, "id",
                            LeadDetailsPage(self.config).get_lead_id())
     assert LeadDetailsPage(
         self.config).get_full_name_value() == utils.get_temp_data(
             self.config,
             "lead")["person"]["firstName"] + " " + utils.get_temp_data(
                 self.config,
                 "lead")["person"]["lastName"], "Lead not found"
     return self
Пример #3
0
 def using_add_lead_task_dialog(self):
     lead_details_page = LeadDetailsPage(self.config)
     lead_details_page.lead_actions_menu() \
         .hover_over_lead_actions() \
         .click_add_task()
     return AddLeadTask._AddLeadTask(lead_details_page, self)
Пример #4
0
 def using_upload_document_dialog(self):
     lead_details_page = LeadDetailsPage(self.config)
     lead_details_page.lead_actions_menu()\
         .hover_over_lead_actions()\
         .click_upload_document()
     return UploadLeadDocument._UploadDocument(lead_details_page, self)
 def navigate_to_relationships(self):
     LeadDetailsPage(self.config)\
         .click_details()\
         .click_relationships_tab()
     return self
 def using_add_relationship_wizard(self):
     lead_details_page = LeadDetailsPage(self.config)
     lead_details_page.lead_actions_menu() \
         .hover_over_lead_actions() \
         .click_add_relationship()
     return AddLeadRelationship._AddRelationship(lead_details_page, self)
Пример #7
0
 def finish(self):
     self.wizard.click_finish_button()
     utils.update_temp_data(self.config, "lead", 0, "id",
                            LeadDetailsPage(self.config).get_lead_id())
     return self.journey
Пример #8
0
 def using_change_status_dialog(self):
     lead_details_page = LeadDetailsPage(self.config)
     lead_details_page.lead_actions_menu() \
         .hover_over_lead_actions() \
         .change_status()
     return ConvertLead._ChangeStatus(lead_details_page, self)