Description
Select an element from the Object Repository in a list (first make the element visible) Equivalent command to elementListSelect command.
Note: This command will work only on instrumented applications
Parameters
Name | Value | Description |
---|---|---|
List Zone Name | String with available zones
| Zones which define the way the element will be identified. |
List locator | String | A String identifier of List locator |
List Zone Name | String with available zones
| Zones which define the way the element will be identified. |
Element locator | String | A String identifier of Element locator |
Index | Integer | Element Index |
Click | Boolean | If true then click |
Usage
Uses zones to identify the list Locator and the element Locator
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
Image and code below displays how this command can be used.
ElementListPick
DesiredCapabilities dc = new DesiredCapabilities(); driver = new AndroidDriver(new URL("<EXPERITEST_URL>"), dc); seetest = new SeeTestClient(driver); dc.setCapability(MobileCapabilityType.UDID, "<deviceid>"); ... ... // seetest.elementListPick("NATIVE", "id=countryList", "NATIVE", "text=United Kingdom", 0, true);