public static Boolean VerifyExpandCollapseForAllSectionsIsExpanded()
 {
     try
     {
         int count = 0;
         foreach (IControl c in LabMappingsPage.AllDropdowns)
         {
             if (count > 0 && !Control_PropertyUtilities.IsControlDisplayed(c))
             {
                 return(false);
             }
             count++;
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(true);
 }
        public static Boolean VerifyExpandCollapsePresentForEachSection()
        {
            try
            {
                List <IControl> expandCollapse = LabMappingsPage.ExpandCollapseButtonForAllSections();

                for (int i = 5; i < 10; i++)
                {
                    if (!Control_PropertyUtilities.IsControlDisplayed(expandCollapse[i]))
                    {
                        return(false);
                    }
                }
            }
            catch (Exception e)
            {
                new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
            }
            return(true);
        }