HomeSelenium

New Selenium IDE – Using ‘times’ command

New Selenium IDE – Using ‘times’ command

Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.

times is one of the commands in Selenium IDE and we can end it with end command.

times is the command in Selenium IDE used for executing a set of statements the required number of times.

For example, if you want to execute the same statement 5 times, we need to provide the statement once and execute it 5 times using times command in Selenium IDE.

In this article, I will execute a statement which prints ‘QAFox.com’ 5 times using times command.

Let’s get started.

New Selenium IDE – Using ‘times’ command

Follow the below steps for practicing times command in Selenium IDE along with me:

1) Let’s create a test in Selenium IDE for print the text ‘QAFox.com’ 5 times using the below Selenium IDE code:

Command Target Value
open http://omayo.blogspot.com/
times 5
echo QAFox.com
end

After incorporating the commands in the above table, our Selenium IDE should look like below:

times Selenium IDE - typing

2) Click on ‘Run current test’ option and observe that the test got successfully executed and the text ‘QAFox.com’ inside the times block got printed 5 times in the Log tab as shown below:

times Selenium IDE - executed

Here concludes the practical demonstration of times command in Selenium IDE.

In the next article, I will practically demonstrate another Selenium IDE command.

Next Steps:

  • > Check complete Selenium Tutorial Contents here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning 🙂

About Me > Arun Motoori

On a mission to contribute to the Software Testing Community in all possible ways.

Refer the article New Selenium IDE – Commands (Selenese), for the complete list of Selenium IDE commands and their practical demonstrations.

If you like this article, share it on LinkedIn using the below button:

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *