Tuesday 19 June 2012

How to use GOtoIf and while in selenium IDE

Selenium IDE has some programing capacity upto some extend. There we can use If conditions and loop statements.

How to use GOtoIf and while


store
1
looptimes



while
storedVars.looptimes < 11




store
javascript{storedVars.looptimes++;}




gotoIf
javascript{(storedVars.looptimes==5);}
lbltest



open
http://www.yahoo.com




echo
${looptimes}




endWhile





label
lbltest



If your selenium IDE does not support while or if you don't have while js in your extension Please download below js and add in your extension.


Click here to download while.js