Issue: I'm trying to scroll in Selenium using moveByOffset(x,y), however, the cursor is not shifting focus to the provided co-ordinates -
JavascriptExecutor js = (JavascriptExecutor) driver;
//Find page height
int pageHeight = ((Number) js.executeScript("return window.innerHeight")).intValue();
//moveByOffset not working
Actions a = new Actions(driver);
a.moveByOffset(500, 300).click().build().perform();
Objective: Find the length of the page and scroll taking screenshots until the end of page is reached. (I've made a separate method for handling screenshots)
This has been discussed in thread - Selenium moveByOffset doesn't do anything, but unsure if it has been resolved. Any help would be appreciated.