/// <summary> /// Clicks on the Programs tab, clcks Actions>Adjust Dates link for the Maintenance Of Certification program, fills in a user-specified start or end date, /// then clicks the Yes button /// </summary> /// <param name="startOrEndDate">"Start" or "End"</param> /// <param name="date">The date to enter</param> internal void AdjustProgramCycleDates(string startOrEndDate, string date) { ClickAndWait(ProgramsTab); IWebElement btn = ElemSet.Grid_HoverButtonOrLinkWithinRow(Browser, ProgramsTabProgramTbl, Bys.ParticipantsPage.ProgramsTabProgramTblBodyRow, "Maintenance of Certification", null, "Actions", "span"); Thread.Sleep(0500); IWebElement btnParent = XpathUtils.GetNthParentElem(btn, 3); ElemSet.Grid_ClickMenuItemInsideDropdown(Browser, btnParent, "Adjust Dates"); Browser.WaitForElement(Bys.ParticipantsPage.ProgramsTabRecognitionFormStartDtTxt, ElementCriteria.IsVisible); if (startOrEndDate == "Start") { ProgramsTabRecognitionFormStartDtTxt.Clear(); ProgramsTabRecognitionFormStartDtTxt.SendKeys(date); } else { ProgramsTabRecognitionFormEndDtTxt.Clear(); ProgramsTabRecognitionFormEndDtTxt.SendKeys(date); } ClickAndWait(ProgramsTabRecognitionFormYesBtn); }