I am trying to do a mouse scroll in my automation testing (selenium webdriver). My page have loads of data where it take time to load all the datum.
My Requirement: I have a consolidated table with set of datum, where those records are displayed from the set of values that get displayed in the bottom of my page.
I am validating whether both the values are equal, for that I need the page to be completely scrolled to evaluate the same.
I used the below code:
Javascript jse = (Javascript)driver;
jse.executescript("scroll(0, 9000)");
This doesn't help it scrolled only half of the datum so my test get fail.
Suggestions please...