Reputation: 69
3 security questions appearing on the screen like in random order like 1,3,2 or 2.1 and then 3:
Lets say that answer is a last word of each question. How to code it in Selenium ide. I guess to use GoToif, GotoLabel and StoreEval? Also, the answer should be stripped to one last word without space and "?"
Upvotes: 1
Views: 9994
Reputation: 361
You can store text or value in Selenium IDE.
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:
Example:
store 1 answers
while storedVars.answers <= 3
echo ${answers}
...
store javascript{storedVars.answers++;}
endWhile
Upvotes: 2