public void EnterEndDateMechanicLeaveDetails(int index, string selectMonth, string selectYear, string selectdate)
 {
     CustomWait.WaitFortheLoadingIconDisappear2000();
     EndDate.Click();
     CustomWait.WaitFortheLoadingIconDisappear2000();
     CustomLib.HandleCalendar(index, selectMonth, selectYear, selectdate);
     CustomWait.WaitFortheLoadingIconDisappear2000();
     saveMechanicLeaveBtn.Click();
     CustomWait.WaitFortheLoadingIconDisappear10000();
 }
 public void EnterStartDateMechanicLeaveDetails(int index, string selectMonth, string selectYear, string selectdate)
 {
     //CustomLib.FluentWaitbyXPath(Drive.driver, "AddMechanicLeaves");
     //AddMechanicLeaves.Click();
     if (DateRange.Selected)
     {
         CustomWait.WaitFortheLoadingIconDisappear2000();
         PassComment.SendKeys("Today I am Not feeling Well.");
         StartDate.Click();
         CustomWait.WaitFortheLoadingIconDisappear2000();
         CustomLib.HandleCalendar(index, selectMonth, selectYear, selectdate);
         CustomWait.WaitFortheLoadingIconDisappear5000();
     }
 }