public void ClickOnChangeStatusBtnWorkerProfile() { 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.ClickOnChangeStatusBtn(); Factory.AssertIsTrue(WorkerChangeStatusWindow.VerifyChangeStatusWindowDisplayed(), "Change Status Window Not Displayed"); WorkerChangeStatusWindow.ClickOnCancelBtnStatusWindow(); Playback.Wait(2000); Factory.AssertIsTrue(WorkerSummaryWindow.VerifyAlertPopUpDisplayed(), "Alert Pop Up Not Displayed"); WorkerSummaryWindow.CloseAlertPopUp(); WorkerSummaryWindow.ClickOnCloseBtn(); } Factory.AssertIsTrue(worker, "Requested Worker not found"); } Cleanup(); }