Looking to scroll a section of a page within another page. Check out the screenshot below:
https://i.sstatic.net/qHH9x.png
I attempted to achieve this with the following code snippet:
JavascriptExecutor js1 = (JavascriptExecutor) driver;
js1.executeScript("window.scrollBy(0,1000)");
However, the code ends up scrolling the entire page rather than the specific window inside the page. How can I specify that I only want to scroll this particular window?
Thank you in advance!