attached zip file contains required js code (working with selenium 0.6) + tests/examples.
Separate js files are attached for selenium versions > 0.6
Examples of implemented commands:
- a label to jump to
|gotoIf||/corrrect caption/i.test( storedVars.pagetext )||testlabel1|
this command is dropped in extension for Selenium Core v.0.8+
Jump if following command passed
|while||storedVars.loop2 < 2|
Q: Can the flowControl extension be used in Selenium IDE?
A: according to the following thread it can: http://clearspace.openqa.org/message/20977#20977
however, I do not use S-IDE and therefore will recommend to ask guys on corresponding (S-IDE) forum
Q: I am using this extension along with 'include' extension and getting error like "'While' is not found"". What do I do?
A: add following code at the end of IncludeCommand.prototype.doInclude function. (as per http://forums.openqa.org/thread.jspa?threadID=10163 )
NOTE:This answer refers to the IncludeCommand.prototype.doInclude function, which did not work for me. Farther down in this forum there's a reference by Jerry Qianto putting this code in the Selenium.prototype.doInclude function, which did work for me. In addtion, since I was using IDE, changed the code to:
You will also need to add this at the end of doEnd$Template$ so that goto's after includes to work.