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