Beispiel #1
0
 public static void ScrollDownToView(int value)
 {
     if (value <= 0)
     {
         throw new ArgumentOutOfRangeException(nameof(value));
     }
     ((IJavaScriptExecutor)Browser.WebDriver).ExecuteScript($"window.scrollTo(0, document.body.scrollHeight - {value})");
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }
 public static void OpenFilteringDropdownForSpecifiedHeaderColumn(IWebElement columnDropdown)
 {
     columnDropdown.Click();
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }
 public static void ClearPreviousFilteringCriteria()
 {
     Browser.WebDriver.FindElement(By.CssSelector("li form div button:nth-child(2)")).Click();
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }
 public static void SelectFilterButton()
 {
     Browser.WebDriver.FindElement(By.ClassName("k-primary")).Click();
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }
 public static void GoToLastPageOfGrid(this IWebElement grid)
 {
     grid.FindElement(By.CssSelector(".k-pager-last")).Click();
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }
 public static void GoToNextPage(this IWebElement grid)
 {
     grid.FindElement(By.LinkText("Go to the next page")).Click();
     WaitHelpers.WaitUntilNoPendingAjaxRequests();
 }