how to select a value from spinner

1,808 views
Skip to first unread message

ANKIT AGARWAL

unread,
Apr 17, 2014, 5:12:38 AM4/17/14
to appium-...@googlegroups.com
In selendroid mode webview shows the dropdown than i am able to select a value 
but in android mode drop work as spinner 
how to select a value from spinner 

shankar garg

unread,
Aug 6, 2014, 8:17:01 AM8/6/14
to appium-...@googlegroups.com
--how to interact with Android Spinner
        //click on the Spinner Element - which has down arrow icon: ( using any locator). i am using the id:
        driver.findElement(By.id("com.example.android.contactmanager:id/contactPhoneTypeSpinner")).click();
        
//wait for the options to come up:
// and click on any of the options by a locator: I am using Name in this case:
        driver.findElement(By.name("Work")).click();

I have used UI Automator to find all details regarding locators and Element types.
Reply all
Reply to author
Forward
0 new messages