T E S B O

Tesbo

Perform a click on element from list

The list keyword is used to find the multiple elements and perform a click on it.  

Click on a First element from the list #

Syntax :

Step: Click on first element from List @NumberList

Tesbo will find all the elements that match with locator NumberList, then click on the first element from list 

Test: Verify click on first element from List functionality
#All #click
Step: Open URL 'https://www.mathsisfun.com/numbers/number-chart.php'
Step: Click on first element from List @NumberList
Step: pause 5 sec
End

Click on a Last element from the list #

Syntax :

Step: Click on last element from List @NumberList

 Tesbo will find all the elements that match with locator NumberList, then click on the last element 

Test: Verify click on last element from List functionality
#All #click
Step: Open URL 'https://www.mathsisfun.com/numbers/number-chart.php'
Step: Click on last element from List @NumberList
Step: pause 5 sec
End

Click on an element whose text matches with the given string  #

Syntax :

Step: click on "Red" from List @ColorList

Tesbo will find all the elements that match with locator ColorList, then get the text of element, match with the Text “Red” and click on it. 

Test: Verify click on particular element text from List functionality
#All #click12
Step: Open URL 'https://www.mathsisfun.com/numbers/number-chart.php'
Step: click on "Red" from List @ColorList
Step: pause 5 sec
End

Select the element by index and perform a click on it. #

Step: click on <15> from List @NumberList

 Tesbo will find all the elements that match with locator NumberList, then take the element from the third Index and click on it. 

Test: Verify click on particular element number from List functionality
#All #click
Step: Open URL 'https://www.mathsisfun.com/numbers/number-chart.php'
Step: click on <15> from List @NumberList
Step: pause 5 sec
End

Powered by BetterDocs

Leave a Comment