I want to scroll an android mobile app page from top to bottom.
I have tried with below defined coding for scroll and click for specific web element using text. It works fine.
// method 1 driver.scrollTo("R"); // method 2 driver.ScrollToExact("Top");
- But I need to scroll an full article page from top to bottom, without using above scroll() methods. I have tried with below coding, but scroll action doesn't happens for me.
// scroll to bottom of an page
((JavascriptExecutor) driver) .executeScript("window.scrollTo(0, document.body.scrollHeight)");
- How can I scroll an android app page from top to bottom using appium driver?