Skip to main content

ElementListPick

Description​

Select an element from the Object Repository in a list (first make the element visible) Equivalent command to elementListSelect command.

info

Note: This command will work only on instrumented applications

Parameters​

NameValueDescription
List Zone NameString with available zones



* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
List locatorStringA String identifier of List locator
List Zone NameString with available zones



* NATIVE

* WEB

* TEXT
Zones which define the way the element will be identified.
Element locatorStringA String identifier of Element locator
IndexIntegerElement Index
ClickBooleanIf true then click

Usage​

Uses zones to identify the list Locator and the element Locator

Example

Image and code below displays how this command can be used.

**

**

info

Replace <server> with the appropriate URL.

ElementListPick

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...
//
seetest.elementListPick("NATIVE", "id=countryList", "NATIVE", "text=United Kingdom", 0, true);