I need to automate scrolling down using the scroll bar. This is what the scroll bar looks like. This is the html code of the scroll bar:
<div class="z-biglistbox-wscroll-vertical">
<div class="z-biglistbox-wscroll-drag" style="top: 132.253px;">
<div class="z-biglistbox-wscroll-home" title="Home"></div>
<div class="z-biglistbox-wscroll-up" title="Previous"></div>
<div class="z-biglistbox-wscroll-down" title="Next"></div>
<div class="z-biglistbox-wscroll-end" title="End"></div>
</div>
</div>
I think of maybe clicking the "Next" button of the scroll bar but my code's not working. I did something like the following:
((JavascriptExecutor)driver).executeScript("arguments[0].click();", scroll_down);
.
WebElement scroll_down = driver.findElement(By.cssSelector(".z-biglistbox-wscroll-down"));
scroll_down.click();
Neither of the two worked. Can anyone give me an idea how to do it?
UPDATE: This problem was already solved. Refer to alecxe's answer in this link for the solution that worked for me.