Example #1
0
        public void ClickOnPrintReportBtnWorkerProfile()
        {
            Initialize();

            LandingPage.SelectFromToolbar("Workers");
            var datarows = ExcelReader.ImportSpreadsheet(ExcelFileNames.WorkerSkills);

            foreach (var datarow in datarows)
            {
                var worker = WorkerSummaryWindow.SelectWorkerFromTable(datarow.ItemArray[17].ToString());
                if (worker)
                {
                    Playback.Wait(2000);
                    Factory.AssertIsTrue(WorkerSurveyWindow.VerifyWorkerProfileWindowDisplayed(),
                                         "Worker Summary Tab not Displayed");
                    WorkerSummaryWindow.ClickOnPrintReportBtn();
                    Playback.Wait(2000);
                    WorkerSummaryWindow.ClosePrintWindow();
                    Playback.Wait(2000);
                    WorkerSummaryWindow.ClickOnCloseBtn();
                }
                Factory.AssertIsTrue(worker, "Requested Worker not found");
            }

            Cleanup();
        }