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}