Skip to main content

SetPickerValues

Description

Designed command to set values for pickers.

Parameters

NameValueDescription
ZoneNameString with one of the following values



* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
ElementStringSelect Element (XPath is supported for the picker identifier)
IndexIntegerPicker Index
WheelIndexIndexWheel index at the selected picker
ValueStringThe 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.

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");