Times (number of loops) - Selenium IDE command

The times command is used to create a loop that executes the proceeding commands n number of times. The input is the number of attempts a times control flow loop will execute the commands within its block.

The ${!times} internal variable has the number of the current loop. This is similar to the ${!loop} variable that is used for external loops triggered by the LOOP button.

This command will be available with the RPA March 2020 update (V5.5.x)

Times Example

The example macro loops 5 times and prints the current value.

Command Target Pattern/Text
open https://ui.vision/
times 5
echo This is loop number {!times}
end

Works in

UI.Vision RPA for Chrome Selenium IDE, UI.Vision RPA for Firefox Selenium IDE, Firefox IDE Classic

Related Demo Macros

DemoGotoIf, DemocsvSave

The ready-to-import-and-run source code of all demo macros can be found in the Github repository testmacros folder.

See also

while, forEach, do...repeatIf, gotoIf, gotoLabel, Label, !statusOK, !errorIgnore, Web Automation Extension User Manual, Selenium IDE commands, Selenium IDE Flow Control (SelBlocks),

Anything wrong or missing on this page? Suggestions?

...then please contact us.

<em>UI.Vision RPA</em> Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the UI Vision RPA software newsletter . We'll send you updates on new releases that we're working on.