GetPickerValues
Description
Get all values from picker element.
info
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. |
PickerElement | String | Select the picker Element |
Index | Integer | Element index. |
Value | String | The value to be set |
WheelIndex | Index | Wheel 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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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);