The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet.
<div class="slimScrollBar" style="background: none repeat scroll 0% 0% rgb(137, 137, 137); width: 12px; position: absolute; border-radius: 0px; z-index: 99; right: 1px; top: -13px; opacity: 0.6; height: 224.835px; display: block;"/>
I have tried with the following code, but it didn't work out
WebElement scrollArea = driver.findElement(By.cssSelector("div.slimScrollBar"));
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("arguments[0].scrollTop = arguments[1];",scrollArea, 250);
Thread.sleep(1000);
Help is appreciated!