Page tree
Skip to end of metadata
Go to start of metadata

Description

Get all values from picker element.

Supported only in iOS

Parameters

Name

Value

Description

Zone 

String 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.
Value

String

The value to be set
WheelIndexIndexWheel index at the selected picker

Usage

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

Set Experitest Url

Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.

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("<EXPERITEST_URL>"), 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);






  • No labels