Description
Designed command to set values for pickers.
Parameters
Name | Value | Description |
---|---|---|
ZoneName | String with one of the following values
| Zones which define the way the element will be identified. |
Element | String | Select Element (XPath is supported for the picker identifier) |
Index | Integer | Picker Index |
WheelIndex | Index | Wheel index at the selected picker |
Value | String | The value to be set |
Note: Wheelindex is only relevant for iOS, because a picker in iOS might have multiple wheels.
Usage
Set Experitest Url
Please make sure you replace <EXPERITEST_URL> with appropriate URL in the code snippet below.
- For SeeTest cloud, EXPERITEST_URL needs to be https://cloud.seetest.io:443/wd/hub
- For Dedicated Experitest Lab, EXPERITEST_URL needs to be your own domain. e.g - https://company.experitest.com
Example
In this example, UICatalog's the picker value is reduced by 4 in Non-Instrumented mode.
SetPickerValues
DesiredCapabilities dc = new DesiredCapabilities(); driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc); seetest = new SeeTestClient(driver); dc.setCapability(MobileCapabilityType.UDID, "<deviceid>"); ... ... seetest.setPickerValues("NATIVE", "xpath=//*[@class='UIAPicker']", 0, 1, "down:4");