TestProject Forum

Click random/all checkbox

Is there a way to check the checkboxes randomly or to select all checkboxes in test recorder?

Hello @svamsikrishna532, thanks for reaching out.

as we talked over zoom, you can click on a random checkbox by performing the following:

  1. count the number of the checkboxes using the “Count Elements” action and save the output into a parameter, for example:

  1. generate a random number in a range of 1- num_of_checkboxes (the parameter you just created) using “Random number in a range” action, for example:

  2. using the generated random number, use it as an index of the checkboxes array and perform a “click” action, for example:


running these three steps in a sequence will click on one of the checkboxes randomly

an add-on to click on all checkboxes in a single step will be released in the next coming day.

Thanks much, Meidan :+1:
Also, this would be great if possible include the below features like-

  1. Select multiple checkbox in a single test step
  2. Select alternate checkbox
  3. Select first n number & last n number checkbox
  4. Select all checkbox .
    Could please update here ones the addon is ready.

Hey @svamsikrishna532,
“Checkboxes Operations” Addon is just released and now available in Addons page

you can install it and use the actions provided by this addon to manipulate lists of checkboxes


by the way, you can use “Click on N Checkboxes Randomly” with N set to 1 for the first question you asked above.

Hi Team/Meidan,

https://app.testproject.io/ is not working from the last 30mins.
Any activity is going on?

Hello, we are experiencing network related issues in some geographical areas, the network team is working on that already and it would be fixed soon.
Apologies for the inconvenience guys.

Thanks for the information and Testproject is up and running now.