How to Scroll Up and Down in Appium
By Bhau Automation • Mobile Automation Tutorial
🎯 What You Will Learn
- How to scroll up and down in Appium
- Scroll using AndroidDriver
- Practical mobile automation example
- Real-time Appium scrolling techniques
📌 What is Scrolling in Appium?
Scrolling is one of the most important actions in mobile automation. It helps to find elements that are not visible on the screen.
🔥 Methods to Scroll in Appium
- Using UiScrollable (Android)
- Using TouchAction / W3C Actions
- Using mobile:scroll command
💻 Java Code Example (Scroll Down)
driver.findElement(AppiumBy.androidUIAutomator(
"new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().text("Settings"));"));
💻 Scroll Using Coordinates
TouchAction action = new TouchAction(driver);
action.press(PointOption.point(500,1500))
.waitAction(WaitOptions.waitOptions(Duration.ofSeconds(1)))
.moveTo(PointOption.point(500,500))
.release()
.perform();
🎯 Real Use Cases
- Scrolling to find hidden elements
- Testing long lists and feeds
- E-commerce app scrolling validation
- Dynamic content testing
❓ Interview Questions
Q: How do you scroll in Appium?
A: Using UiScrollable, TouchAction, or W3C Actions.
Q: Why scrolling is important?
A: To access off-screen elements.
🎥 Watch Full Tutorial
🚀 Key Takeaways
- Scrolling is essential in mobile automation
- UiScrollable is best for Android
- Touch actions provide flexible control
- Helps automate real-world scenarios
🚀 Created with ❤️ by Bhau Automation