示例#1
0
 public void SetElementsPerPage(int elementPerPage)
 {
     searchControl.WaitSearchCompleted(() =>
     {
         ElementsPerPageElement.Find().SelectElement().SelectByValue(elementPerPage.ToString());
     });
 }
示例#2
0
 private void OrderBy(string token, OrderType orderType, bool thenBy = false)
 {
     do
     {
         SearchControl.WaitSearchCompleted(() =>
         {
             if (thenBy)
             {
                 Selenium.Keyboard.PressKey(Keys.Shift);
             }
             HeaderCellElement(token).Find().Click();
             if (thenBy)
             {
                 Selenium.Keyboard.ReleaseKey(Keys.Shift);
             }
         });
     }while (!HeaderCellElement(token).CombineCss(SortSpan(orderType)).IsPresent());
 }
示例#3
0
        private void OrderBy(string token, OrderType orderType, bool thenBy = false)
        {
            do
            {
                SearchControl.WaitSearchCompleted(() =>
                {
                    Actions action = new Actions(Selenium);

                    if (thenBy)
                    {
                        action.KeyDown(Keys.Shift);
                    }
                    HeaderCellElement(token).Find().Click();
                    if (thenBy)
                    {
                        action.KeyUp(Keys.Shift);
                    }
                });
            }while (!HeaderCellElement(token).CombineCss(SortSpan(orderType)).IsPresent());
        }