pythonrobotframeworkrobotframework-browser

IF element IN list in robot framework


I am trying to see if the element is present in the list using robot framework this is my test.

IF   Calgary    IN   ${list}
     do something
END

but I am getting this error "No keyword with name 'IN' found"


Solution

  • it uses Python 'in' so it should be like this

    IF classic in ${list}