class CrpoBehalfOfFeedback: def __init__(self, driver, index, version): self.driver = driver self.live = LiveIntSchedulePage(self.driver) self.feedback = InterviewFeedback(self.driver) self.new_tab = SwitchWindow.SwitchWindowClose(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_status_change'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['event_name'][0].format(version) self.xl_live_stage = xl['live_stage'][0] feed_excel = excelRead.ExcelRead() feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index) xl = feed_excel.excel_dict self.xl_candidate_name = xl['event_name'][0].format(version) self.xl_shortlist_decision = xl['shortlist'][0] self.xl_rating = xl['rating'][0] self.xl_comment = xl['behalf_comment'][0] self.xl_overall = xl['behalf_overall'][0] self.behalf_of_collection = [] def live_behalf_of_feedback(self): self.behalf_of_collection = [] __list = [ self.live.arrow_down_for_feedback(), self.live.feedback_provide_action(), self.new_tab.switch_to_window(1), self.feedback.feedback_decision(self.xl_shortlist_decision), self.feedback.feedback_select_drop_down(self.xl_rating), self.feedback.feedback_comments(self.xl_comment), self.feedback.behalf_select_interviewers(), self.feedback.overall_comment(self.xl_overall), self.feedback.submit_feedback(), self.feedback.agree_and_submit(), self.feedback.agree_and_submit(), self.new_tab.window_close(), self.new_tab.switch_to_window(0), self.live.clear_applicant_search() ] for func in __list: if func: self.behalf_of_collection.append(func) else: self.behalf_of_collection.append(func)
class CrpoInt2Feedback: def __init__(self, driver, index, version): self.driver = driver self.live = LiveIntSchedulePage(self.driver) self.feedback = InterviewFeedback(self.driver) self.new_tab = SwitchWindow.SwitchWindowClose(self.driver) self.event_action = EventActionsPage.Actions(self.driver) self.search = Search(self.driver) self.applicant_grid = EventApplicant(self.driver) self.applicant_action = EventApplicantActions(self.driver) self.bucket = BucketSelectionPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_status_change'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['event_name'][0].format(version) self.xl_live_stage = xl['live_stage'][0] feed_excel = excelRead.ExcelRead() feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index) xl = feed_excel.excel_dict self.xl_candidate_name = xl['event_name'][0].format(version) self.xl_shortlist_decision = xl['shortlist'][0] self.xl_rating = xl['rating'][0] self.xl_comment = xl['quick_comment'][0] self.xl_overall = xl['quick_overall'][0] self.xl_bucket = xl['partial_bucket'][0] self.int2_feedback_collection = [] self.pf2_collection = [] self.partial_collection = [] def quick_interview2_feedback(self): self.int2_feedback_collection = [] __list = [ self.event_action.event_actions_click(), self.event_action.event_interviews(), self.search.advance_search(), self.search.candidate_name_field(self.xl_event_name), self.search.search_button(), self.applicant_grid.select_applicant(), self.applicant_action.provide_feedback_action(), self.new_tab.switch_to_window(1) ] for func in __list: if func: self.int2_feedback_collection.append(func) else: self.int2_feedback_collection.append(func) def int2_partial_submission(self): self.partial_collection = [] __list = [ self.feedback.feedback_decision(self.xl_shortlist_decision), self.feedback.feedback_select_drop_down(self.xl_rating), self.feedback.feedback_comments(self.xl_comment), self.feedback.overall_comment(self.xl_overall), self.feedback.partial_submission(), self.feedback.agree_and_submit(), self.new_tab.window_close(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.partial_collection.append(func) else: self.partial_collection.append(func) def int2_provide_feedback(self): self.pf2_collection = [] __list = [ self.bucket.bucket_select(self.xl_bucket), self.applicant_grid.select_applicant(), self.applicant_action.provide_feedback_action(), self.new_tab.switch_to_window(1), self.feedback.submit_feedback(), self.feedback.agree_and_submit(), self.feedback.agree_and_submit(), self.new_tab.window_close(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.pf2_collection.append(func) else: self.pf2_collection.append(func)
class CrpoInt1Feedback: def __init__(self, driver, index, version): self.driver = driver self.feedback = InterviewFeedback(self.driver) self.new_tab = SwitchWindow.SwitchWindowClose(self.driver) self.search = Search(self.driver) self.applicant_grid = EventApplicant(self.driver) self.applicant_action = EventApplicantActions(self.driver) self.bucket = BucketSelectionPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ feed_excel = excelRead.ExcelRead() feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index) xl = feed_excel.excel_dict self.xl_bucket = xl['completed_bucket'][0] self.xl_candidate_name = xl['event_name'][0].format(version) self.xl_pending_decision = xl['pending'][0] self.xl_shortlist_decision = xl['shortlist'][0] self.xl_rating = xl['rating'][0] self.xl_rating1 = xl['rating1'][0] self.xl_comment = xl['unlock_comment'][0] self.xl_overall = xl['unlock_overall'][0] self.int1_feedback_collection = [] self.pf1_collection = [] self.update_f_d_collection = [] self.completed_bucket_collection = [] def completed_bucket(self): self.completed_bucket_collection = [] __list = [self.bucket.bucket_select(self.xl_bucket)] for func in __list: if func: self.completed_bucket_collection.append(func) else: self.completed_bucket_collection.append(func) def interview1_feedback(self): self.int1_feedback_collection = [] __list = [ self.search.advance_search(), self.search.candidate_name_field(self.xl_candidate_name), self.search.search_button(), self.applicant_grid.select_applicant(), self.applicant_action.provide_feedback_action(), self.new_tab.switch_to_window(1) ] for func in __list: if func: self.int1_feedback_collection.append(func) else: self.int1_feedback_collection.append(func) def int1_provide_feedback(self): self.pf1_collection = [] __list = [ self.feedback.feedback_decision(self.xl_pending_decision), self.feedback.feedback_select_drop_down(self.xl_rating), self.feedback.feedback_comments(self.xl_comment), self.feedback.overall_comment(self.xl_overall), self.feedback.submit_feedback(), self.feedback.agree_and_submit(), self.feedback.agree_and_submit(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.pf1_collection.append(func) else: self.pf1_collection.append(func) def int1_update_feedback_decision(self): self.update_f_d_collection = [] __list = [ self.feedback.feedback_decision(self.xl_shortlist_decision), self.feedback.feedback_select_drop_down(self.xl_rating1), self.feedback.feedback_comments(self.xl_comment), self.feedback.overall_comment(self.xl_overall), self.feedback.update_feedback(), self.feedback.agree_and_submit(), self.feedback.agree_and_submit(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.update_f_d_collection.append(func) else: self.update_f_d_collection.append(func)
class CrpoInt2Feedback: def __init__(self, driver, index, version): self.driver = driver self.live = LiveIntSchedulePage(self.driver) self.feedback = InterviewFeedback(self.driver) self.new_tab = SwitchWindow.SwitchWindowClose(self.driver) self.event_action = EventActionsPage.Actions(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_status_change'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['event_name'][0].format(version) self.xl_live_stage = xl['live_stage'][0] feed_excel = excelRead.ExcelRead() feed_excel.read(inputFile.INPUT_PATH['feedback'], index=index) xl = feed_excel.excel_dict self.xl_candidate_name = xl['event_name'][0].format(version) self.xl_shortlist_decision = xl['shortlist'][0] self.xl_rating = xl['rating'][0] self.xl_comment = xl['live_comment'][0] self.xl_overall = xl['live_overall'][0] self.xl_draft_message = xl['save_draft_message'][0] self.int2_feedback_collection = [] self.pf2_collection = [] self.draft_collection = [] def live_interview2_feedback(self): self.int2_feedback_collection = [] __list = [ self.event_action.event_actions_click(), self.event_action.live_interview_schedule(), self.live.stage_selection(self.xl_live_stage), self.live.applicant_name_filed(self.xl_event_name), self.live.schedule_applicant_search(), self.live.arrow_down_for_feedback(), self.live.feedback_provide_action(), self.new_tab.switch_to_window(1) ] for func in __list: if func: self.int2_feedback_collection.append(func) else: self.int2_feedback_collection.append(func) def int2_save_draft(self): self.draft_collection = [] __list = [ self.feedback.feedback_decision(self.xl_shortlist_decision), self.feedback.feedback_select_drop_down(self.xl_rating), self.feedback.feedback_comments(self.xl_comment), self.feedback.overall_comment(self.xl_draft_message), self.feedback.save_draft_old_feedback(), self.feedback.save_draft_notifier(self.xl_draft_message), self.feedback.save_draft_notifier_dismiss(), self.new_tab.window_close(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.draft_collection.append(func) else: self.draft_collection.append(func) def int2_provide_feedback(self): self.pf2_collection = [] __list = [ self.live.feedback_provide_action(), self.new_tab.switch_to_window(1), self.feedback.overall_comment(self.xl_overall), self.feedback.submit_feedback(), self.feedback.agree_and_submit(), self.feedback.agree_and_submit(), self.new_tab.window_close(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.pf2_collection.append(func) else: self.pf2_collection.append(func)