Example #1
0
 public void SetElementsPerPage(int elementPerPage)
 {
     searchControl.WaitSearchCompleted(() =>
     {
         ElementsPerPageElement.Find().SelectElement().SelectByValue(elementPerPage.ToString());
     });
 }
Example #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());
 }
Example #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());
        }