Showing posts with label storeAllButtons Command. Show all posts
Showing posts with label storeAllButtons Command. Show all posts

All these three commands useful only some time when you have multiple buttons or multiple fields or multiple links on page and you need ids of every element. Let me describe all these commands with example for better understanding.

"storeAllButtons" Command

If you are working on any webpage and you need ids of all available buttons on page then you can use storeAllButtons command. This command will store all buttons ids in given variable.


New Test
Command Target Value
open https://www.google.com
storeAllButtons i
echo ${i}
storeAllFields j
echo ${j}
storeAllLinks k
echo ${k}

In this example, storeAllButtons will store ids of all available buttons on google home page in variable "i". If