wItemCount property to get the total number of items in the specified control.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following objects:
The total number of items in the control (including separators).
For Xamarin.Forms Picker: To get individual control item’s text, you can use the
wItem property. For example, you can use the
wItem properties to iterate through the Picker items.
For Xamarin.Forms ListView: To get individual control item’s text, you can use native properties and methods of the control. For example, you can use the
ItemSource property of the ListView control to access its items. To view an example that demonstrates how to do it, see the Known Issues section of the About Xamarin.Forms Application Testing (Legacy) topic.