Example #1
0
        public void ThenISeeExpandedPermissionsGroup(string category)
        {
            bool     isCategoryExpanded  = false;
            IControl expandCollapseImage = DL_PermissionsPage.GetExpandCollapseImage_CategoryRow(category, out isCategoryExpanded);

            if (!isCategoryExpanded)
            {
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }
 static bool ExpandCategory(String currentCategory, String category)
 {
     if (!currentCategory.Equals(category, StringComparison.InvariantCultureIgnoreCase))
     {
         bool     isCategoryExpanded  = false;
         IControl expandCollapseImage = DL_PermissionsPage.GetExpandCollapseImage_CategoryRow(category, out isCategoryExpanded);
         if (!isCategoryExpanded)
         {
             return(Control_ActionUtilities.Click(expandCollapseImage, "Unable to expand permission group " + category.ToUpper()));
         }
     }
     return(false);
 }
 public static bool ExpandCategory(string category)
 {
     try
     {
         bool     isCategoryExpanded  = false;
         IControl expandCollapseImage = DL_PermissionsPage.GetExpandCollapseImage_CategoryRow(category, out isCategoryExpanded);
         if (!isCategoryExpanded)
         {
             return(Control_ActionUtilities.Click(expandCollapseImage, "Unable to expand permission group " + category.ToUpper()));
         }
         return(true);
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }