Reputation: 125
I want to fetch the values which are in list I have declared (@{EMAIL_LIST} with 3 values in it)
I am using
: FOR ${a} IN RANGE 0 3
\ Input Text id=username @{EMAIL_LIST}[a]
It is giving the error:
List variable '@{EMAIL_LIST}' used with invalid index 'a'.
Please make me correct, Thanks in advance :)
Upvotes: 8
Views: 45057
Reputation: 15
This is how I tried fetching the value if we know index number.
${EMAIL_LIST[index]}
Upvotes: 1
Reputation: 1575
You should use ${a} as index instead of 'a'
: FOR ${a} IN RANGE 0 3
\ Input Text id=username @{EMAIL_LIST}[${a}]
Upvotes: 12