Ejemplo n.º 1
0
        public void RejectWorker()
        {
            try
            {
                Initialize();

                var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);
                foreach (var datarow in datarows.Where(x => x.ItemArray[1].ToString() == "Qualified"))
                {
                    Playback.Wait(1000);
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnNextBtnQualified();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnContinueBtn();
                    WorkerAddressWindow.EnterAddressData(datarow);
                    WorkerAddressWindow.ClickOnRejectBtn();
                    WorkerIdentityWindow.ClickOnOkBtnPopUp();
                    Factory.AssertIsTrue(WorkerAddressWindow.VerifyRejectPopUpDisplayed(), "Reject PopUp Not Displayed");
                    WorkerAddressWindow.EnterDataInRejectPopUp();
                    WorkerAddressWindow.ClickOnDoneBtnReject();
                }
            }
            finally
            {
                Cleanup();
            }
        }
Ejemplo n.º 2
0
        public void RejectWorkerConfirmationScreen()
        {
            try
            {
                Initialize();

                var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.CreateWorker);
                foreach (var datarow in datarows.Where(v => v.ItemArray[1].ToString().Equals("Qualified")))
                {
                    Playback.Wait(1000);
                    WorkerIdentityWindow.ClickOnCreateApplicant();
                    WorkerIdentityWindow.EnterApplicantData(datarow);
                    WorkerIdentityWindow.ClickOnContinueBtn();
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnNextBtnQualified();
                    WorkerAlreadyExistWindow.ClickOnContinueBtn();
                    WorkerCompleteBehavioralSurveryWindow.ClickOnGetResultsBtn();
                    Playback.Wait(5000);
                    WorkerReveiwApplicantBehavioralSurveyResultsWindow.ClickOnContinueBtn();
                    WorkerAddressWindow.EnterAddressData(datarow);
                    WorkerAddressWindow.ClickOnContinueBtn();
                    WorkerGeoCodeWindow.ClickOnOkBtn();
                    WorkerVertexGeoCodeWindow.ClickOnOkBtn();
                    Playback.Wait(2000);
                    WorkerPhoneWindow.EnterPhoneData(datarow);
                    WorkerPhoneWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.EnterVerificationData(datarow);
                    WorkerVerficationWindow.ClickOnContinueBtn();
                    WorkerVerficationWindow.ClickOnOkBtnVerification();
                    WorkerWithholdings.EnterDataInWithholdings(datarow);
                    WorkerWithholdings.ClickOnContinueBtn();
                    WorkerJobSkillsWindow.ClickonAddOrUpdateBtn();
                    WorkerJobSkillsWindow.EnterDataInAddSkills(datarow);
                    WorkerJobSkillsWindow.EnterLicenseData(datarow);
                    WorkerJobSkillsWindow.ClickonContinueBtn();
                    Playback.Wait(2000);
                    WorkerConfirmApplicantElgibiltyWindow.ClickOnNoBtn();
                    Factory.AssertIsTrue(WorkerAddressWindow.VerifyRejectPopUpDisplayed(), "Reject PopUp Not Displayed");
                    WorkerAddressWindow.EnterDataInRejectPopUp();
                    WorkerAddressWindow.ClickOnDoneBtnReject();
                }
            }
            finally
            {
                Cleanup();
            }
        }