Skip to main content

SeeTestAutomation- ElementListPick

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

warning

Note: This command will work only on instrumented applications. for more information see application preparation.

boolean ElementListPick (ListZoneName, ListLocator, ElementZoneName, ElementLocator, Index, Click)

Description

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

Parameters

  • ListZoneName: Select the zone from which the List element will be selected (can also be empty)
  • ListLocator: Select the List element (native identification / object name from object repository) (can also be empty)
  • ElementZoneName: Select the zone from which the picked element will be selected
  • ElementLocator: Select the element (native identification / object name from object repository)
  • Index: Element index
  • Click: If TRUE then click

Usage

Command usage: Uses zones to identify the list Locator and the element Locator.

Example scenario: We will use the same example as shown on the elementListSelect command only instead we will choose the option of United Kingdom.

Step 1: Set the commands properties to find the element

  1. List Zone: "Native"
  2. List Locator: "id=countryList"
  3. Element Zone: "Native"
  4. Element Locator: "text=United Kingdom"
  5. Index: 0
  6. Click: true (If 'False', then element will be only made visible)

This will now find 'United Kingdom' and then click on the element to select it.

Code Examples

Java Example

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

C# Example Expand source

client.ElementListPick("NATIVE", "id=countryList", "NATIVE", "text=United Kingdom", 0, true);

VBScript Example Expand source

client.ElementListPick "NATIVE", "id=countryList", "NATIVE", "text=United Kingdom", 0, true
Report

Python Example Expand source

self.client.elementListPick("NATIVE", "id=countryList", "NATIVE", "text=United Kingdom", 0, True)

Perl Example Expand source

$client->elementListPick("NATIVE", "id=countryList", "NATIVE", "text=United Kingdom", 0, 1);