I tried scrolling (x, y) using javascript in Internet Explorer 10. But this did not work when I tried to execute the script for the website. What is equivalent to the same in IE? This is part of the Java Selenium test. I need to scroll the page. So, I do this by executing javascript code using a javascript executor.
for(int i=0;i<X;i+=Y)
String cmd = "window.scrollTo(0,"+i+")";
((JavascriptExecutor) driver).executeScript(cmd);
I use the above code in my test to scroll the page. But in Internet Explorer IE10, it does not work.
source
share