I invested a lot of effort into this extension, but got less than zero support from the original author. Subsequently, I ran across SEL-Blocks, a better extension in every way.
Don't waste your time with this extension. Instead go here : https://github.com/martinhbramwell/SEL-Blocks
You'll be glad you did.
This is a plugin for Selenium IDE incorporating the flow control extension available at http://wiki.openqa.org/display/SEL/flowControl and http://51elliot.blogspot.com/2008/02/selenium-ide-goto.html
Darren DeRidder now calls the script sideflow.js and publishes it here: https://github.com/darrenderidder/sideflow Hasan Bramwell forked it, added ForEach looping and tested it under FireFox 8.0. His fork of sideflow.js is here: https://github.com/martinhbramwell/sideflow
Have a look here: https://github.com/martinhbramwell/sideflow
1 Run build.bat (or build.sh on Linux). 2 Open flowcontrol.xpi in Firefox.
To build on Windows you will need 7-Zip and Robocopy
- 7-Zip - http://www.7-zip.org/
- Robocopy - http://en.wikipedia.org/wiki/Robocopy
- Andrey Yegorov - Created the original flow control extension
- Darren DeRidder - Modified the original extension for Selenium IDE
- Adam Goucher - Author of the Selenium IDE plugin API
- Dave Hunt - All I did was turn the extension into a plugin
- Martin "Hasan" Bramwell - Added For/Each looping (as seen in Java)
===
Let's you do goto and while loops in the Selenium IDE Firefox add-on.
- Get Selenium IDE for Firefox from http://seleniumhq.org
- Launch Selenium IDE from Firefox and open the options menu
- Add the sideflow.js file to the "Selenium Core extensions (user-extensions.js)" field
- Andrey Yegorov
- Darren DeRidder
- Install and usage information Blog
- Selenium HQ SeleniumHQ
With this enhancement you can now perform For Each loops on a previously stored collection.
You should have no difficulty adapting to your needs the example in ./demos/testForEach.html
The steps are :
|addCollection | aSuitableCollectionName | | |addToCollection | aSuitableCollectionName | aValue | |addToCollection | aSuitableCollectionName | aDifferentValue | |addToCollection | aSuitableCollectionName | anotherValue | |storeFor | aSuitableCollectionName | aSuitableTemporaryVariableName | |echo | ${aSuitableTemporaryVariableName} | | |endFor | | |
- addCollection - instantiate a collection
- addToCollection - adds a value to the indicated collection (JSON objects are ok)
- storeFor - retrieves the next available value from your collection and stuffs it into the indicated temporary variable. If there's no value available it jumps to the endFor.
- endFor - marks the end of the execution block
- Martin "Hasan" Bramwell | http://openerp24hrs.blogspot.com/ |