I have this part of the code in my Selenium Webdriver test in java. I use this javascript code to scroll to a particular value i in the page.
((JavascriptExecutor) driver).executeScript("scroll(0,"+i+");");
scroll(0,y) doesn't return a value. Is there any way to know if this script has been executed ?