scribbler
scribbler

Reputation: 13

Any builtin in robot framework for selecting a random value from the dropdown list

Is there any builtin in Robot Framework for selecting a random value from the dropdown list which is dynamically generated.

If not, any ways of implementing it ?

Upvotes: 1

Views: 3363

Answers (1)

Laurent Bristiel
Laurent Bristiel

Reputation: 6935

No, there is no builtin for that. You will have do something along those lines:

  1. generate a random index using Generate Random String or sample like mentioned in this question.

  2. Use Select from list by index keyword on your list (from Selenium2Library) using the random index you generated in the previous step.

Upvotes: 2

Related Questions