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

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.
ElementStringSelect Element (XPath is supported for the picker identifier)
IndexIntegerPicker Index
WheelIndexIndexWheel 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.

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





  • No labels