SeeTestAutomation- ElementListVisible
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 .
Note: This command will work only on instrumented applications. for more information see application preparation.
boolean elementListVisible (ListLocator, ElementLocator, Index)
Description
Matching command to elementListSelect. Will make element on a list visible
Parameters
-
ListLocator: List locator
-
ElementLocator: Element locator
infoNote: This variable does not support XPath queries
-
Index: Element index
Usage
Command Usage: This is actually elementListSelect command with click parameter of false.
Scenario: In the following example we will use the EriBank application to select an element from the country list.
Step 1: Login to the EriBank application.
Step 2: Click the Make Payment button.
Step 3: Click Select button.
Step 4: See elementListSelect example on how to get the list locator Native properties and the element locator Native properties (The option you want to pick on the list).
In this example we would want to make the United Kingdom option
Step 5: Set the commands properties to find the element
- List Locator: "id=countryList"
- Element Locator: "text=United Kingdom"
- Index: 0
This will now find 'United Kingdom' and make it visible on the screen.
Console log:
**
**
Code Examples
Java Example
client.elementListVisible("id=countryList", "text=United Kingdom", 0);
C# Example Expand source
client.ElementListVisible("id=countryList", "text=United Kingdom", 0);
VBScript Example Expand source
client.ElementListVisible ( "id=countryList", "text=United Kingdom", 0 )
Python Example Expand source
self.client.elementListVisible("id=countryList", "text=United Kingdom", 0)
Perl Example Expand source
$client->elementListVisible("id=countryList", "text=United Kingdom", 0);