Get all options from Android Spinner using Appium -


i trying pull options off android spinner, using appium. selenium, can use select object , getoptions (i forget exact syntax). need text options in spinner.

considering spinner options accessible through appium. getting values of options on spinner shall work follows :

list<webelement> spinnerlist = driver.findelements(getby("identifier")); //where identifier vary on how can access elements  string spinnerlistelementtext[index]; //e.g. store text of options (int index = 0; index < spinnerlist.size(); index++) {         string spinnerlistelementtext[index] = spinnerlist.get(index).gettext(); } 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -