private static IWebElement GetGridElement(string locator, int row, int col)
        {
            var xpath = GetTableXpath(locator, row, col);

            if (GenericHelper.IsElemetPresent(By.XPath(xpath + "//a")))
            {
                return(ObjectRepository.Driver.FindElement(By.XPath(xpath + "//a")));
            }
            else if (GenericHelper.IsElemetPresent(By.XPath(xpath + "//input")))
            {
                return(ObjectRepository.Driver.FindElement(By.XPath(xpath + "//input")));
            }
            else
            {
                return(ObjectRepository.Driver.FindElement(By.XPath(xpath)));
            }
        }
        public static IList <string> GetAllValues(string @locator)
        {
            List <string> list = new List <string>();

            var row = 1;
            var col = 1;

            while (GenericHelper.IsElemetPresent(By.XPath(GetTableXpath(locator, row, col))))
            {
                while (GenericHelper.IsElemetPresent(By.XPath(GetTableXpath(locator, row, col))))
                {
                    list.Add(ObjectRepository.Driver.FindElement(By.XPath(GetTableXpath(locator, row, col))).Text);
                    col++;
                }
                row++;
                col = 1;
            }
            return(list);
        }