Skip to main content

GetPickerValues

Description​

Get all values from picker element.

info

Supported only in iOS

Parameters​

NameValueDescription
ZoneString with one of the following values



* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
PickerElementStringSelect the picker Element
IndexIntegerElement index.
ValueStringThe value to be set
WheelIndexIndexWheel index at the selected picker

Usage​

Command can be used to get all the values of a picker element.

info

Replace <server> with the appropriate URL.

Example

In the example below, An App UICatalog's picker values are retrieved by executing the command.

**

**

GetPickerValues

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
// Getting the picker values for the XPATH, //*[@class='UIAPicker']
String vals = seetest.getPickerValues("NATIVE", "xpath=//*[@class='UIAPicker']", 0, 0);