예제 #1
0
        public void ExecuteReasonRegistrations()
        {
            PortalUtils.Login(driver, "autom", "1234");

            PortalUtils.setUserRole(driver);

            PortalUtils.openPeriodReportMenu(driver);

            PortalUtils.selectReasonRegistrations(driver);

            PortalUtils.runReportButton(driver);

            WizardUtils.setDescription(driver, "Period report - Reason registration automated execution");

            //WizardUtils.setExpiryDate(driver, "31/12/2017");

            WizardUtils.clickNextExpiry(driver);

            WizardUtils.setPeriodStart(driver, "8/1/2016 12:00 AM");

            WizardUtils.setPeriodEnd(driver, "8/5/2016 11:59 PM");

            WizardUtils.setPeriodValuesSwitch(driver);

            WizardUtils.clickNextPeriod(driver);

            WizardUtils.setEmployeeFilter(driver, "Traci Reynolds");

            WizardUtils.setAbsenceReasonFilter(driver, "Work from home");

            WizardUtils.clickRunFilter(driver);

            PortalUtils.waitForTextInReport(driver, "126, Traci Reynolds", 120);

            PortalUtils.saveReport(driver);

            //PortalUtils.clickOKConfirmation(driver);

            PortalUtils.closePeriodReportMenu(driver);

            PortalUtils.Logout(driver);
        }