I tried
((JavascriptExecutor) driver).executeScript("windows.scrollBy(0,500)");
And
((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();", element);
And
WebElement lastElement = driver.findElement(By.xpath("value of locator"));
int y = lastElement.getLocation().getY();
JavascriptExecutor js = (JavascriptExecutor)driver;
js.executeScript("window.scrollTo(0,"+y+")");
Thread.sleep(3000);
My window's scroll bar is moving down but I want to scroll my application's scroll bar.
As in the attached image after clicking o settings it is opening further options & I have to scroll to see below options