I believe I’ve had a similar issue to what Alex is describing but in my case I’m setting up more than one variable in my script will cause the while statement to fail.
I’m storing a date value in variable1:
storeEval | new Date().getFullYear()-1 | variable1
I can echo this out and everything looks good
later I’m storing the contents of an id into another variable, lets say variable2
storeEval | this.browserbot.findElement("//div[@id=‘reportResultsBody’]").innerHTML; | variable2
again I can echo out the value, no problem
when I initiate my while statement using variable2 I get an error saying variable2 is undefined, the variable that I just echo’d out previously is now magically undefined
while | variable2 ==‘whatever my contents are’ |
at this point I get a message saying variable2 is undefined.
If I remove the line of code related to variable1 then my while statement works correctly. It seems like if you use the storeEval command to define multiple variables then whatever variable you want to use in your while statement will fail. I was able to work around the issue by only using storeEval once in my test case but that’s not very practical.