TomekWro
(Tomasz)
1
Hi,
I’m trying to figure out one issue that i have with “Collections” library and their Copy List keyword,
I’m checking the type of variable by Evaluate and it says “list”
So i try to copy the list with Copy List Keyword but i got TypeError: Expected argument 1 to be a list or list-like, got string instead.
Any idea why it treats the one element list as string? Probably doing something wrong here 
br,
Tomasz
Hi,
Did not tried it right away, but you could test this (edit: tried and it works
):
${temp_agent_list} Copy List ${agents}
Then keep the FOR loop with @{temp_agent_list}.
I think the keyword might receive the list items as arguments (i.e. ‘agent1’, ‘agent2’…) then consider agent1 as string.
I often directly use this to copy:
VAR ${list2} ${list1}
Regards
Charlie
1 Like