def __init__(self, driver, index, version): self.driver = driver self.get_by = EventGetByName(self.driver) self.event_sub_tab = EventSubTabs(self.driver) self.task_config = EventActivityTaskConfigPage(self.driver) self.multi_value = MultiSelectValues(self.driver) self.test = EventTestConfigPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_excel'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['name'][0].format(version) self.xl_stage_status = xl['offer_stage_status'][0] self.xl_positive_stage = xl['offer_positive'][0] self.xl_negative_stage = xl['offer_negative'][0] self.xl_activity2 = xl['activity2'][0] self.xl_task_message = xl['task_message'][0] self.xl_test_stage = xl['test_stage'][0] self.xl_test_message = xl['test_message'][0] self.event_task_config_collection = [] self.event_test_config_collection = []
def __init__(self, driver, index): self.driver = driver self.event_tab = EventSubTabs(self.driver) self.admin_approve = EventCancelRequest(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ cancel_excel = excelRead.ExcelRead() cancel_excel.read(inputFile.INPUT_PATH['cancel_interview'], index=index) xl = cancel_excel.excel_dict self.xl_comment = xl['comment'][0] self.xl_message = xl['approve_request_message'][0] self.admin_accept_collection = []
def __init__(self, driver): self.driver = driver self.wait = WebElementWait(self.driver) self.scroll = PageScroll(self.driver) self.message = Notifier(self.driver) self.sub_tab = EventSubTabs(self.driver)
def __init__(self, driver, index, version): self.driver = driver self.event_sub_tab = EventSubTabs(self.driver) self.candidate_login = LoginPage(self.driver) self.new_tab = SwitchWindowClose(self.driver) self.lobby = LobbyPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['candidate_lobby'], index=index) xl = status_excel.excel_dict self.xl_candidate_name = xl['name'][0].format(version) self.xl_almost_message = xl['almost_message'][0] self.xl_queued_message = xl['queued_message'][0] self.candidate_lobby_collection = []
class CrpoAdminAccept: def __init__(self, driver, index): self.driver = driver self.event_tab = EventSubTabs(self.driver) self.admin_approve = EventCancelRequest(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ cancel_excel = excelRead.ExcelRead() cancel_excel.read(inputFile.INPUT_PATH['cancel_interview'], index=index) xl = cancel_excel.excel_dict self.xl_comment = xl['comment'][0] self.xl_message = xl['approve_request_message'][0] self.admin_accept_collection = [] def admin_accept_cancellation(self): self.admin_accept_collection = [] __list = [ self.event_tab.tracking(), self.event_tab.cancel_request_tab(), self.admin_approve.accept_cancellation(), self.admin_approve.cancel_request_comment(self.xl_comment), self.admin_approve.confirm_request(), self.admin_approve.go_ahead_with_lobby_screen(), self.admin_approve.lobby_accept_cancellation(), self.admin_approve.cancel_request_comment(self.xl_comment), self.admin_approve.lobby_confirm_request(), self.admin_approve.acceptance_notifier(self.xl_message), self.admin_approve.acceptance_notifier_dismiss() ] for func in __list: if func: self.admin_accept_collection.append(func) else: self.admin_accept_collection.append(func)
class CandidateLobbyLogin: def __init__(self, driver, index, version): self.driver = driver self.event_sub_tab = EventSubTabs(self.driver) self.candidate_login = LoginPage(self.driver) self.new_tab = SwitchWindowClose(self.driver) self.lobby = LobbyPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['candidate_lobby'], index=index) xl = status_excel.excel_dict self.xl_candidate_name = xl['name'][0].format(version) self.xl_almost_message = xl['almost_message'][0] self.xl_queued_message = xl['queued_message'][0] self.candidate_lobby_collection = [] def candidate_lobby_login(self, candidate_id, candidate_login_link): self.candidate_lobby_collection = [] __list = [ self.candidate_login.open_link(candidate_login_link), self.candidate_login.login_screen(candidate_id), self.candidate_login.enter_to_room(), self.candidate_login.candidate_name_validate( self.xl_candidate_name), self.candidate_login.almost_message(self.xl_almost_message), self.new_tab.window_close(), self.new_tab.switch_to_window(0), self.event_sub_tab.manage_candidates(), self.lobby.un_assign_room(), self.lobby.ok_buttons(), self.lobby.ok_buttons(), self.candidate_login.open_link(candidate_login_link), self.candidate_login.login_screen(candidate_id), self.candidate_login.enter_to_room(), self.candidate_login.candidate_name_validate( self.xl_candidate_name), self.candidate_login.queued_message(self.xl_queued_message), self.new_tab.window_close(), self.new_tab.switch_to_window(0), ] for func in __list: if func: self.candidate_lobby_collection.append(func) else: self.candidate_lobby_collection.append(func)
def __init__(self, driver, index, version): self.driver = driver self.menu = Menu(self.driver) self.search = AdvanceSearchPage.Search(self.driver) self.getby = EventGetByNamePage.EventGetByName(self.driver) self.config = EventConfiguration(self.driver) self.event_sub_tab = EventSubTabs(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_assign_config'], index=index) xl = status_excel.excel_dict self.xl_menu_name = xl['menu'][0] self.xl_tab_title = xl['tab_title'][0] self.xl_event_name = xl['name'][0].format(version) self.xl_user_name = xl['user_name'][0] self.xl_on_off_button = xl['on_off'][0] self.xl_enable_disable_button = xl['enable_disable'][0] self.xl_save_button = xl['save'][0] self.xl_message = xl['message'][0] self.event_config_collection = []
class EnableAutoAssign: def __init__(self, driver, index, version): self.driver = driver self.menu = Menu(self.driver) self.search = AdvanceSearchPage.Search(self.driver) self.getby = EventGetByNamePage.EventGetByName(self.driver) self.config = EventConfiguration(self.driver) self.event_sub_tab = EventSubTabs(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_assign_config'], index=index) xl = status_excel.excel_dict self.xl_menu_name = xl['menu'][0] self.xl_tab_title = xl['tab_title'][0] self.xl_event_name = xl['name'][0].format(version) self.xl_user_name = xl['user_name'][0] self.xl_on_off_button = xl['on_off'][0] self.xl_enable_disable_button = xl['enable_disable'][0] self.xl_save_button = xl['save'][0] self.xl_message = xl['message'][0] self.event_config_collection = [] def auto_allocation_user_chat(self): self.event_config_collection = [] __list = [ self.menu.event_tab(self.xl_menu_name, self.xl_tab_title), self.search.advance_search(), self.search.name_field(self.xl_event_name), self.search.search_button(), self.getby.event_name_click(), self.getby.event_name_validation(self.xl_event_name), self.event_sub_tab.event_configurations(), self.config.on_off_buttons(self.xl_on_off_button), self.config.user_id_chat(), self.config.search_user_chat(self.xl_user_name), self.config.enable_disable_button(self.xl_enable_disable_button), self.config.save_buttons(self.xl_save_button, self.xl_message) ] for func in __list: if func: self.event_config_collection.append(func) else: self.event_config_collection.append(func)
class CRPOEventConfiguration: def __init__(self, driver, index, version): self.driver = driver self.get_by = EventGetByName(self.driver) self.event_sub_tab = EventSubTabs(self.driver) self.task_config = EventActivityTaskConfigPage(self.driver) self.multi_value = MultiSelectValues(self.driver) self.test = EventTestConfigPage(self.driver) """ ----------------- EXCEL READ AND TO ASSIGN VALUES TO RESPECTIVE INIT VARIABLES ------>>>> """ status_excel = excelRead.ExcelRead() status_excel.read(inputFile.INPUT_PATH['event_excel'], index=index) xl = status_excel.excel_dict self.xl_event_name = xl['name'][0].format(version) self.xl_stage_status = xl['offer_stage_status'][0] self.xl_positive_stage = xl['offer_positive'][0] self.xl_negative_stage = xl['offer_negative'][0] self.xl_activity2 = xl['activity2'][0] self.xl_task_message = xl['task_message'][0] self.xl_test_stage = xl['test_stage'][0] self.xl_test_message = xl['test_message'][0] self.event_task_config_collection = [] self.event_test_config_collection = [] def crpo_event_task_configurations(self): self.event_task_config_collection = [] __list = [self.event_sub_tab.event_configurations(), self.get_by.event_name_validation(self.xl_event_name), self.task_config.event_task_configure_button(), self.task_config.task_new_row(), self.task_config.event_task_job_name(self.xl_event_name), self.task_config.event_activity_stage_field(self.xl_stage_status), self.task_config.event_activity_positive_stage_field(self.xl_positive_stage), self.task_config.event_activity_negative_stage_field(self.xl_negative_stage), self.task_config.event_activity_field(self.xl_activity2), self.task_config.event_task_field(), self.multi_value.move_all_items(), self.multi_value.done(), self.task_config.event_activity_task_save(), self.task_config.event_task_notifier(self.xl_task_message), self.task_config.event_task_notifier_dismiss() ] for func in __list: if func: self.event_task_config_collection.append(func) else: self.event_task_config_collection.append(func) def crpo_event_test_configurations(self): self.event_test_config_collection = [] __list = [self.test.event_test_configure_button(), self.test.test_job_name_field(self.xl_event_name), self.test.test_stage_name_field(self.xl_test_stage), self.test.test_test_name_field(self.xl_event_name), self.test.test_active_enable(), self.test.event_test_configure_save(), self.test.test_tag_notifier(self.xl_test_message), self.test.test_tag_notifier_dismiss(), self.test.cancel_test_extra_config() ] for func in __list: if func: self.event_test_config_collection.append(func) else: self.event_test_config_collection.append(func)