I'm encountering a challenge with nested scroll bars on Firefox while using Selenium Webdriver. My goal is to automate the functionality where scrolling down within a frame enables the Next button. I have attempted to use javascript executor, but it only scrolls the main page rather than inside the specific div. Additionally, my efforts with Actions have not been successful as seen in the code snippet below:
WebElement snapshot_list = driver.findElement(By.id("snapshots-list"));
Actions scrolldown = new Actions(driver);
scrolldown.moveToElement(snapshot_list).build().perform();
snapshot_list.click();
scrolldown.keyDown(Keys.CONTROL).sendKeys(Keys.END).perform();
Although the TestNG reports show the test case passing without errors, the scrolldown.keyDown part seems to be skipped entirely. I would greatly appreciate any guidance or assistance in identifying what might be going wrong. Thank you.