Scroll Horizontal Tabs using Appium

Let’s see, How can you scroll Horizontal Tabs using Appium. In previous tutorials, You have seen, How can perform Scroll to specific Text in Android. Now we will see, How can we Scroll Horizontally in Andriod Application using Appium.


In Many Andriod Applications, You needs to scroll tabs horizontally. In many Andriod Apps menu, Tabs are horizontally scrollable & they display when you display horizontally.


Scroll Horizontally using Appium

Here you can use  the driver.swipe() method to swipe Tabs from right to left. Let’s take an example of Scrollable Tabs. In the below-attached image. You can see this menu is horizontally scrollable. This is an India App “Samvaad” , You can download it run your tests over it.

Scroll Horizontal in Appium


Now, let’s see How can you implement it. How can we generate the test Script to scroll horizontal tabs.

In above test script –


  • We have used for loop to continue execution until Tab Browse displays on the screen.

  • If condition Inside for loop will check If Tab Browse Is displayed or not.

  • If tab Browse Is displayed then click on It and break the loop.


This way you can scroll Tabs in the horizontal direction in your Appium Android Test.

0 Comment

Leave a Reply