Is there a way to scroll incrementally instead of directly jumping to a specific position using driver.executeScript("scroll(0,1000)")? I attempted the code below without success...
for (var i = 10; i < 2000; i += 50) {
driver.executeScript("scroll(0, " + i + ")");
}
An error stating 'i is not defined' is appearing. Please advise on where I might be making a mistake.