1

I am writing following test case:

COMMAND               TARGET                         VALUE
--------------------------------------------------------------
storeXpathCount      *someXpath*                     totalRows
store                3                               i
while                ${i}<=${totalRows}
storeText            *someXpath*                     MyVersion
storeEval            storedVars['MyVersion']=='103'  result
gotoIf               ${result}==false                lebelForIf
label                labelForIf
storeEval            {i}+1                           i
endWhile

I am getting error at the line where i have storeEval storedVars[..] The error is "[error] Threw an exception: illegal character".

Basically i want to search a version ( i.e. 103) from column which has "totalrows" thus iterating using i, wherever the version matches I want to take some action.

If the above snippet is not proper is there any other way to write this code in Selenium IDE?

Deep
  • 528
  • 3
  • 12
  • 27

1 Answers1

0

I dont think the while loops are supported in Selenium IDE directly. We have to install user extensions for this. Refer to the following link for more info - How to use loops in Selenium IDE

Let me know if this helps you.

Community
  • 1
  • 1
StrikerVillain
  • 3,719
  • 2
  • 24
  • 41
  • Thanks for your comment.However i have already included the looping feature by using goto_sel_ide.js.Please check http://www.computerminds.co.uk/automating-boring-tasks-selenium-ide – Deep Feb 10 '14 at 03:58
  • 1
    no :( ...Thats why i had posted it here.Anyways I think i will use WebDriver for the coding.Still If i can get an answer for the above mentioned questions it will be great. – Deep Feb 10 '14 at 14:30