You can store text or value in Selenium IDE.
- The Command : storeText | storeValue (or storeAttribute if you want to stora an attribute of the element)
- The Target must be a css or an xpath expression which can localize the appropriate element
- The Value is the name of the new local variable in your Selenium IDE script
After using store command you can use your new variable like this: ${yourNewVariable}
For example:
storeAttribute xpath=//div[@id='name-day']@name nameday
echo ${nameday}
You can use while loop and goto function in selenium ide with this addon : https://addons.mozilla.org/en-us/firefox/addon/flow-control/
Some commands:
- gotoif
- while
- gotolabel
Example:
store 1 answers
while storedVars.answers <= 3
echo ${answers}
...
store javascript{storedVars.answers++;}
endWhile