/// <summary>
        /// Sets the Rows List
        /// </summary>
        public override void SetRowLists()
        {
            base.SetRowLists();
            int rowIndex = 0;

            foreach (var webElement in WebElementRows)
            {
                GridRowType rowType  = GetGridRowType(rowIndex);
                var         lineItem = new TestCentralHomeRow(gridCssSelector, webElement, rowIndex, rowType, ColumnList, ControlPrefix);
                RowList.Add(lineItem);
                rowIndex++;
            }
        }
        /// <summary>
        /// gets a list of rows containing the text to find from the row list
        /// </summary>
        /// <param name="columnName">the column name</param>
        /// <param name="textToFind">the text to find</param>
        /// <returns>list of GridRow</returns>
        public new List <TestCentralHomeRow> GetsRowsContainingTextToFindFromList(string columnName, string textToFind)
        {
            if (RowList.Count == 0)
            {
                Assert.Fail("No items were found in the search results column list.");
                return(null);
            }

            else
            {
                List <TestCentralHomeRow> foundRowList = new List <TestCentralHomeRow>();
                string text  = null;
                int    index = 0;
                foreach (var row in RowList)
                {
                    TestCentralHomeRow testCentralRow = (TestCentralHomeRow)row;

                    if (testCentralRow.Type != GridRowType.Header && testCentralRow.Type != GridRowType.Pagination)
                    {
                        //get the text by column name
                        if (columnName.Equals(TestCentralHomeColumnNames.TestName))
                        {
                            text = testCentralRow.GetTestName();
                        }

                        if (columnName.Equals(TestCentralHomeColumnNames.TestCategory))
                        {
                            text = testCentralRow.GetTestCategory();
                        }

                        if (columnName.Equals(TestCentralHomeColumnNames.Subject))
                        {
                            text = testCentralRow.GetSubject();
                        }

                        if (columnName.Equals(TestCentralHomeColumnNames.GradeLevel))
                        {
                            text = testCentralRow.GetGradeLevel();
                        }

                        if (columnName.Equals(TestCentralHomeColumnNames.TestStage))
                        {
                            text = testCentralRow.GetTestStage();
                        }

                        if (columnName.Equals(TestCentralHomeColumnNames.StartDate))
                        {
                            text = testCentralRow.GetStartDate();
                        }

                        if (columnName.Equals(TestCentralHomeColumnNames.EndDate))
                        {
                            text = testCentralRow.GetEndDate();
                        }

                        //if the text is not null
                        if (text != null)
                        {
                            //if the text contains the text to find
                            if (text.Equals(textToFind))
                            {
                                foundRowList.Add(testCentralRow);
                            }
                        }
                    }
                }

                //may return empty row list if text is not found
                return(foundRowList);
            }
        }