Set Rating Bar using Appium

Let’s see, How can you Set rating Bar using Appium in Android. In previous tutorials, You have seen, How can you hide the keyboard in Android. Now we will see, How can we Handle the Rating Bar in Andriod Application.


There is star rating bar in many android software applications. Generally, star rating bar is used to rate products i.e Andriod Apps. Mostly you will 5-star rating bars in such Android Applications. We can automate the rating bar in Appium using TouchAction class.


Set Rating Bar using Appium in Android

Let’s take an Example, Where we have 5-Star rating bar and we need to rate it up to 4-star. Let’s try to understand it using this simple example.

In above example, We have implemented the logic to rate the App 4 Star.


If you want to increase or decrease star rating then you can set the value of Tapat as per your requirement as described in test comment.


This is the way to handle star rating bar in Android Automation Script using Appium.

0 Comment

Leave a Reply