Пример #1
0
        public static bool ClickOnColumnHeader(String columnName)
        {
            IControl columnNameLink = WebTableUtilities.GetColumnHeader(DL_LabManagementPage.LabsGridTitleRow, columnName, TableColumnContentType.Link);

            if (columnNameLink != null)
            {
                return(Control_ActionUtilities.Click(columnNameLink, String.Empty));
            }
            return(false);
        }
        public static bool ClickOnColumnHeader(String columnName, int occurence)
        {
            IControl columnNameLink = WebTableUtilities.GetColumnHeader(DL_Lab_MRR_Table.MrrTableGridTitleSubHeading, columnName, TableColumnContentType.Text, occurence);

            if (columnNameLink != null)
            {
                return(Control_ActionUtilities.Click(columnNameLink, String.Empty));
            }
            return(false);
        }
 public static IControl GetColumnHeaderTitle_SecondRow(String columnName)
 {
     if (!String.IsNullOrEmpty(columnName))
     {
         //Change title row
         IControl headerCell = WebTableUtilities.GetColumnHeader(MrrTableGridTitleRow, columnName, TableColumnContentType.Text,1);
         if (!Control_PropertyUtilities.IsControlNull(headerCell))
         {
             return SyncUtilities.FindVisibleElement_Parent(headerCell.WebElement, By.LinkText(columnName));
         }
     }
     return null;
 }
 public static IControl GetFilterCriteriaIcon(string columnName)
 {
     if (columnName.Equals("Start Date"))
     {
         IControl headerCell = WebTableUtilities.GetColumnHeader(MrrTableGridTitleRow, columnName, TableColumnContentType.Text);
         if (!Control_PropertyUtilities.IsControlNull(headerCell))
         {
             return SyncUtilities.FindVisibleElement_Parent(headerCell.WebElement, By.CssSelector("k-grid-filter"));
         }
         
     }
     return null;
 }
        public static IControl GetColumnHeaderTitle_FirstRow(String columnName)
        {
            if (!String.IsNullOrEmpty(columnName))
            {
                if(DL_Lab_MRR_Table.IsInReferenceRangePage())
                {
                    IControl headerCell = WebTableUtilities.GetColumnHeader(MrrTableGridTitleRow, columnName, TableColumnContentType.Text);
                    if (!Control_PropertyUtilities.IsControlNull(headerCell))
                    {
                        return SyncUtilities.FindVisibleElement_Parent(headerCell.WebElement, By.LinkText(columnName));
                    }

                }
                
            }
            return null;
        }
 public static bool AreColumnsAvailable(List <ManageReferenceLabGridColumnName> columns)
 {
     try
     {
         foreach (ManageReferenceLabGridColumnName gridColumnName in columns)
         {
             IControl columnNameLink = WebTableUtilities.GetColumnHeader(DL_LabManagementPage.LabsGridTitleRow, gridColumnName.Name, TableColumnContentType.Link);
             if (Control_PropertyUtilities.IsControlNull(columnNameLink))
             {
                 return(false);
             }
         }
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }
 public static bool AreColumnsAvailableInSubHeadingForCriticalRange(List <MRRTableGridColumnNames> columns)
 {
     try
     {
         foreach (MRRTableGridColumnNames gridColumnName in columns)
         {
             IControl columnNameLink = WebTableUtilities.GetColumnHeader(DL_Lab_MRR_Table.MrrTableGridSubHeadings, gridColumnName.Name, TableColumnContentType.Text, 2);
             if (Control_PropertyUtilities.IsControlNull(columnNameLink))
             {
                 return(false);
             }
         }
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }
 public static bool AreColumnsAvailable(List <MRRTableGridColumnNames> columns)
 {
     try
     {
         foreach (MRRTableGridColumnNames gridColumnName in columns)
         {
             IControl columnHeaderCell = WebTableUtilities.GetColumnHeader(DL_Lab_MRR_Table.MrrTableGridTitleRow, gridColumnName.Name, TableColumnContentType.Text);
             if (Control_PropertyUtilities.IsControlNull(columnHeaderCell))
             {
                 return(false);
             }
         }
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }