im currently writing an e2e script however, im having issues accessing an element when the a div overflows and scrollbar within the div is being activated.
Inside the form, i need to access the scroll down inside the div of the request travel form.
I tried using:
browser.executeScript("window.scrollTo(0,10000);").then(callback);
However, the scrollbar that it access is the browser itself not the div i intended to scroll down.
Any leads or suggestion is greatly appreciate.
Thanks!
