0

I need to exit FOR LOOP in Selenium Robot framework when multiple conditions are met

I am trying something like this where it should exit FOR LOOP , if the below conditions are met:

Exit For Loop IF    '${Name}'=='Adam'   and '${Age}'=='27'

Error:

Keyword 'BuiltIn.Exit For Loop If' expected 1 argument, got 2.

1 Answer 1

4

You need to be careful that Robot Framework use space separated format.
I.e. Robot Framework will separate the and operator as a new argument since there is more than 2 spaces between the conditions.
That's why Robot Framework think you give two arguments instead of one and the execution will fail.

Please try make it one space.

Exit For Loop If    '${Name}'=='Adam' and '${Age}'=='27'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.