I am currently working on an end-to-end script, but I am running into trouble accessing an element when a div overflows and the scrollbar within the div is activated.
Specifically, within the form, I need to access the scroll down feature inside the div of the request travel form.
https://i.sstatic.net/6Z5Bb.png
I attempted to use the following script:
browser.executeScript("window.scrollTo(0,10000);").then(callback);
However, this code accessed the scrollbar of the browser itself, rather than the specific div I intended to scroll down.
Any guidance or suggestions would be greatly appreciated.
Thank you!