This is a language extension for Selenium IDE that provides javascript-like conditionals, looping, callable functions, error catching, and JSON/XML driven parametrization.
Features of SelBlocks:
-> Provides the following control structures: if/elseIf/else, try/catch/finally/throw, for/foreach/while, continue/break, call/function/return, loadXmlVars/loadJsonVars, forXml/forJson, exitTest
-> Function and loop parameters use regular Selenium variables that are local to the block, overriding variables of the same name, and that are restored when the block exits.
-> Command parameters are JavaScript expressions that are evaluated with Selenium variables in scope, which can therefore be referenced by their simple names, e.g.: i+1
-> Variables can be configured via external XML and/or JSON files.
-> A function definition can appear anywhere, (they are skipped over in normal execution flow).
-> Functions can be called recursively.