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
Post a Comment