1

I have the following example:

Keyword A
[Arguments]  ${variablesA}  ${variablesB}
     Mouse Over  ${variablesA}
     Mouse Over  ${variablesB}
Keyword B
[Arguments]  ${variablesA}  ${variablesB}  ${variablesC}
     Mouse Over  ${variablesA}
     Mouse Over  ${variablesB}
     Mouse Over  ${variablesC}

Looking at above example, I just want to create a single Keyword that can handle any number of variables to be run against Mouse Over.

I see that we can use FOR in combination with Create List but I think in that approach we are required to determine the number of items from the beginning?

1 Answer 1

4

You could use variable number of arguments:

Keyword C
    [Arguments]    @{arguments}
    :FOR    ${argument}    IN    @{arguments}
    \    Mouse Over    ${argument}
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.