示例#1
0
        public void ClickOnColumnHeader(int columnIndex)
        {
            var selector = $"th:nth-child({columnIndex})";
            var column   = UsersTable.FindElement(By.CssSelector(selector));

            column.Click();
            System.Threading.Thread.Sleep(1000);
        }
示例#2
0
        public SortOrder GetSortOrder(int columnIndex)
        {
            var selector   = $"th:nth-child({columnIndex})";
            var column     = UsersTable.FindElement(By.CssSelector(selector));
            var classNames = column.GetAttribute("class");

            if (classNames.Contains("md-sorted-desc"))
            {
                return(SortOrder.Desc);
            }
            else if (classNames.Contains("md-sorted"))
            {
                return(SortOrder.Asc);
            }
            return(SortOrder.None);
        }