I wan to to loop an list element in mobile web page.The home page of an mobile page contains the navigation button.I
will click that button and then I need to loop the element which I want
to click.When I click navigation button, it open the list of elements like sliding window.I want to click the elements which has been in the last index of the of sliding window panel.I wan to scroll the sliding window. How can I make scroll the sliding window?I have tried with below coding to scroll down to the bottom of the page.But, it doesn’t work at all.I am working with mobile app. I am using appium.
// scroll bottom
((JavascriptExecutor) driver)
.executeScript(“window.scrollTo(0, document.body.scrollHeight)”);