How to check randomly a poll option from a list of 3 possible options for n times?


As the title says, I am having trouble doing the random poll option selection. I wish to do the following:
1.Select only one option (by checking the box next to it) randomly out of the 3 possible poll’s options.
2.Do this for n (for example 100) times.

I attached the following poll as example:

If you can show & explain to me in detail or attach maybe a .xaml with the UiPath sequence as I am just a rookie. Thank You.

1 Like

@robertcostache - Please try using the below sample code. (8.8 KB)

Using UiPath activities, you need to do the below tasks:

  1. Open the browser and navigate to the URL
  2. Generate a random integer value between 1 and 3.
  3. Choose the option 1, 2 or 3 based on the random value generated.
  4. Press the vote button
  5. Repeat above steps 100 times.
1 Like

Thank you!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.