How to use "while" and "endWhile" command in selenium IDE
"while" command is not supported by default in selenium IDE. Selenium IDE also not supporting any conditional(if condition) commands by default. To get support of "while" loop as a Advanced Selenium IDE feature, You need to attach user extension with selenium IDE. You can read my post about how to attach user extension with selenium IDE.
I shared user extension file for "while" loop command. Click here to download selenium IDE user extension file for "while" and "endWhile" Commands and save it in your hard drive(only in .js format)with name "user-extension.js" and attach it with selenium IDE as shown in bellow figure.
After attaching selenium IDE user extension file, You need to restart your selenium IDE window to get its effect. Once you restart your selenium IDE, you are ready to use "while" and "endWhile" command with selenium IDE. Copy-paste bellow given example script for "while" command in your selenium IDE and run it to view how it works.
|while||storedVars.MyVar <= 3|
(Note : You can look at this selenium IDE tutorial posts to be master in just 7 days).