Note: Command will work only after application preparation .
boolean elementListVisible (ListLocator, ElementLocator, Index)
|
|
|
|
Matching command to elementListSelect . Will make element on a list visible
ListLocator: List locator
ElementLocator: Element locator
Note: This variable does not support XPath queries
Index: Element index
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:
client.elementListVisible("id=countryList", "text=United Kingdom", 0);client.ElementListVisible("id=countryList", "text=United Kingdom", 0);client.ElementListVisible ( "id=countryList", "text=United Kingdom", 0 )self.client.elementListVisible("id=countryList", "text=United Kingdom", 0)$client->elementListVisible("id=countryList", "text=United Kingdom", 0);