Pages

Appium - Android App Spinner Value Selection Example

Spinner Is a drop down In android software native app where you can select Item from the drop down list as per your requirement. Spinner can have scroll If list Is large and also It can have scroll If there are only few Items In drop down list. Appium software automation tool support scrollTo function to scroll at your desired Item. In this example, We will learn how to scroll down In spinner list Items of android software app and then how to select Item from spinner list using appium software automation test.

App Used For Android Spinner Test

We have to use API Demos android software app for this test and you can downloading API Demos android software app from HERE. You need to Install API Demos app In your android device.

Aim To Active In Spinner Test

We wants to scroll down In Planet spinner list and then select Item "Pluto" from the list as shown In bellow Image. Earlier we already learnt how to scroll down using scrollTo() method In THIS EXAMPLE. We will use same method here to scroll down In spinner list.

Manually you can navigate to above screen from API Demos software app -> Tap on Views -> And then tap on Spinner.

Create And Run Appium Test For Spinner

Create new test file Spinner.java under Android package of project In eclipse and write bellow given android appium test script In It.