Beispiel #1
0
class ProjectInfoMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_admin_ProjectInfo+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Customers', (By.ID, 'menu_admin_viewCustomers'), None,
                 CustomersPage),
        MenuItem('Projects', (By.ID, 'menu_admin_viewProjects'), None,
                 ProjectsPage)
    }
Beispiel #2
0
class EntitlementsMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_leave_Entitlements+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Add Entitlements', (By.ID, 'menu_leave_addLeaveEntitlement'),
                 None, AddLeaveEntitlementMPage),
        MenuItem('Employee Entitlements',
                 (By.ID, 'menu_leave_viewLeaveEntitlements'), None,
                 LeaveEntitlementsMPage)
    }
class PIMConfigurationMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_pim_viewPimModule+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Optional Fields', (By.ID, 'menu_pim_configurePim'), None, ConfigurePIMPage),
        MenuItem('Custom Fields', (By.ID, 'menu_pim_listCustomFields'), None, CustomFieldsPage),
        MenuItem('Data Import', (By.ID, 'menu_admin_pimCsvImport'), None, DataImportPage),
        MenuItem('Reporting Methods', (By.ID, 'menu_pim_viewReportingMethods'), None, ReportingMethodsPage),
        MenuItem('Termination Reasons', (By.ID, 'menu_pim_viewTerminationReasons'), None, TerminationReasonsPage),
    }
Beispiel #4
0
class AttendanceMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR,
                               "#menu_attendance_Attendance+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Employee Records',
                 (By.ID, 'menu_attendance_viewAttendanceRecord'), None,
                 ViewAttendanceRecordPage),
        MenuItem('Configuration', (By.ID, 'menu_attendance_configure'), None,
                 AttendanceConfigurationPage)
    }
class PurgeRecordsMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR,
                               "#menu_maintenance_PurgeRecords+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Employee Records', (By.ID, 'menu_maintenance_purgeEmployee'),
                 None, PurgeEmployeeRecordsPage),
        MenuItem('Candidate Records',
                 (By.ID, 'menu_maintenance_purgeCandidateData'), None,
                 PurgeCandidateRecordsMPage)
    }
Beispiel #6
0
class OrganizationMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_admin_Organization+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('General Information',
                 (By.ID, 'menu_admin_viewOrganizationGeneralInformation'),
                 None, GeneralInformationPage),
        MenuItem('Locations', (By.ID, 'menu_admin_viewLocations'), None,
                 LocationsPage),
        MenuItem('Structure', (By.ID, 'menu_admin_viewCompanyStructure'), None,
                 OrganizationStructurePage),
    }
Beispiel #7
0
class LeaveConfigureMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_leave_Configure+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Leave Period', (By.ID, 'menu_leave_defineLeavePeriod'), None,
                 LivePeriodPage),
        MenuItem('Leave Types', (By.ID, 'menu_leave_leaveTypeList'), None,
                 LiveTypesPage),
        MenuItem('Work Week', (By.ID, 'menu_leave_defineWorkWeek'), None,
                 WorkWeekPage),
        MenuItem('Holidays', (By.ID, 'menu_leave_viewHolidayList'), None,
                 HolidaysPage),
    }
Beispiel #8
0
class TimeReportsMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_time_Reports+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Project Reports',
                 (By.ID, 'menu_time_displayProjectReportCriteria'), None,
                 ProjectReportsPage),
        MenuItem('Employee Reports',
                 (By.ID, 'menu_time_displayEmployeeReportCriteria'), None,
                 EmployeeReportsPage),
        MenuItem('Attendance Summary',
                 (By.ID, 'menu_time_displayAttendanceSummaryReportCriteria'),
                 None, AttendanceSummaryPage)
    }
Beispiel #9
0
class QualificationsMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR,
                               "#menu_admin_Qualifications+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Skills', (By.ID, 'menu_admin_viewSkills'), None, SkillsPage),
        MenuItem('Education', (By.ID, 'menu_admin_viewEducation'), None,
                 EducationPage),
        MenuItem('Licenses', (By.ID, 'menu_admin_viewLicenses'), None,
                 LicensesPage),
        MenuItem('Languages', (By.ID, 'menu_admin_viewLanguages'), None,
                 LanguagesPage),
        MenuItem('Memberships', (By.ID, 'menu_admin_membership'), None,
                 MembershipsPage)
    }
Beispiel #10
0
class JobMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_admin_Job+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Job Titles', (By.ID, 'menu_admin_viewJobTitleList'), None,
                 JobTitlesPage),
        MenuItem('Pay Grades', (By.ID, 'menu_admin_viewPayGrades'), None,
                 PayGradesPage),
        MenuItem('Employment Status', (By.ID, 'menu_admin_employmentStatus'),
                 None, EmploymentStatusPage),
        MenuItem('Job Categories', (By.ID, 'menu_admin_jobCategory'), None,
                 JobCategoriesPage),
        MenuItem('Work Shifts', (By.ID, 'menu_admin_workShift'), None,
                 WorkShiftsPage)
    }
Beispiel #11
0
class UserManagementMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR,
                               "#menu_admin_UserManagement+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Users', (By.ID, 'menu_admin_viewSystemUsers'), None,
                 UserManagementPage)
    }
Beispiel #12
0
class LeaveReportsMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_leave_Reports+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Leave Entitlements and Usage Report',
                 (By.ID, 'menu_leave_viewLeaveBalanceReport'), None,
                 LeaveEntitlementsAndUsageReportPage)
    }
Beispiel #13
0
class TimesheetsMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_time_Timesheets+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Employee Timesheets',
                 (By.ID, 'menu_time_viewEmployeeTimesheet'), None,
                 TimesheetsPage)
    }
Beispiel #14
0
class AdminConfigurationMenu(BaseMenu):
    _menu_container_locator = (By.CSS_SELECTOR, "#menu_admin_Configuration+ul")
    _page_identifier_element = _menu_container_locator

    menu_items = {
        MenuItem('Email Configuration',
                 (By.ID, 'menu_admin_listMailConfiguration'), None,
                 EmailConfigurationPage),
        MenuItem('Email Subscriptions',
                 (By.ID, 'menu_admin_viewEmailNotification'), None,
                 EmailSubscriptionsPage),
        MenuItem('Localization', (By.ID, 'menu_admin_localization'), None,
                 LocalizationPage),
        MenuItem('Modules', (By.ID, 'menu_admin_viewModules'), None,
                 ModulesPage),
        MenuItem('Social Media Authentication',
                 (By.ID, 'menu_admin_openIdProvider'), None,
                 SocialMediaAuthenticationPage),
        MenuItem('Register OAuth Client',
                 (By.ID, 'menu_admin_registerOAuthClient'), None,
                 RegisterOAuthClientPage),
    }