Error while converting string to list

Hi I am getting this error
TypeError: Expected argument 1 to be a list or list-like, got string instead

How to convert given output into list in robotframework?

Without guessing, it is worth sharing where the type error occurs since that seems to be where the problem lies, Thanks.

3 Likes

What you can do is to create a small example of what is your problem.
You have some output in the form of a string and want to convert to list.
What would be the separator for those elements?

This is an example of using python functions, if the separator is ‘:’ (I did not test this):

@{my_list}=    Create List    ${output.split(':')}
2 Likes

This is resolved Thank You!

1 Like