1

I need your expertise to help me implement "for loop" in selenium robot framework. There is a variable which was converted as a set of three values. We need to verify existence of each value from this set with a table row. Can you please advice some solution. I used following for loop: ${list} is a set of following three variable ['1xxx','2xxx','3xxx']

    :FOR    ${rows}      IN     ${list}
            ${row}=      Verify Table Row Info      table_xpath     ${rows}

I thought the above code will verify one item at a time with table row values, instead it is taking entire set of values to compare with table row values.

1 Answer 1

5

Use @{list} instead of ${list}:

:FOR    ${rows}      IN     @{list}
        ${row}=      Verify Table Row Info      table_xpath     ${rows}
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.