SetPickerValues
Description
Designed command to set values for pickers.
Parameters
Name | Value | Description |
---|---|---|
ZoneName | String with one of the following values * NATIVE * WEB * TEXT | 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 |
info
Note: Wheelindex is only relevant for iOS, because a picker in iOS might have multiple wheels.
Usage
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 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("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");
...
...
seetest.setPickerValues("NATIVE", "xpath=//*[@class='UIAPicker']", 0, 1, "down:4");