I tried almost all the possible ways to scroll but nothing happens. the scrolling is simply skipping without any error.
I tried the following
IJavascriptExcutor js = (IJavascriptExcutor)driver;
js.ExecuteScript("window.scrollTo(0, document.body.scrollHeight)");
js.ExecuteScript("window.scrollBy(0,250)", "");
IWebElement element = new WebDriverWait(driver, TimeSpan.FromSeconds(20)).Until(ExpectedConditions.ElementIsVisible(By.CssSelector("css_element"))); js.ExecuteScript("arguments[0].scrollIntoView(true);",element);
int x= 0; int y=200 js.ExecuteScript(String.Format("window.scrollBy({0},{1})", x,y);