Can somebody help me understand why this does not seem to work (I’m sure I’m missing something obvious)
open | Demo AUT |
click | id=first-name |
type | id=first-name | Alex
storeEval | myCheck = this.browserbot.findElement(“id=first-name”).value==‘Alex’; | pagevalue
echo | ${pagevalue} |
while | ${pagevalue}==true |
echo | | you are stuck here
storeEval | myCheck = this.browserbot.findElement(“id=first-name”).value==‘Alex’; | pagevalue
endWhile | |
echo | | you are done
basically I’m trying to check the value of the input field, if it matches the text Alex I’m expecting to get stuck in a loop (which seems to work). But if I change Alex to Alex1 I get an Unexpected token { message;
Input field value is set to Alex, this seems to kind of work, I get stuck in a loop
[info] Executing: | type | id=first-name | Alex |
[info] Executing: | storeEval | myCheck = this.browserbot.findElement(“id=first-name”).value==‘Alex’; | pagevalue |
[info] Executing: | echo | ${pagevalue} | |
[info] echo: true
[info] Executing: | while | ${pagevalue}==true | |
…stuck in the loop at this point
Input field value is set to something other than Alex (Alex1), I get an unexpected token error
[info] Executing: | storeEval | myCheck = this.browserbot.findElement(“id=first-name”).value==‘Alex’; | pagevalue |
[info] Executing: | echo | ${pagevalue} | |
[info] echo: ${pagevalue} - This isn’t evaluating to false for some reason???
[info] Executing: | while | ${pagevalue}==true | |
[error] SyntaxError: Unexpected token {