Fetch value from list in robot framework
28,292
Solution 1
You should use ${a} as index instead of 'a'
: FOR ${a} IN RANGE 0 3
\ Input Text id=username @{EMAIL_LIST}[${a}]
Solution 2
: FOR ${a} IN @{EMAIL_LIST} \ Input Text id=username ${a}
Author by
Umesh
Updated on July 09, 2022Comments
-
Umesh almost 2 years
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 :)